retell-sdk 5.10.3 → 5.11.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 +8 -0
- package/package.json +1 -1
- package/resources/agent.d.mts +316 -3
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +316 -3
- package/resources/agent.d.ts.map +1 -1
- package/resources/batch-call.d.mts +105 -1
- package/resources/batch-call.d.mts.map +1 -1
- package/resources/batch-call.d.ts +105 -1
- package/resources/batch-call.d.ts.map +1 -1
- package/resources/call.d.mts +315 -3
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +315 -3
- package/resources/call.d.ts.map +1 -1
- package/resources/chat-agent.d.mts +255 -3
- package/resources/chat-agent.d.mts.map +1 -1
- package/resources/chat-agent.d.ts +255 -3
- package/resources/chat-agent.d.ts.map +1 -1
- package/resources/conversation-flow-component.d.mts +2164 -730
- package/resources/conversation-flow-component.d.mts.map +1 -1
- package/resources/conversation-flow-component.d.ts +2164 -730
- package/resources/conversation-flow-component.d.ts.map +1 -1
- package/resources/conversation-flow.d.mts +13562 -10694
- package/resources/conversation-flow.d.mts.map +1 -1
- package/resources/conversation-flow.d.ts +13562 -10694
- package/resources/conversation-flow.d.ts.map +1 -1
- package/resources/llm.d.mts +246 -0
- package/resources/llm.d.mts.map +1 -1
- package/resources/llm.d.ts +246 -0
- package/resources/llm.d.ts.map +1 -1
- package/src/resources/agent.ts +376 -0
- package/src/resources/batch-call.ts +125 -0
- package/src/resources/call.ts +375 -0
- package/src/resources/chat-agent.ts +300 -0
- package/src/resources/conversation-flow-component.ts +8295 -6198
- package/src/resources/conversation-flow.ts +9667 -5473
- package/src/resources/llm.ts +288 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -399,6 +399,11 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
399
399
|
*/
|
|
400
400
|
guardrail_config?: Agent.GuardrailConfig;
|
|
401
401
|
|
|
402
|
+
/**
|
|
403
|
+
* Toggle behavior presets on/off to influence agent response style and behaviors.
|
|
404
|
+
*/
|
|
405
|
+
handbook_config?: Agent.HandbookConfig;
|
|
406
|
+
|
|
402
407
|
/**
|
|
403
408
|
* Controls how sensitive the agent is to user interruptions. Value ranging from
|
|
404
409
|
* [0,1]. Lower value means it will take longer / more words for user to interrupt
|
|
@@ -533,6 +538,7 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
533
538
|
| Agent.EnumAnalysisData
|
|
534
539
|
| Agent.BooleanAnalysisData
|
|
535
540
|
| Agent.NumberAnalysisData
|
|
541
|
+
| Agent.CallPresetAnalysisData
|
|
536
542
|
> | null;
|
|
537
543
|
|
|
538
544
|
/**
|
|
@@ -618,6 +624,12 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
618
624
|
*/
|
|
619
625
|
stt_mode?: 'fast' | 'accurate' | 'custom';
|
|
620
626
|
|
|
627
|
+
/**
|
|
628
|
+
* IANA timezone for the agent (e.g. America/New_York). Defaults to
|
|
629
|
+
* America/Los_Angeles if not set.
|
|
630
|
+
*/
|
|
631
|
+
timezone?: string | null;
|
|
632
|
+
|
|
621
633
|
user_dtmf_options?: Agent.UserDtmfOptions | null;
|
|
622
634
|
|
|
623
635
|
/**
|
|
@@ -786,6 +798,58 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
786
798
|
> | null;
|
|
787
799
|
}
|
|
788
800
|
|
|
801
|
+
/**
|
|
802
|
+
* Toggle behavior presets on/off to influence agent response style and behaviors.
|
|
803
|
+
*/
|
|
804
|
+
export interface HandbookConfig {
|
|
805
|
+
/**
|
|
806
|
+
* When asked, acknowledge being a virtual assistant.
|
|
807
|
+
*/
|
|
808
|
+
ai_disclosure?: boolean;
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* Professional call center rep baseline.
|
|
812
|
+
*/
|
|
813
|
+
default_personality?: boolean;
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* Repeat back and confirm important details (voice only).
|
|
817
|
+
*/
|
|
818
|
+
echo_verification?: boolean;
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* Warm acknowledgment of caller concerns.
|
|
822
|
+
*/
|
|
823
|
+
high_empathy?: boolean;
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* Spell using NATO phonetic alphabet style (voice only).
|
|
827
|
+
*/
|
|
828
|
+
nato_phonetic_alphabet?: boolean;
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* Sprinkle natural speech fillers like "um", "you know" for a more human,
|
|
832
|
+
* conversational tone.
|
|
833
|
+
*/
|
|
834
|
+
natural_filler_words?: boolean;
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* Stay within prompt/context scope, don't invent details.
|
|
838
|
+
*/
|
|
839
|
+
scope_boundaries?: boolean;
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* Treat near-match similar words as same entity to reduce impact of transcription
|
|
843
|
+
* error (voice only).
|
|
844
|
+
*/
|
|
845
|
+
smart_matching?: boolean;
|
|
846
|
+
|
|
847
|
+
/**
|
|
848
|
+
* Convert numbers/dates/currency to spoken forms (voice only).
|
|
849
|
+
*/
|
|
850
|
+
speech_normalization?: boolean;
|
|
851
|
+
}
|
|
852
|
+
|
|
789
853
|
/**
|
|
790
854
|
* If this option is set, the call will try to detect IVR in the first 3 minutes of
|
|
791
855
|
* the call. Actions defined will be applied when the IVR is detected. Set this to
|
|
@@ -847,6 +911,13 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
847
911
|
*/
|
|
848
912
|
type: 'string';
|
|
849
913
|
|
|
914
|
+
/**
|
|
915
|
+
* Optional instruction to help decide whether this field needs to be populated in
|
|
916
|
+
* the analysis. If not set, the field is always included. If required is true,
|
|
917
|
+
* this is ignored.
|
|
918
|
+
*/
|
|
919
|
+
conditional_prompt?: string;
|
|
920
|
+
|
|
850
921
|
/**
|
|
851
922
|
* Examples of the variable value to teach model the style and syntax.
|
|
852
923
|
*/
|
|
@@ -880,6 +951,13 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
880
951
|
*/
|
|
881
952
|
type: 'enum';
|
|
882
953
|
|
|
954
|
+
/**
|
|
955
|
+
* Optional instruction to help decide whether this field needs to be populated in
|
|
956
|
+
* the analysis. If not set, the field is always included. If required is true,
|
|
957
|
+
* this is ignored.
|
|
958
|
+
*/
|
|
959
|
+
conditional_prompt?: string;
|
|
960
|
+
|
|
883
961
|
/**
|
|
884
962
|
* Whether this data is required. If true and the data is not extracted, the call
|
|
885
963
|
* will be marked as unsuccessful.
|
|
@@ -903,6 +981,13 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
903
981
|
*/
|
|
904
982
|
type: 'boolean';
|
|
905
983
|
|
|
984
|
+
/**
|
|
985
|
+
* Optional instruction to help decide whether this field needs to be populated in
|
|
986
|
+
* the analysis. If not set, the field is always included. If required is true,
|
|
987
|
+
* this is ignored.
|
|
988
|
+
*/
|
|
989
|
+
conditional_prompt?: string;
|
|
990
|
+
|
|
906
991
|
/**
|
|
907
992
|
* Whether this data is required. If true and the data is not extracted, the call
|
|
908
993
|
* will be marked as unsuccessful.
|
|
@@ -926,6 +1011,13 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
926
1011
|
*/
|
|
927
1012
|
type: 'number';
|
|
928
1013
|
|
|
1014
|
+
/**
|
|
1015
|
+
* Optional instruction to help decide whether this field needs to be populated in
|
|
1016
|
+
* the analysis. If not set, the field is always included. If required is true,
|
|
1017
|
+
* this is ignored.
|
|
1018
|
+
*/
|
|
1019
|
+
conditional_prompt?: string;
|
|
1020
|
+
|
|
929
1021
|
/**
|
|
930
1022
|
* Whether this data is required. If true and the data is not extracted, the call
|
|
931
1023
|
* will be marked as unsuccessful.
|
|
@@ -933,6 +1025,39 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
933
1025
|
required?: boolean;
|
|
934
1026
|
}
|
|
935
1027
|
|
|
1028
|
+
/**
|
|
1029
|
+
* System preset for post-call analysis (voice agents). Use in
|
|
1030
|
+
* post_call_analysis_data to override prompts or mark fields optional.
|
|
1031
|
+
*/
|
|
1032
|
+
export interface CallPresetAnalysisData {
|
|
1033
|
+
/**
|
|
1034
|
+
* Preset identifier for voice agent analysis.
|
|
1035
|
+
*/
|
|
1036
|
+
name: 'call_summary' | 'call_successful' | 'user_sentiment';
|
|
1037
|
+
|
|
1038
|
+
/**
|
|
1039
|
+
* Identifies this item as a system preset.
|
|
1040
|
+
*/
|
|
1041
|
+
type: 'system-presets';
|
|
1042
|
+
|
|
1043
|
+
/**
|
|
1044
|
+
* Optional instruction to help decide whether this field needs to be populated. If
|
|
1045
|
+
* not set, the field is always included.
|
|
1046
|
+
*/
|
|
1047
|
+
conditional_prompt?: string;
|
|
1048
|
+
|
|
1049
|
+
/**
|
|
1050
|
+
* Prompt or description for this preset.
|
|
1051
|
+
*/
|
|
1052
|
+
description?: string;
|
|
1053
|
+
|
|
1054
|
+
/**
|
|
1055
|
+
* If false, this field is optional in the analysis. If true or unset, the field is
|
|
1056
|
+
* required.
|
|
1057
|
+
*/
|
|
1058
|
+
required?: boolean;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
936
1061
|
export interface PronunciationDictionary {
|
|
937
1062
|
/**
|
|
938
1063
|
* The phonetic alphabet to be used for pronunciation.
|