retell-sdk 4.25.0 → 4.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/core.d.ts +1 -1
- package/core.d.ts.map +1 -1
- package/core.js +5 -5
- package/core.js.map +1 -1
- package/core.mjs +5 -5
- package/core.mjs.map +1 -1
- package/index.d.mts +4 -4
- package/index.d.ts +4 -4
- package/index.d.ts.map +1 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent.d.ts +142 -110
- package/resources/agent.d.ts.map +1 -1
- package/resources/agent.js +19 -7
- package/resources/agent.js.map +1 -1
- package/resources/agent.mjs +19 -7
- package/resources/agent.mjs.map +1 -1
- package/resources/call.d.ts +26 -0
- package/resources/call.d.ts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/llm.d.ts +59 -33
- package/resources/llm.d.ts.map +1 -1
- package/resources/llm.js +13 -7
- package/resources/llm.js.map +1 -1
- package/resources/llm.mjs +13 -7
- package/resources/llm.mjs.map +1 -1
- package/resources/phone-number.d.ts +39 -1
- package/resources/phone-number.d.ts.map +1 -1
- package/src/core.ts +4 -4
- package/src/index.ts +13 -1
- package/src/resources/agent.ts +173 -112
- package/src/resources/call.ts +32 -0
- package/src/resources/index.ts +3 -0
- package/src/resources/llm.ts +89 -35
- package/src/resources/phone-number.ts +47 -1
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/agent.d.ts
CHANGED
|
@@ -8,11 +8,12 @@ export declare class Agent extends APIResource {
|
|
|
8
8
|
/**
|
|
9
9
|
* Retrieve details of a specific agent
|
|
10
10
|
*/
|
|
11
|
+
retrieve(agentId: string, query?: AgentRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<AgentResponse>;
|
|
11
12
|
retrieve(agentId: string, options?: Core.RequestOptions): Core.APIPromise<AgentResponse>;
|
|
12
13
|
/**
|
|
13
14
|
* Update an existing agent
|
|
14
15
|
*/
|
|
15
|
-
update(agentId: string,
|
|
16
|
+
update(agentId: string, params: AgentUpdateParams, options?: Core.RequestOptions): Core.APIPromise<AgentResponse>;
|
|
16
17
|
/**
|
|
17
18
|
* List all agents
|
|
18
19
|
*/
|
|
@@ -21,6 +22,10 @@ export declare class Agent extends APIResource {
|
|
|
21
22
|
* Delete an existing agent
|
|
22
23
|
*/
|
|
23
24
|
delete(agentId: string, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Get all versions of an agent
|
|
27
|
+
*/
|
|
28
|
+
getVersions(agentId: string, options?: Core.RequestOptions): Core.APIPromise<AgentGetVersionsResponse>;
|
|
24
29
|
}
|
|
25
30
|
export interface AgentResponse {
|
|
26
31
|
/**
|
|
@@ -223,6 +228,10 @@ export interface AgentResponse {
|
|
|
223
228
|
* Default to fast mode.
|
|
224
229
|
*/
|
|
225
230
|
stt_mode?: 'fast' | 'accurate';
|
|
231
|
+
/**
|
|
232
|
+
* Version of the agent.
|
|
233
|
+
*/
|
|
234
|
+
version?: number | null;
|
|
226
235
|
/**
|
|
227
236
|
* Optionally set the voice model used for the selected voice. Currently only
|
|
228
237
|
* elevenlab voices have voice model selections. Set to null to remove voice model
|
|
@@ -381,6 +390,7 @@ export declare namespace AgentResponse {
|
|
|
381
390
|
}
|
|
382
391
|
}
|
|
383
392
|
export type AgentListResponse = Array<AgentResponse>;
|
|
393
|
+
export type AgentGetVersionsResponse = Array<AgentResponse>;
|
|
384
394
|
export interface AgentCreateParams {
|
|
385
395
|
/**
|
|
386
396
|
* The Response Engine to attach to the agent. It is used to generate responses for
|
|
@@ -573,6 +583,10 @@ export interface AgentCreateParams {
|
|
|
573
583
|
* Default to fast mode.
|
|
574
584
|
*/
|
|
575
585
|
stt_mode?: 'fast' | 'accurate';
|
|
586
|
+
/**
|
|
587
|
+
* Version of the agent.
|
|
588
|
+
*/
|
|
589
|
+
version?: number | null;
|
|
576
590
|
/**
|
|
577
591
|
* Optionally set the voice model used for the selected voice. Currently only
|
|
578
592
|
* elevenlab voices have voice model selections. Set to null to remove voice model
|
|
@@ -730,14 +744,24 @@ export declare namespace AgentCreateParams {
|
|
|
730
744
|
word: string;
|
|
731
745
|
}
|
|
732
746
|
}
|
|
747
|
+
export interface AgentRetrieveParams {
|
|
748
|
+
/**
|
|
749
|
+
* Optional version of the API to use for this request. Default to 0.
|
|
750
|
+
*/
|
|
751
|
+
version?: number;
|
|
752
|
+
}
|
|
733
753
|
export interface AgentUpdateParams {
|
|
734
754
|
/**
|
|
735
|
-
*
|
|
755
|
+
* Query param: Optional version of the API to use for this request. Default to 0.
|
|
756
|
+
*/
|
|
757
|
+
query_version?: number;
|
|
758
|
+
/**
|
|
759
|
+
* Body param: The name of the agent. Only used for your own reference.
|
|
736
760
|
*/
|
|
737
761
|
agent_name?: string | null;
|
|
738
762
|
/**
|
|
739
|
-
* If set, will add ambient environment sound to the call to make
|
|
740
|
-
* realistic. Currently supports the following options:
|
|
763
|
+
* Body param: If set, will add ambient environment sound to the call to make
|
|
764
|
+
* experience more realistic. Currently supports the following options:
|
|
741
765
|
*
|
|
742
766
|
* - `coffee-shop`: Coffee shop ambience with people chatting in background.
|
|
743
767
|
* [Listen to Ambience](https://retell-utils-public.s3.us-west-2.amazonaws.com/coffee-shop.wav)
|
|
@@ -762,210 +786,218 @@ export interface AgentUpdateParams {
|
|
|
762
786
|
*/
|
|
763
787
|
ambient_sound?: 'coffee-shop' | 'convention-hall' | 'summer-outdoor' | 'mountain-outdoor' | 'static-noise' | 'call-center' | null;
|
|
764
788
|
/**
|
|
765
|
-
* If set, will control the volume of the ambient sound. Value ranging
|
|
766
|
-
* Lower value means quieter ambient sound, while higher value means
|
|
767
|
-
* sound. If unset, default value 1 will apply.
|
|
789
|
+
* Body param: If set, will control the volume of the ambient sound. Value ranging
|
|
790
|
+
* from [0,2]. Lower value means quieter ambient sound, while higher value means
|
|
791
|
+
* louder ambient sound. If unset, default value 1 will apply.
|
|
768
792
|
*/
|
|
769
793
|
ambient_sound_volume?: number;
|
|
770
794
|
/**
|
|
771
|
-
* Only applicable when enable_backchannel is true. Controls how often
|
|
772
|
-
* would backchannel when a backchannel is possible. Value ranging from
|
|
773
|
-
* Lower value means less frequent backchannel, while higher value means
|
|
774
|
-
* frequent backchannel. If unset, default value 0.8 will apply.
|
|
795
|
+
* Body param: Only applicable when enable_backchannel is true. Controls how often
|
|
796
|
+
* the agent would backchannel when a backchannel is possible. Value ranging from
|
|
797
|
+
* [0,1]. Lower value means less frequent backchannel, while higher value means
|
|
798
|
+
* more frequent backchannel. If unset, default value 0.8 will apply.
|
|
775
799
|
*/
|
|
776
800
|
backchannel_frequency?: number;
|
|
777
801
|
/**
|
|
778
|
-
* Only applicable when enable_backchannel is true. A list of words
|
|
779
|
-
* would use as backchannel. If not set, default backchannel words
|
|
780
|
-
* Check out
|
|
802
|
+
* Body param: Only applicable when enable_backchannel is true. A list of words
|
|
803
|
+
* that the agent would use as backchannel. If not set, default backchannel words
|
|
804
|
+
* will apply. Check out
|
|
781
805
|
* [backchannel default words](/agent/interaction-configuration#backchannel) for
|
|
782
806
|
* more details. Note that certain voices do not work too well with certain words,
|
|
783
807
|
* so it's recommended to expeirment before adding any words.
|
|
784
808
|
*/
|
|
785
809
|
backchannel_words?: Array<string> | null;
|
|
786
810
|
/**
|
|
787
|
-
* If set, will delay the first message by the specified amount of
|
|
788
|
-
* that it gives user more time to prepare to take the call. Valid
|
|
789
|
-
* 5000]. If not set or set to 0, agent will speak immediately. Only
|
|
790
|
-
* when agent speaks first.
|
|
811
|
+
* Body param: If set, will delay the first message by the specified amount of
|
|
812
|
+
* milliseconds, so that it gives user more time to prepare to take the call. Valid
|
|
813
|
+
* range is [0, 5000]. If not set or set to 0, agent will speak immediately. Only
|
|
814
|
+
* applicable when agent speaks first.
|
|
791
815
|
*/
|
|
792
816
|
begin_message_delay_ms?: number;
|
|
793
817
|
/**
|
|
794
|
-
* Provide a customized list of keywords to bias the transcriber model,
|
|
795
|
-
* these words are more likely to get transcribed. Commonly used for names,
|
|
796
|
-
* street, etc.
|
|
818
|
+
* Body param: Provide a customized list of keywords to bias the transcriber model,
|
|
819
|
+
* so that these words are more likely to get transcribed. Commonly used for names,
|
|
820
|
+
* brands, street, etc.
|
|
797
821
|
*/
|
|
798
822
|
boosted_keywords?: Array<string> | null;
|
|
799
823
|
/**
|
|
800
|
-
* Controls whether the agent would backchannel (agent interjects the
|
|
801
|
-
* phrases like "yeah", "uh-huh" to signify interest and engagement).
|
|
802
|
-
* when enabled tends to show up more in longer user utterances. If not
|
|
803
|
-
* will not backchannel.
|
|
824
|
+
* Body param: Controls whether the agent would backchannel (agent interjects the
|
|
825
|
+
* speaker with phrases like "yeah", "uh-huh" to signify interest and engagement).
|
|
826
|
+
* Backchannel when enabled tends to show up more in longer user utterances. If not
|
|
827
|
+
* set, agent will not backchannel.
|
|
804
828
|
*/
|
|
805
829
|
enable_backchannel?: boolean;
|
|
806
830
|
/**
|
|
807
|
-
* If set to true, will format transcription to number, date, email,
|
|
808
|
-
* false, will return transcripts in raw words. If not set, default
|
|
809
|
-
* will apply. This currently only applies to English.
|
|
831
|
+
* Body param: If set to true, will format transcription to number, date, email,
|
|
832
|
+
* etc. If set to false, will return transcripts in raw words. If not set, default
|
|
833
|
+
* value of true will apply. This currently only applies to English.
|
|
810
834
|
*/
|
|
811
835
|
enable_transcription_formatting?: boolean;
|
|
812
836
|
/**
|
|
813
|
-
* If set to true, will detect whether the call enters a voicemail.
|
|
814
|
-
* feature is only available for phone calls.
|
|
837
|
+
* Body param: If set to true, will detect whether the call enters a voicemail.
|
|
838
|
+
* Note that this feature is only available for phone calls.
|
|
815
839
|
*/
|
|
816
840
|
enable_voicemail_detection?: boolean;
|
|
817
841
|
/**
|
|
818
|
-
* If users stay silent for a period after agent speech, end the call.
|
|
819
|
-
* value allowed is 10,000 ms (10 s). By default, this is set to 600000
|
|
842
|
+
* Body param: If users stay silent for a period after agent speech, end the call.
|
|
843
|
+
* The minimum value allowed is 10,000 ms (10 s). By default, this is set to 600000
|
|
844
|
+
* (10 min).
|
|
820
845
|
*/
|
|
821
846
|
end_call_after_silence_ms?: number;
|
|
822
847
|
/**
|
|
823
|
-
* When TTS provider for the selected voice is experiencing outages, we
|
|
824
|
-
* fallback voices listed here for the agent. Voice id and the fallback
|
|
825
|
-
* must be from different TTS providers. The system would go through the
|
|
826
|
-
* order, if the first one in the list is also having outage, it would use
|
|
827
|
-
* one. Set to null to remove voice fallback for the agent.
|
|
848
|
+
* Body param: When TTS provider for the selected voice is experiencing outages, we
|
|
849
|
+
* would use fallback voices listed here for the agent. Voice id and the fallback
|
|
850
|
+
* voice ids must be from different TTS providers. The system would go through the
|
|
851
|
+
* list in order, if the first one in the list is also having outage, it would use
|
|
852
|
+
* the next one. Set to null to remove voice fallback for the agent.
|
|
828
853
|
*/
|
|
829
854
|
fallback_voice_ids?: Array<string> | null;
|
|
830
855
|
/**
|
|
831
|
-
* Controls how sensitive the agent is to user interruptions. Value
|
|
832
|
-
* [0,1]. Lower value means it will take longer / more words for user
|
|
833
|
-
* agent, while higher value means it's easier for user to interrupt
|
|
834
|
-
* unset, default value 1 will apply. When this is set to 0, agent would
|
|
835
|
-
* interrupted.
|
|
856
|
+
* Body param: Controls how sensitive the agent is to user interruptions. Value
|
|
857
|
+
* ranging from [0,1]. Lower value means it will take longer / more words for user
|
|
858
|
+
* to interrupt agent, while higher value means it's easier for user to interrupt
|
|
859
|
+
* agent. If unset, default value 1 will apply. When this is set to 0, agent would
|
|
860
|
+
* never be interrupted.
|
|
836
861
|
*/
|
|
837
862
|
interruption_sensitivity?: number;
|
|
838
863
|
/**
|
|
839
|
-
* Specifies what language (and dialect) the speech recognition will
|
|
840
|
-
* For instance, selecting `en-GB` optimizes speech recognition for
|
|
841
|
-
* English. If unset, will use default value `en-US`. Select `multi` for
|
|
864
|
+
* Body param: Specifies what language (and dialect) the speech recognition will
|
|
865
|
+
* operate in. For instance, selecting `en-GB` optimizes speech recognition for
|
|
866
|
+
* British English. If unset, will use default value `en-US`. Select `multi` for
|
|
842
867
|
* multilingual support, currently this supports Spanish and English.
|
|
843
868
|
*/
|
|
844
869
|
language?: 'en-US' | 'en-IN' | 'en-GB' | 'en-AU' | 'en-NZ' | 'de-DE' | 'es-ES' | 'es-419' | 'hi-IN' | 'fr-FR' | 'fr-CA' | 'ja-JP' | 'pt-PT' | 'pt-BR' | 'zh-CN' | 'ru-RU' | 'it-IT' | 'ko-KR' | 'nl-NL' | 'pl-PL' | 'tr-TR' | 'vi-VN' | 'ro-RO' | 'bg-BG' | 'ca-ES' | 'da-DK' | 'fi-FI' | 'el-GR' | 'hu-HU' | 'id-ID' | 'no-NO' | 'sk-SK' | 'sv-SE' | 'multi';
|
|
845
870
|
/**
|
|
846
|
-
* Maximum allowed length for the call, will force end the call if
|
|
847
|
-
* minimum value allowed is 60,000 ms (1 min), and maximum value
|
|
848
|
-
* 7,200,000 (2 hours). By default, this is set to 3,600,000 (1 hour).
|
|
871
|
+
* Body param: Maximum allowed length for the call, will force end the call if
|
|
872
|
+
* reached. The minimum value allowed is 60,000 ms (1 min), and maximum value
|
|
873
|
+
* allowed is 7,200,000 (2 hours). By default, this is set to 3,600,000 (1 hour).
|
|
849
874
|
*/
|
|
850
875
|
max_call_duration_ms?: number;
|
|
851
876
|
/**
|
|
852
|
-
* If set to true, will normalize the some part of text (number,
|
|
853
|
-
* etc) to spoken to its spoken form for more consistent speech
|
|
854
|
-
* (sometimes the voice synthesize system itself might read these wrong
|
|
855
|
-
* raw text). For example, it will convert "Call my number 2137112342 on
|
|
856
|
-
* 2024 for the $24.12 payment" to "Call my number two one three seven one
|
|
857
|
-
* three four two on july fifth, twenty twenty four for the twenty four
|
|
858
|
-
* twelve cents payment" before starting audio generation.
|
|
877
|
+
* Body param: If set to true, will normalize the some part of text (number,
|
|
878
|
+
* currency, date, etc) to spoken to its spoken form for more consistent speech
|
|
879
|
+
* synthesis (sometimes the voice synthesize system itself might read these wrong
|
|
880
|
+
* with the raw text). For example, it will convert "Call my number 2137112342 on
|
|
881
|
+
* Jul 5th, 2024 for the $24.12 payment" to "Call my number two one three seven one
|
|
882
|
+
* one two three four two on july fifth, twenty twenty four for the twenty four
|
|
883
|
+
* dollars twelve cents payment" before starting audio generation.
|
|
859
884
|
*/
|
|
860
885
|
normalize_for_speech?: boolean;
|
|
861
886
|
/**
|
|
862
|
-
* Whether this agent opts out of sensitive data storage like
|
|
863
|
-
* recording, logging, inbound/outbound phone numbers, etc. These data
|
|
864
|
-
* accessed securely via webhooks. If not set, default value of false
|
|
887
|
+
* Body param: Whether this agent opts out of sensitive data storage like
|
|
888
|
+
* transcript, recording, logging, inbound/outbound phone numbers, etc. These data
|
|
889
|
+
* can still be accessed securely via webhooks. If not set, default value of false
|
|
890
|
+
* will apply.
|
|
865
891
|
*/
|
|
866
892
|
opt_out_sensitive_data_storage?: boolean;
|
|
867
893
|
/**
|
|
868
|
-
* Post call analysis data to extract from the call. This data will
|
|
869
|
-
* pre-defined variables extracted in the call analysis. This will be
|
|
870
|
-
* after the call ends.
|
|
894
|
+
* Body param: Post call analysis data to extract from the call. This data will
|
|
895
|
+
* augment the pre-defined variables extracted in the call analysis. This will be
|
|
896
|
+
* available after the call ends.
|
|
871
897
|
*/
|
|
872
898
|
post_call_analysis_data?: Array<AgentUpdateParams.StringAnalysisData | AgentUpdateParams.EnumAnalysisData | AgentUpdateParams.BooleanAnalysisData | AgentUpdateParams.NumberAnalysisData> | null;
|
|
873
899
|
/**
|
|
874
|
-
* The model to use for post call analysis. Currently only supports
|
|
875
|
-
* gpt-4o. Default to gpt-4o-mini.
|
|
900
|
+
* Body param: The model to use for post call analysis. Currently only supports
|
|
901
|
+
* gpt-4o-mini and gpt-4o. Default to gpt-4o-mini.
|
|
876
902
|
*/
|
|
877
903
|
post_call_analysis_model?: 'gpt-4o-mini' | 'gpt-4o';
|
|
878
904
|
/**
|
|
879
|
-
* A list of words / phrases and their pronunciation to be used to
|
|
880
|
-
* synthesize for consistent pronunciation. Currently only
|
|
881
|
-
* 11labs voices. Set to null to remove pronunciation
|
|
905
|
+
* Body param: A list of words / phrases and their pronunciation to be used to
|
|
906
|
+
* guide the audio synthesize for consistent pronunciation. Currently only
|
|
907
|
+
* supported for English & 11labs voices. Set to null to remove pronunciation
|
|
908
|
+
* dictionary from this agent.
|
|
882
909
|
*/
|
|
883
910
|
pronunciation_dictionary?: Array<AgentUpdateParams.PronunciationDictionary> | null;
|
|
884
911
|
/**
|
|
885
|
-
* If set, controls how many times agent would remind user when user is
|
|
912
|
+
* Body param: If set, controls how many times agent would remind user when user is
|
|
886
913
|
* unresponsive. Must be a non negative integer. If unset, default value of 1 will
|
|
887
914
|
* apply (remind once). Set to 0 to disable agent from reminding.
|
|
888
915
|
*/
|
|
889
916
|
reminder_max_count?: number;
|
|
890
917
|
/**
|
|
891
|
-
* If set (in milliseconds), will trigger a reminder to the agent to
|
|
892
|
-
* user has been silent for the specified duration after some agent
|
|
893
|
-
* a positive number. If unset, default value of 10000 ms (10 s)
|
|
918
|
+
* Body param: If set (in milliseconds), will trigger a reminder to the agent to
|
|
919
|
+
* speak if the user has been silent for the specified duration after some agent
|
|
920
|
+
* speech. Must be a positive number. If unset, default value of 10000 ms (10 s)
|
|
921
|
+
* will apply.
|
|
894
922
|
*/
|
|
895
923
|
reminder_trigger_ms?: number;
|
|
896
924
|
/**
|
|
897
|
-
* The Response Engine to attach to the agent. It is used to generate
|
|
898
|
-
* the agent. You need to create a Response Engine first before
|
|
899
|
-
* agent.
|
|
925
|
+
* Body param: The Response Engine to attach to the agent. It is used to generate
|
|
926
|
+
* responses for the agent. You need to create a Response Engine first before
|
|
927
|
+
* attaching it to an agent.
|
|
900
928
|
*/
|
|
901
929
|
response_engine?: AgentUpdateParams.ResponseEngineRetellLm | AgentUpdateParams.ResponseEngineCustomLm | AgentUpdateParams.ResponseEngineConversationFlow;
|
|
902
930
|
/**
|
|
903
|
-
* Controls how responsive is the agent. Value ranging from [0,1].
|
|
904
|
-
* means less responsive agent (wait more, respond slower), while
|
|
905
|
-
* means faster exchanges (respond when it can). If unset, default
|
|
906
|
-
* apply.
|
|
931
|
+
* Body param: Controls how responsive is the agent. Value ranging from [0,1].
|
|
932
|
+
* Lower value means less responsive agent (wait more, respond slower), while
|
|
933
|
+
* higher value means faster exchanges (respond when it can). If unset, default
|
|
934
|
+
* value 1 will apply.
|
|
907
935
|
*/
|
|
908
936
|
responsiveness?: number;
|
|
909
937
|
/**
|
|
910
|
-
* If set, the phone ringing will last for the specified amount of
|
|
911
|
-
* This applies for both outbound call ringtime, and call transfer
|
|
912
|
-
* Default to 30000 (30 s). Valid range is [5000, 90000].
|
|
938
|
+
* Body param: If set, the phone ringing will last for the specified amount of
|
|
939
|
+
* milliseconds. This applies for both outbound call ringtime, and call transfer
|
|
940
|
+
* ringtime. Default to 30000 (30 s). Valid range is [5000, 90000].
|
|
913
941
|
*/
|
|
914
942
|
ring_duration_ms?: number;
|
|
915
943
|
/**
|
|
916
|
-
* If set, determines whether speech to text should focus on latency or
|
|
917
|
-
* Default to fast mode.
|
|
944
|
+
* Body param: If set, determines whether speech to text should focus on latency or
|
|
945
|
+
* accuracy. Default to fast mode.
|
|
918
946
|
*/
|
|
919
947
|
stt_mode?: 'fast' | 'accurate';
|
|
920
948
|
/**
|
|
921
|
-
*
|
|
922
|
-
|
|
949
|
+
* Body param: Version of the agent.
|
|
950
|
+
*/
|
|
951
|
+
body_version?: number | null;
|
|
952
|
+
/**
|
|
953
|
+
* Body param: Unique voice id used for the agent. Find list of available voices
|
|
954
|
+
* and their preview in Dashboard.
|
|
923
955
|
*/
|
|
924
956
|
voice_id?: string;
|
|
925
957
|
/**
|
|
926
|
-
* Optionally set the voice model used for the selected voice.
|
|
927
|
-
* elevenlab voices have voice model selections. Set to null to
|
|
928
|
-
* selection, and default ones will apply. Check out the
|
|
929
|
-
* each voice model.
|
|
958
|
+
* Body param: Optionally set the voice model used for the selected voice.
|
|
959
|
+
* Currently only elevenlab voices have voice model selections. Set to null to
|
|
960
|
+
* remove voice model selection, and default ones will apply. Check out the
|
|
961
|
+
* dashboard for details on each voice model.
|
|
930
962
|
*/
|
|
931
963
|
voice_model?: 'eleven_turbo_v2' | 'eleven_flash_v2' | 'eleven_turbo_v2_5' | 'eleven_flash_v2_5' | 'eleven_multilingual_v2' | 'Play3.0-mini' | 'PlayDialog' | null;
|
|
932
964
|
/**
|
|
933
|
-
* Controls speed of voice. Value ranging from [0.5,2]. Lower value
|
|
934
|
-
* speech, while higher value means faster speech rate. If unset,
|
|
935
|
-
* will apply.
|
|
965
|
+
* Body param: Controls speed of voice. Value ranging from [0.5,2]. Lower value
|
|
966
|
+
* means slower speech, while higher value means faster speech rate. If unset,
|
|
967
|
+
* default value 1 will apply.
|
|
936
968
|
*/
|
|
937
969
|
voice_speed?: number;
|
|
938
970
|
/**
|
|
939
|
-
* Controls how stable the voice is. Value ranging from [0,2]. Lower
|
|
940
|
-
* more stable, and higher value means more variant speech generation.
|
|
941
|
-
* this setting only applies to `11labs` voices. If unset, default value
|
|
942
|
-
* apply.
|
|
971
|
+
* Body param: Controls how stable the voice is. Value ranging from [0,2]. Lower
|
|
972
|
+
* value means more stable, and higher value means more variant speech generation.
|
|
973
|
+
* Currently this setting only applies to `11labs` voices. If unset, default value
|
|
974
|
+
* 1 will apply.
|
|
943
975
|
*/
|
|
944
976
|
voice_temperature?: number;
|
|
945
977
|
/**
|
|
946
|
-
* Configures when to stop running voicemail detection, as it becomes
|
|
947
|
-
* hit voicemail after a couple minutes, and keep running it will only
|
|
948
|
-
* negative impact. The minimum value allowed is 5,000 ms (5 s), and maximum
|
|
949
|
-
* allowed is 180,000 (3 minutes). By default, this is set to 30,000 (30 s).
|
|
978
|
+
* Body param: Configures when to stop running voicemail detection, as it becomes
|
|
979
|
+
* unlikely to hit voicemail after a couple minutes, and keep running it will only
|
|
980
|
+
* have negative impact. The minimum value allowed is 5,000 ms (5 s), and maximum
|
|
981
|
+
* value allowed is 180,000 (3 minutes). By default, this is set to 30,000 (30 s).
|
|
950
982
|
*/
|
|
951
983
|
voicemail_detection_timeout_ms?: number;
|
|
952
984
|
/**
|
|
953
|
-
* The message to be played when the call enters a voicemail. Note that
|
|
954
|
-
* feature is only available for phone calls. If you want to hangup after
|
|
955
|
-
* voicemail, set this to empty string.
|
|
985
|
+
* Body param: The message to be played when the call enters a voicemail. Note that
|
|
986
|
+
* this feature is only available for phone calls. If you want to hangup after
|
|
987
|
+
* hitting voicemail, set this to empty string.
|
|
956
988
|
*/
|
|
957
989
|
voicemail_message?: string;
|
|
958
990
|
/**
|
|
959
|
-
* If set, will control the volume of the agent. Value ranging from
|
|
960
|
-
* value means quieter agent speech, while higher value means louder
|
|
961
|
-
* If unset, default value 1 will apply.
|
|
991
|
+
* Body param: If set, will control the volume of the agent. Value ranging from
|
|
992
|
+
* [0,2]. Lower value means quieter agent speech, while higher value means louder
|
|
993
|
+
* agent speech. If unset, default value 1 will apply.
|
|
962
994
|
*/
|
|
963
995
|
volume?: number;
|
|
964
996
|
/**
|
|
965
|
-
* The webhook for agent to listen to call events. See what events it
|
|
966
|
-
* [webhook doc](/features/webhook). If set, will binds webhook events
|
|
967
|
-
* agent to the specified url, and will ignore the account level webhook
|
|
968
|
-
* agent. Set to `null` to remove webhook url from this agent.
|
|
997
|
+
* Body param: The webhook for agent to listen to call events. See what events it
|
|
998
|
+
* would get at [webhook doc](/features/webhook). If set, will binds webhook events
|
|
999
|
+
* for this agent to the specified url, and will ignore the account level webhook
|
|
1000
|
+
* for this agent. Set to `null` to remove webhook url from this agent.
|
|
969
1001
|
*/
|
|
970
1002
|
webhook_url?: string | null;
|
|
971
1003
|
}
|
|
@@ -1080,6 +1112,6 @@ export declare namespace AgentUpdateParams {
|
|
|
1080
1112
|
}
|
|
1081
1113
|
}
|
|
1082
1114
|
export declare namespace Agent {
|
|
1083
|
-
export { type AgentResponse as AgentResponse, type AgentListResponse as AgentListResponse, type AgentCreateParams as AgentCreateParams, type AgentUpdateParams as AgentUpdateParams, };
|
|
1115
|
+
export { type AgentResponse as AgentResponse, type AgentListResponse as AgentListResponse, type AgentGetVersionsResponse as AgentGetVersionsResponse, type AgentCreateParams as AgentCreateParams, type AgentRetrieveParams as AgentRetrieveParams, type AgentUpdateParams as AgentUpdateParams, };
|
|
1084
1116
|
}
|
|
1085
1117
|
//# sourceMappingURL=agent.d.ts.map
|
package/resources/agent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../src/resources/agent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;IAI9F;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;IAIxF;;OAEG;IACH,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,iBAAiB,EACvB,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;IAIjC;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC;IAIvE;;OAEG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,I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;KACjB;IAED,UAAiB,kBAAkB;QACjC;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,IAAI,EAAE,QAAQ,CAAC;KAChB;IAED,UAAiB,uBAAuB;QACtC;;WAEG;QACH,QAAQ,EAAE,KAAK,GAAG,KAAK,CAAC;QAExB;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;KACd;IAED,UAAiB,sBAAsB;QACrC;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,IAAI,EAAE,YAAY,CAAC;KACpB;IAED,UAAiB,sBAAsB;QACrC;;WAEG;QACH,iBAAiB,EAAE,MAAM,CAAC;QAE1B;;WAEG;QACH,IAAI,EAAE,YAAY,CAAC;KACpB;IAED,UAAiB,8BAA8B;QAC7C;;WAEG;QACH,oBAAoB,EAAE,MAAM,CAAC;QAE7B;;WAEG;QACH,IAAI,EAAE,mBAAmB,CAAC;KAC3B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/agent.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Agent = void 0;
|
|
5
5
|
const resource_1 = require("../resource.js");
|
|
6
|
+
const core_1 = require("../core.js");
|
|
6
7
|
class Agent extends resource_1.APIResource {
|
|
7
8
|
/**
|
|
8
9
|
* Create a new agent
|
|
@@ -10,17 +11,22 @@ class Agent extends resource_1.APIResource {
|
|
|
10
11
|
create(body, options) {
|
|
11
12
|
return this._client.post('/create-agent', { body, ...options });
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return this._client.get(`/get-agent/${agentId}`, options);
|
|
14
|
+
retrieve(agentId, query = {}, options) {
|
|
15
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
16
|
+
return this.retrieve(agentId, {}, query);
|
|
17
|
+
}
|
|
18
|
+
return this._client.get(`/get-agent/${agentId}`, { query, ...options });
|
|
18
19
|
}
|
|
19
20
|
/**
|
|
20
21
|
* Update an existing agent
|
|
21
22
|
*/
|
|
22
|
-
update(agentId,
|
|
23
|
-
|
|
23
|
+
update(agentId, params, options) {
|
|
24
|
+
const { query_version, ...body } = params;
|
|
25
|
+
return this._client.patch(`/update-agent/${agentId}`, {
|
|
26
|
+
query: { version: query_version },
|
|
27
|
+
body,
|
|
28
|
+
...options,
|
|
29
|
+
});
|
|
24
30
|
}
|
|
25
31
|
/**
|
|
26
32
|
* List all agents
|
|
@@ -37,6 +43,12 @@ class Agent extends resource_1.APIResource {
|
|
|
37
43
|
headers: { Accept: '*/*', ...options?.headers },
|
|
38
44
|
});
|
|
39
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* Get all versions of an agent
|
|
48
|
+
*/
|
|
49
|
+
getVersions(agentId, options) {
|
|
50
|
+
return this._client.get(`/get-agent-versions/${agentId}`, options);
|
|
51
|
+
}
|
|
40
52
|
}
|
|
41
53
|
exports.Agent = Agent;
|
|
42
54
|
//# sourceMappingURL=agent.js.map
|
package/resources/agent.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../src/resources/agent.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;
|
|
1
|
+
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../src/resources/agent.ts"],"names":[],"mappings":";AAAA,sF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CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,WAAW,CAAC,OAAe,EAAE,OAA6B;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;CACF;AAnED,sBAmEC"}
|
package/resources/agent.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../resource.mjs";
|
|
3
|
+
import { isRequestOptions } from "../core.mjs";
|
|
3
4
|
export class Agent extends APIResource {
|
|
4
5
|
/**
|
|
5
6
|
* Create a new agent
|
|
@@ -7,17 +8,22 @@ export class Agent extends APIResource {
|
|
|
7
8
|
create(body, options) {
|
|
8
9
|
return this._client.post('/create-agent', { body, ...options });
|
|
9
10
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return this._client.get(`/get-agent/${agentId}`, options);
|
|
11
|
+
retrieve(agentId, query = {}, options) {
|
|
12
|
+
if (isRequestOptions(query)) {
|
|
13
|
+
return this.retrieve(agentId, {}, query);
|
|
14
|
+
}
|
|
15
|
+
return this._client.get(`/get-agent/${agentId}`, { query, ...options });
|
|
15
16
|
}
|
|
16
17
|
/**
|
|
17
18
|
* Update an existing agent
|
|
18
19
|
*/
|
|
19
|
-
update(agentId,
|
|
20
|
-
|
|
20
|
+
update(agentId, params, options) {
|
|
21
|
+
const { query_version, ...body } = params;
|
|
22
|
+
return this._client.patch(`/update-agent/${agentId}`, {
|
|
23
|
+
query: { version: query_version },
|
|
24
|
+
body,
|
|
25
|
+
...options,
|
|
26
|
+
});
|
|
21
27
|
}
|
|
22
28
|
/**
|
|
23
29
|
* List all agents
|
|
@@ -34,5 +40,11 @@ export class Agent extends APIResource {
|
|
|
34
40
|
headers: { Accept: '*/*', ...options?.headers },
|
|
35
41
|
});
|
|
36
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* Get all versions of an agent
|
|
45
|
+
*/
|
|
46
|
+
getVersions(agentId, options) {
|
|
47
|
+
return this._client.get(`/get-agent-versions/${agentId}`, options);
|
|
48
|
+
}
|
|
37
49
|
}
|
|
38
50
|
//# sourceMappingURL=agent.mjs.map
|
package/resources/agent.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.mjs","sourceRoot":"","sources":["../src/resources/agent.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"agent.mjs","sourceRoot":"","sources":["../src/resources/agent.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAG3B,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAWD,QAAQ,CACN,OAAe,EACf,QAAmD,EAAE,EACrD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SAC1C;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,OAAe,EACf,MAAyB,EACzB,OAA6B;QAE7B,MAAM,EAAE,aAAa,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,iBAAiB,OAAO,EAAE,EAAE;YACp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