Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Apr 9, 2024
1 parent e033032 commit 85b916c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 3 deletions.
39 changes: 36 additions & 3 deletions src/resources/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ export interface AgentResponse {
* - `mountain-outdoor`: Mountain outdoor ambience with birds singing.
* [Listen to Ambience](https://retell-utils-public.s3.us-west-2.amazonaws.com/mountain-outdoor.wav)
*
* Set to `null` to remove ambient sound from this agent.
* - `static-noise`: Constant static noise.
* [Listen to Ambience](https://retell-utils-public.s3.us-west-2.amazonaws.com/static-noise.wav)
* Set to `null` to remove ambient sound from this agent.
*/
ambient_sound?: 'coffee-shop' | 'convention-hall' | 'summer-outdoor' | 'mountain-outdoor' | null;

Expand All @@ -114,6 +116,15 @@ export interface AgentResponse {
*/
enable_backchannel?: boolean;

/**
* Controls how sensitive the agent is to user interruptions. Value ranging from
* [0,1]. Lower value means it will take longer / more words for user to interrupt
* agent, while higher value means it's easier for user to interrupt agent. If
* unset, default value 1 will apply. When this is set to 0, agent would never be
* interrupted.
*/
interruption_sensitivity?: number;

/**
* `Beta feature, use with caution.`
*
Expand Down Expand Up @@ -224,7 +235,9 @@ export interface AgentCreateParams {
* - `mountain-outdoor`: Mountain outdoor ambience with birds singing.
* [Listen to Ambience](https://retell-utils-public.s3.us-west-2.amazonaws.com/mountain-outdoor.wav)
*
* Set to `null` to remove ambient sound from this agent.
* - `static-noise`: Constant static noise.
* [Listen to Ambience](https://retell-utils-public.s3.us-west-2.amazonaws.com/static-noise.wav)
* Set to `null` to remove ambient sound from this agent.
*/
ambient_sound?: 'coffee-shop' | 'convention-hall' | 'summer-outdoor' | 'mountain-outdoor' | null;

Expand All @@ -243,6 +256,15 @@ export interface AgentCreateParams {
*/
enable_backchannel?: boolean;

/**
* Controls how sensitive the agent is to user interruptions. Value ranging from
* [0,1]. Lower value means it will take longer / more words for user to interrupt
* agent, while higher value means it's easier for user to interrupt agent. If
* unset, default value 1 will apply. When this is set to 0, agent would never be
* interrupted.
*/
interruption_sensitivity?: number;

/**
* `Beta feature, use with caution.`
*
Expand Down Expand Up @@ -338,7 +360,9 @@ export interface AgentUpdateParams {
* - `mountain-outdoor`: Mountain outdoor ambience with birds singing.
* [Listen to Ambience](https://retell-utils-public.s3.us-west-2.amazonaws.com/mountain-outdoor.wav)
*
* Set to `null` to remove ambient sound from this agent.
* - `static-noise`: Constant static noise.
* [Listen to Ambience](https://retell-utils-public.s3.us-west-2.amazonaws.com/static-noise.wav)
* Set to `null` to remove ambient sound from this agent.
*/
ambient_sound?: 'coffee-shop' | 'convention-hall' | 'summer-outdoor' | 'mountain-outdoor' | null;

Expand All @@ -357,6 +381,15 @@ export interface AgentUpdateParams {
*/
enable_backchannel?: boolean;

/**
* Controls how sensitive the agent is to user interruptions. Value ranging from
* [0,1]. Lower value means it will take longer / more words for user to interrupt
* agent, while higher value means it's easier for user to interrupt agent. If
* unset, default value 1 will apply. When this is set to 0, agent would never be
* interrupted.
*/
interruption_sensitivity?: number;

/**
* `Beta feature, use with caution.`
*
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 @@ -31,6 +31,7 @@ describe('resource agent', () => {
ambient_sound: 'coffee-shop',
boosted_keywords: ['retell', 'kroger'],
enable_backchannel: true,
interruption_sensitivity: 1,
language: 'en-US',
opt_out_sensitive_data_storage: true,
responsiveness: 1,
Expand Down

0 comments on commit 85b916c

Please sign in to comment.