Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Apr 24, 2024
1 parent a555e7f commit 2a7b667
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 20 deletions.
40 changes: 20 additions & 20 deletions src/resources/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,26 +52,7 @@ export interface AgentResponse {
/**
* Unique id of agent.
*/
agent_id: string;

/**
* Last modification timestamp (milliseconds since epoch). Either the time of last
* update or creation if no updates available.
*/
last_modification_timestamp: number;

/**
* The URL we will establish LLM websocket for getting response, usually your
* server. Check out [LLM WebSocket](/api-references/llm-websocket) for more about
* request format (sent from us) and response format (send to us).
*/
llm_websocket_url: string;

/**
* Unique voice id used for the agent. Find list of available voices and their
* preview in Dashboard.
*/
voice_id: string;
agent_id?: string;

/**
* The name of the agent. Only used for your own reference.
Expand Down Expand Up @@ -166,6 +147,19 @@ export interface AgentResponse {
| 'pt-BR'
| 'fr-FR';

/**
* Last modification timestamp (milliseconds since epoch). Either the time of last
* update or creation if no updates available.
*/
last_modification_timestamp?: number;

/**
* The URL we will establish LLM websocket for getting response, usually your
* server. Check out [LLM WebSocket](/api-references/llm-websocket) for more about
* request format (sent from us) and response format (send to us).
*/
llm_websocket_url?: string;

/**
* Disable transcripts and recordings storage for enhanced privacy. Access
* transcripts securely via webhooks. If not set, default value of false will
Expand All @@ -181,6 +175,12 @@ export interface AgentResponse {
*/
responsiveness?: number;

/**
* Unique voice id used for the agent. Find list of available voices and their
* preview in Dashboard.
*/
voice_id?: string;

/**
* Controls speed of voice. Value ranging from [0.5,2]. Lower value means slower
* speech, while higher value means faster speech rate. If unset, default value 1
Expand Down
6 changes: 6 additions & 0 deletions src/resources/call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,12 @@ export interface CallCreateParams {
*/
to_number: string;

/**
* If set, will drop the call if machine (voicemail, IVR) is detected. If not set,
* default value of false will apply.
*/
drop_call_if_machine_detected?: boolean;

/**
* For this particular call, override the agent used with this agent id. This does
* not bind the agent to this number, this is for one time override.
Expand Down
1 change: 1 addition & 0 deletions tests/api-resources/call.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ describe('resource call', () => {
const response = await retell.call.create({
from_number: 'string',
to_number: 'string',
drop_call_if_machine_detected: true,
override_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
retell_llm_dynamic_variables: { customer_name: 'John Doe' },
});
Expand Down

0 comments on commit 2a7b667

Please sign in to comment.