Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed May 12, 2024
1 parent 30ad625 commit 4141a43
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 19
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/toddlzt%2Ftoddlzt-6d23ca6d4718f4b0319cd3596fed75f3dcab5880fa6e7ee272a8744efc31f96a.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/toddlzt%2Ftoddlzt-2094de988d62bb95df480a11edef05210ac76bad4476318a74ebd32d612df88b.yml
33 changes: 33 additions & 0 deletions src/resources/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,17 @@ export interface AgentResponse {
| 'pt-BR'
| 'fr-FR';

/**
* If set to true, will normalize the some part of text (number, currency, date,
* etc) to spoken to its spoken form for more consistent speech synthesis
* (sometimes the voice synthesize system itself might read these wrong with the
* raw text). For example, it will convert "Call my number 2137112342 on Jul 5th,
* 2024 for the $24.12 payment" to "Call my number two one three seven one one two
* three four two on july fifth, twenty twenty four for the twenty four dollars
* twelve cents payment" before starting audio generation.
*/
normalize_for_speech?: boolean;

/**
* Whether this agent opts out of sensitive data storage like transcript,
* recording, logging. These data can still be accessed securely via webhooks. If
Expand Down Expand Up @@ -358,6 +369,17 @@ export interface AgentCreateParams {
| 'pt-BR'
| 'fr-FR';

/**
* If set to true, will normalize the some part of text (number, currency, date,
* etc) to spoken to its spoken form for more consistent speech synthesis
* (sometimes the voice synthesize system itself might read these wrong with the
* raw text). For example, it will convert "Call my number 2137112342 on Jul 5th,
* 2024 for the $24.12 payment" to "Call my number two one three seven one one two
* three four two on july fifth, twenty twenty four for the twenty four dollars
* twelve cents payment" before starting audio generation.
*/
normalize_for_speech?: boolean;

/**
* Whether this agent opts out of sensitive data storage like transcript,
* recording, logging. These data can still be accessed securely via webhooks. If
Expand Down Expand Up @@ -540,6 +562,17 @@ export interface AgentUpdateParams {
*/
llm_websocket_url?: string;

/**
* If set to true, will normalize the some part of text (number, currency, date,
* etc) to spoken to its spoken form for more consistent speech synthesis
* (sometimes the voice synthesize system itself might read these wrong with the
* raw text). For example, it will convert "Call my number 2137112342 on Jul 5th,
* 2024 for the $24.12 payment" to "Call my number two one three seven one one two
* three four two on july fifth, twenty twenty four for the twenty four dollars
* twelve cents payment" before starting audio generation.
*/
normalize_for_speech?: boolean;

/**
* Whether this agent opts out of sensitive data storage like transcript,
* recording, logging. These data can still be accessed securely via webhooks. If
Expand Down
1 change: 1 addition & 0 deletions tests/api-resources/agent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ describe('resource agent', () => {
enable_backchannel: true,
interruption_sensitivity: 1,
language: 'en-US',
normalize_for_speech: true,
opt_out_sensitive_data_storage: true,
pronunciation_dictionary: [
{ word: 'actually', alphabet: 'ipa', phoneme: 'ˈæktʃuəli' },
Expand Down

0 comments on commit 4141a43

Please sign in to comment.