@deepgram/sdk 3.12.0 → 3.13.0-beta.1

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.
Files changed (43) hide show
  1. package/README.md +2 -2
  2. package/dist/main/DeepgramClient.d.ts.map +1 -1
  3. package/dist/main/DeepgramClient.js +1 -1
  4. package/dist/main/DeepgramClient.js.map +1 -1
  5. package/dist/main/lib/enums/AgentEvents.d.ts +5 -5
  6. package/dist/main/lib/enums/AgentEvents.d.ts.map +1 -1
  7. package/dist/main/lib/enums/AgentEvents.js +5 -5
  8. package/dist/main/lib/enums/AgentEvents.js.map +1 -1
  9. package/dist/main/lib/types/AgentLiveSchema.d.ts +98 -95
  10. package/dist/main/lib/types/AgentLiveSchema.d.ts.map +1 -1
  11. package/dist/main/lib/types/FunctionCallResponse.d.ts +6 -2
  12. package/dist/main/lib/types/FunctionCallResponse.d.ts.map +1 -1
  13. package/dist/main/lib/version.d.ts +1 -1
  14. package/dist/main/lib/version.js +1 -1
  15. package/dist/main/packages/AgentLiveClient.d.ts +0 -16
  16. package/dist/main/packages/AgentLiveClient.d.ts.map +1 -1
  17. package/dist/main/packages/AgentLiveClient.js +6 -26
  18. package/dist/main/packages/AgentLiveClient.js.map +1 -1
  19. package/dist/module/DeepgramClient.d.ts.map +1 -1
  20. package/dist/module/DeepgramClient.js +1 -1
  21. package/dist/module/DeepgramClient.js.map +1 -1
  22. package/dist/module/lib/enums/AgentEvents.d.ts +5 -5
  23. package/dist/module/lib/enums/AgentEvents.d.ts.map +1 -1
  24. package/dist/module/lib/enums/AgentEvents.js +5 -5
  25. package/dist/module/lib/enums/AgentEvents.js.map +1 -1
  26. package/dist/module/lib/types/AgentLiveSchema.d.ts +98 -95
  27. package/dist/module/lib/types/AgentLiveSchema.d.ts.map +1 -1
  28. package/dist/module/lib/types/FunctionCallResponse.d.ts +6 -2
  29. package/dist/module/lib/types/FunctionCallResponse.d.ts.map +1 -1
  30. package/dist/module/lib/version.d.ts +1 -1
  31. package/dist/module/lib/version.js +1 -1
  32. package/dist/module/packages/AgentLiveClient.d.ts +0 -16
  33. package/dist/module/packages/AgentLiveClient.d.ts.map +1 -1
  34. package/dist/module/packages/AgentLiveClient.js +6 -26
  35. package/dist/module/packages/AgentLiveClient.js.map +1 -1
  36. package/dist/umd/deepgram.js +1 -1
  37. package/package.json +1 -1
  38. package/src/DeepgramClient.ts +1 -1
  39. package/src/lib/enums/AgentEvents.ts +5 -5
  40. package/src/lib/types/AgentLiveSchema.ts +98 -105
  41. package/src/lib/types/FunctionCallResponse.ts +6 -2
  42. package/src/lib/version.ts +1 -1
  43. package/src/packages/AgentLiveClient.ts +11 -26
@@ -12,7 +12,7 @@ export var AgentEvents;
12
12
  AgentEvents["Audio"] = "Audio";
13
13
  /**
14
14
  * Confirms the successful connection to the websocket.
15
- * { type: "Welcome", session_id: "String"}
15
+ * { type: "Welcome", request_id: "String"}
16
16
  */
17
17
  AgentEvents["Welcome"] = "Welcome";
18
18
  /**
@@ -37,7 +37,7 @@ export var AgentEvents;
37
37
  AgentEvents["AgentThinking"] = "AgentThinking";
38
38
  /**
39
39
  * A request to call client-side functions.
40
- * { type: "FunctionCallRequest", function_call_id: string, function_name: string, input: Record<string, any> }
40
+ * { type: "FunctionCallRequest", functions: { id: string; name: string; arguments: string; client_side: boolean}[] }
41
41
  */
42
42
  AgentEvents["FunctionCallRequest"] = "FunctionCallRequest";
43
43
  /**
@@ -58,14 +58,14 @@ export var AgentEvents;
58
58
  /**
59
59
  * This event is only emitted when you send an `InjectAgentMessage` request while
60
60
  * the user is currently speaking or the server is processing user audio.
61
- * { type: "InjectionRefused" }
61
+ * { type: "InjectionRefused", message: string }
62
62
  */
63
63
  AgentEvents["InjectionRefused"] = "InjectionRefused";
64
64
  /**
65
65
  * A successful response to the `UpdateInstructions` request.
66
- * { type: "InstructionsUpdated" }
66
+ * { type: "PromptUpdated" }
67
67
  */
68
- AgentEvents["InstructionsUpdated"] = "InstructionsUpdated";
68
+ AgentEvents["PromptUpdated"] = "PromptUpdated";
69
69
  /**
70
70
  * A successful response to the `UpdateSpeak` request.
71
71
  * { type: "SpeakUpdated" }
@@ -1 +1 @@
1
- {"version":3,"file":"AgentEvents.js","sourceRoot":"","sources":["../../../../src/lib/enums/AgentEvents.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,WA6EX;AA7ED,WAAY,WAAW;IACrB;;OAEG;IACH,4BAAa,CAAA;IACb,8BAAe,CAAA;IACf,8BAAe,CAAA;IACf;;OAEG;IACH,8BAAe,CAAA;IACf;;;OAGG;IACH,kCAAmB,CAAA;IACnB;;;OAGG;IACH,kDAAmC,CAAA;IACnC;;;OAGG;IACH,oDAAqC,CAAA;IACrC;;;OAGG;IACH,0DAA2C,CAAA;IAC3C;;;OAGG;IACH,8CAA+B,CAAA;IAC/B;;;OAGG;IACH,0DAA2C,CAAA;IAC3C;;;OAGG;IACH,kDAAmC,CAAA;IACnC;;;OAGG;IACH,4DAA6C,CAAA;IAC7C;;;OAGG;IACH,gDAAiC,CAAA;IACjC;;;;OAIG;IACH,oDAAqC,CAAA;IACrC;;;OAGG;IACH,0DAA2C,CAAA;IAC3C;;;OAGG;IACH,4CAA6B,CAAA;IAE7B;;OAEG;IACH,sCAAuB,CAAA;AACzB,CAAC,EA7EW,WAAW,KAAX,WAAW,QA6EtB"}
1
+ {"version":3,"file":"AgentEvents.js","sourceRoot":"","sources":["../../../../src/lib/enums/AgentEvents.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,WA6EX;AA7ED,WAAY,WAAW;IACrB;;OAEG;IACH,4BAAa,CAAA;IACb,8BAAe,CAAA;IACf,8BAAe,CAAA;IACf;;OAEG;IACH,8BAAe,CAAA;IACf;;;OAGG;IACH,kCAAmB,CAAA;IACnB;;;OAGG;IACH,kDAAmC,CAAA;IACnC;;;OAGG;IACH,oDAAqC,CAAA;IACrC;;;OAGG;IACH,0DAA2C,CAAA;IAC3C;;;OAGG;IACH,8CAA+B,CAAA;IAC/B;;;OAGG;IACH,0DAA2C,CAAA;IAC3C;;;OAGG;IACH,kDAAmC,CAAA;IACnC;;;OAGG;IACH,4DAA6C,CAAA;IAC7C;;;OAGG;IACH,gDAAiC,CAAA;IACjC;;;;OAIG;IACH,oDAAqC,CAAA;IACrC;;;OAGG;IACH,8CAA+B,CAAA;IAC/B;;;OAGG;IACH,4CAA6B,CAAA;IAE7B;;OAEG;IACH,sCAAuB,CAAA;AACzB,CAAC,EA7EW,WAAW,KAAX,WAAW,QA6EtB"}
@@ -1,126 +1,129 @@
1
- declare type AudioFormat = {
2
- encoding: "linear16";
3
- container: "wav" | "none";
4
- sampleRate: 8000 | 16000 | 24000 | 32000 | 48000;
5
- } | {
6
- encoding: "mulaw";
7
- container: "wav" | "none";
8
- sampleRate: 8000 | 16000;
9
- } | {
10
- encoding: "alaw";
11
- container: "wav" | "none";
12
- sampleRate: 8000 | 16000;
13
- };
14
1
  declare type AudioEncoding = "linear16" | "flac" | "mulaw" | "amr-nb" | "amr-wb" | "Opus" | "speex" | "g729" | string;
15
2
  declare type ListenModel = "nova-3" | "nova-3-general" | "nova-3-medical" | "nova-2" | "nova-2-meeting" | "nova-2-phonecall" | "nova-2-voicemail" | "nova-2-finance" | "nova-2-conversational" | "nova-2-video" | "nova-2-medical" | "nova-2-drivethru" | "nova-2-automotive" | "nova-2-atc" | "nova" | "nova-phonecall" | "enhanced" | "enhanced-meeting" | "enhanced-phonecall" | "enhanced-finance" | "base" | "base-meeting" | "base-phonecall" | "base-voicemail" | "base-finance" | "base-conversational" | "base-video" | "whisper-tiny" | "whisper" | "whisper-small" | "whisper-medium" | "whisper-large" | string;
16
3
  declare type SpeakModel = "aura-asteria-en" | "aura-luna-en" | "aura-stella-en" | "aura-athena-en" | "aura-hera-en" | "aura-orion-en" | "aura-arcas-en" | "aura-perseus-en" | "aura-angus-en" | "aura-orpheus-en" | "aura-helios-en" | "aura-zeus-en" | string;
17
- interface ThinkModelFunction {
18
- name: string;
19
- description: string;
20
- url: string;
21
- headers: [
22
- {
23
- key: "authorization";
24
- value: string;
25
- }
26
- ];
27
- method: "POST";
28
- parameters: {
29
- type: string;
30
- properties: Record<string, {
31
- type: string;
32
- description: string;
33
- }>;
34
- };
35
- }
36
- declare type ThinkModel = {
37
- provider: {
38
- type: "open_ai";
39
- };
40
- model: "gpt-4o-mini";
41
- instructions?: string;
42
- functions?: ThinkModelFunction[];
43
- } | {
44
- provider: {
45
- type: "anthropic";
46
- };
47
- model: "claude-3-haiku-20240307";
48
- instructions?: string;
49
- functions?: ThinkModelFunction[];
50
- } | {
51
- provider: {
52
- type: "groq";
53
- };
54
- model: "";
55
- instructions?: string;
56
- functions?: ThinkModelFunction[];
57
- } | {
58
- provider: {
59
- type: "custom";
60
- url: string;
61
- key: string;
62
- };
63
- model: string;
64
- instructions?: string;
65
- functions?: ThinkModelFunction[];
66
- };
67
4
  /**
68
5
  * @see https://developers.deepgram.com/reference/voicebot-api-phase-preview#settingsconfiguration
69
6
  */
70
7
  interface AgentLiveSchema extends Record<string, unknown> {
8
+ /**
9
+ * Set to true to enable experimental features.
10
+ * @default false
11
+ */
12
+ experimental?: boolean;
71
13
  audio: {
72
14
  input?: {
73
15
  /**
74
- * @default 1
16
+ * @default "linear16"
75
17
  */
76
- channels?: number;
77
18
  encoding: AudioEncoding;
78
19
  /**
79
- * @default false
20
+ * @default 16000
80
21
  */
81
- multichannel?: boolean;
82
- sampleRate: number;
22
+ sample_rate: number;
83
23
  };
84
24
  /**
85
25
  * @see https://developers.deepgram.com/docs/tts-media-output-settings#audio-format-combinations
86
26
  */
87
- output?: AudioFormat;
88
- };
89
- agent: {
90
- listen: {
27
+ output?: {
28
+ encoding?: string;
29
+ sample_rate?: number;
30
+ bitrate?: number;
91
31
  /**
92
- * @see https://developers.deepgram.com/docs/model
32
+ * @default "none"
93
33
  */
94
- model: ListenModel;
95
- /**
96
- * @see https://developers.deepgram.com/docs/keyterm
97
- */
98
- keyterms?: string[];
34
+ container?: string;
99
35
  };
100
- speak: {
36
+ };
37
+ agent: {
38
+ language?: {
101
39
  /**
102
- * @see https://developers.deepgram.com/docs/tts-models
40
+ * ISO 639-1 language code for agent language.
41
+ * @default "en"
103
42
  */
104
- model: SpeakModel;
43
+ type: string;
44
+ };
45
+ listen?: {
46
+ provider: {
47
+ type: "deepgram";
48
+ /**
49
+ * @see https://developers.deepgram.com/docs/model
50
+ */
51
+ model: ListenModel;
52
+ /**
53
+ * Only available for Nova 3.
54
+ * @see https://developers.deepgram.com/docs/keyterm
55
+ */
56
+ keyterms?: string[];
57
+ };
58
+ };
59
+ speak?: {
60
+ provider: {
61
+ type: "deepgram" | "eleven_labs" | "cartesia" | "open_ai" | string;
62
+ /**
63
+ * Deepgram OR OpenAI model to use.
64
+ */
65
+ model?: SpeakModel;
66
+ /**
67
+ * Eleven Labs OR Cartesia model to use.
68
+ */
69
+ model_id?: string;
70
+ /**
71
+ * Cartesia voice configuration.
72
+ */
73
+ voice?: {
74
+ mode: string;
75
+ id: string;
76
+ };
77
+ /**
78
+ * Optional Cartesia language.
79
+ */
80
+ language?: string;
81
+ /**
82
+ * Optional Eleven Labs voice.
83
+ */
84
+ language_code?: string;
85
+ };
86
+ endpoint?: {
87
+ url?: string;
88
+ headers?: Record<string, string>;
89
+ };
105
90
  };
106
91
  /**
107
92
  * @see https://developers.deepgram.com/reference/voicebot-api-phase-preview#supported-llm-providers-and-models
108
93
  */
109
- think: ThinkModel;
110
- };
111
- context?: {
112
- /**
113
- * LLM message history (e.g. to restore existing conversation if websocket disconnects)
114
- */
115
- messages: {
116
- role: "user" | "assistant";
117
- content: string;
118
- }[];
119
- /**
120
- * Whether to replay the last message, if it is an assistant message.
121
- */
122
- replay: boolean;
94
+ think?: {
95
+ provider: {
96
+ type: "deepgram" | "open_ai" | "anthropic" | "x_ai" | string;
97
+ model: string;
98
+ /**
99
+ * 0-2 for OpenAI, 0-1 for Anthropic.
100
+ */
101
+ temperature?: number;
102
+ };
103
+ /**
104
+ * Optional ONLY if LLM provider is Deepgram.
105
+ */
106
+ endpoint?: {
107
+ url?: string;
108
+ headers?: Record<string, string>;
109
+ };
110
+ functions?: {
111
+ name?: string;
112
+ description?: string;
113
+ parameters?: Record<string, unknown>;
114
+ endpoint?: {
115
+ url?: string;
116
+ method?: string;
117
+ headers?: Record<string, string>;
118
+ };
119
+ }[];
120
+ prompt?: string;
121
+ };
123
122
  };
123
+ /**
124
+ * Optional message the agent will say at the start of the connection.
125
+ */
126
+ greeting?: string;
124
127
  }
125
128
  export type { AgentLiveSchema, SpeakModel };
126
129
  //# sourceMappingURL=AgentLiveSchema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AgentLiveSchema.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/AgentLiveSchema.ts"],"names":[],"mappings":"AAAA,aAAK,WAAW,GACZ;IACE,QAAQ,EAAE,UAAU,CAAC;IACrB,SAAS,EAAE,KAAK,GAAG,MAAM,CAAC;IAC1B,UAAU,EAAE,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;CAClD,GACD;IACE,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,KAAK,GAAG,MAAM,CAAC;IAC1B,UAAU,EAAE,IAAI,GAAG,KAAK,CAAC;CAC1B,GACD;IACE,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,KAAK,GAAG,MAAM,CAAC;IAC1B,UAAU,EAAE,IAAI,GAAG,KAAK,CAAC;CAC1B,CAAC;AAEN,aAAK,aAAa,GACd,UAAU,GACV,MAAM,GACN,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,CAAC;AAEX,aAAK,WAAW,GACZ,QAAQ,GACR,gBAAgB,GAChB,gBAAgB,GAChB,QAAQ,GACR,gBAAgB,GAChB,kBAAkB,GAClB,kBAAkB,GAClB,gBAAgB,GAChB,uBAAuB,GACvB,cAAc,GACd,gBAAgB,GA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AO,CAAC;KACjB,CAAC;CACH;AAED,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"AgentLiveSchema.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/AgentLiveSchema.ts"],"names":[],"mappings":"AAAA,aAAK,aAAa,GACd,UAAU,GACV,MAAM,GACN,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,CAAC;AAEX,aAAK,WAAW,GACZ,QAAQ,GACR,gBAAgB,GAChB,gBAAgB,GAChB,QAAQ,GACR,gBAAgB,GAChB,kBAAkB,GAClB,kBAAkB,GAClB,gBAAgB,GAChB,uBAAuB,GACvB,cAAc,GACd,gBAAgB,GAChB,kBAAkB,GAClB,mBAAmB,GACnB,YAAY,GACZ,MAAM,GACN,gBAAgB,GAChB,UAAU,GACV,kBAAkB,GAClB,oBAAoB,GACpB,kBAAkB,GAClB,MAAM,GACN,cAAc,GACd,gBAAgB,GAChB,gBAAgB,GAChB,cAAc,GACd,qBAAqB,GACrB,YAAY,GACZ,cAAc,GACd,SAAS,GACT,eAAe,GACf,gBAAgB,GAChB,eAAe,GACf,MAAM,CAAC;AAEX,aAAK,UAAU,GACX,iBAAiB,GACjB,cAAc,GACd,gBAAgB,GAChB,gBAAgB,GAChB,cAAc,GACd,eAAe,GACf,eAAe,GACf,iBAAiB,GACjB,eAAe,GACf,iBAAiB,GACjB,gBAAgB,GAChB,cAAc,GACd,MAAM,CAAC;AAEX;;GAEG;AACH,UAAU,eAAgB,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACvD;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,EAAE;QACL,KAAK,CAAC,EAAE;YACN;;eAEG;YACH,QAAQ,EAAE,aAAa,CAAC;YACxB;;eAEG;YACH,WAAW,EAAE,MAAM,CAAC;SACrB,CAAC;QACF;;WAEG;QACH,MAAM,CAAC,EAAE;YACP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C;gBACd;;mBAEG;gBACH,WAAW,CAAC,EAAE,MAAM,CAAC;aACtB,CAAC;YACF;;eAEG;YACH,QAAQ,CAAC,EAAE;gBACT,GAAG,CAAC,EAAE,MAAM,CAAC;gBACb,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;aAClC,CAAC;YACF,SAAS,CAAC,EAAE;gBACV,IAAI,CAAC,EAAE,MAAM,CAAC;gBACd,WAAW,CAAC,EAAE,MAAM,CAAC;gBACrB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBACrC,QAAQ,CAAC,EAAE;oBACT,GAAG,CAAC,EAAE,MAAM,CAAC;oBACb,MAAM,CAAC,EAAE,MAAM,CAAC;oBAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;iBAClC,CAAC;aACH,EAAE,CAAC;YACJ,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB,CAAC;KACH,CAAC;IACF;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,CAAC"}
@@ -5,10 +5,14 @@ export interface FunctionCallResponse {
5
5
  /**
6
6
  * This must be the ID that was received in the request.
7
7
  */
8
- function_call_id: string;
8
+ id: string;
9
+ /**
10
+ * The name of the function being called.
11
+ */
12
+ name: string;
9
13
  /**
10
14
  * The result of the function call.
11
15
  */
12
- output: string;
16
+ content: string;
13
17
  }
14
18
  //# sourceMappingURL=FunctionCallResponse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FunctionCallResponse.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/FunctionCallResponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"FunctionCallResponse.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/FunctionCallResponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -1,2 +1,2 @@
1
- export declare const version = "3.12.0";
1
+ export declare const version = "3.13.0-beta.1";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1,2 +1,2 @@
1
- export const version = "3.12.0";
1
+ export const version = "3.13.0-beta.1";
2
2
  //# sourceMappingURL=version.js.map
@@ -32,20 +32,6 @@ export declare class AgentLiveClient extends AbstractLiveClient {
32
32
  * To be called with your model configuration BEFORE sending
33
33
  * any audio data.
34
34
  * @param options - The SettingsConfiguration object.
35
- * @param options.audio.input.encoding - The encoding for your inbound (user) audio.
36
- * @param options.audio.input.sampleRate - The sample rate for your inbound (user) audio.
37
- * @param options.audio.output.encoding - The encoding for your outbound (agent) audio.
38
- * @param options.audio.output.sampleRate - The sample rate for your outbound (agent) audio.
39
- * @param options.audio.output.bitrate - The bitrate for your outbound (agent) audio.
40
- * @param options.audio.output.container - The container for your outbound (agent) audio.
41
- * @param options.agent.listen.model - The STT model to use for processing user audio.
42
- * @param options.agent.speak.model - The TTS model to use for generating agent audio.
43
- * @param options.agent.think.provider.type - The LLM provider to use.
44
- * @param options.agent.think.model - The LLM model to use.
45
- * @param options.agent.think.instructions - The instructions to provide to the LLM.
46
- * @param options.agent.think.functions - The functions to provide to the LLM.
47
- * @param options.context.messages - The message history to provide to the LLM (useful if a websocket connection is lost.)
48
- * @param options.context.replay - Whether to replay the last message if it was an assistant message.
49
35
  */
50
36
  configure(options: AgentLiveSchema): void;
51
37
  /**
@@ -71,8 +57,6 @@ export declare class AgentLiveClient extends AbstractLiveClient {
71
57
  /**
72
58
  * Respond to a function call request.
73
59
  * @param response - The response to the function call request.
74
- * @param response.function_call_id - The ID that was received in the request (these MUST match).
75
- * @param response.output - The result of the function call.
76
60
  */
77
61
  functionCallResponse(response: FunctionCallResponse): void;
78
62
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"AgentLiveClient.d.ts","sourceRoot":"","sources":["../../../src/packages/AgentLiveClient.ts"],"names":[],"mappings":";AAGA,OAAO,KAAK,EACV,eAAe,EACf,UAAU,EACV,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,qBAAa,eAAgB,SAAQ,kBAAkB;IAC9C,SAAS,EAAE,MAAM,CAAW;gBAEvB,OAAO,EAAE,qBAAqB,EAAE,QAAQ,GAAE,MAAiB;IAOvE;;;;;;;OAOG;IACI,eAAe,IAAI,IAAI;IAoB9B;;;OAGG;IACH,SAAS,CAAC,aAAa,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI;IA6BlD;;;OAGG;IACH,SAAS,CAAC,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAIjD;;;OAGG;IACH,SAAS,CAAC,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI;IAQ5C;;;;;;;;;;;;;;;;;;OAkBG;IACI,SAAS,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI;IAchD;;;OAGG;IACI,kBAAkB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI;IAIrD;;;OAGG;IACI,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAI3C;;;;;;;;OAQG;IACI,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAIhD;;;;;OAKG;IACI,oBAAoB,CAAC,QAAQ,EAAE,oBAAoB,GAAG,IAAI;IAIjE;;;;OAIG;IACI,SAAS,IAAI,IAAI;CAGzB"}
1
+ {"version":3,"file":"AgentLiveClient.d.ts","sourceRoot":"","sources":["../../../src/packages/AgentLiveClient.ts"],"names":[],"mappings":";AAGA,OAAO,KAAK,EACV,eAAe,EACf,UAAU,EACV,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,qBAAa,eAAgB,SAAQ,kBAAkB;IAC9C,SAAS,EAAE,MAAM,CAAW;gBAEvB,OAAO,EAAE,qBAAqB,EAAE,QAAQ,GAAE,MAAmC;IAOzF;;;;;;;OAOG;IACI,eAAe,IAAI,IAAI;IAoB9B;;;OAGG;IACH,SAAS,CAAC,aAAa,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI;IA8BlD;;;OAGG;IACH,SAAS,CAAC,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAIjD;;;OAGG;IACH,SAAS,CAAC,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI;IAQ5C;;;;OAIG;IACI,SAAS,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI;IAchD;;;OAGG;IACI,kBAAkB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI;IAIrD;;;OAGG;IACI,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAI3C;;;;;;;;OAQG;IACI,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAIhD;;;OAGG;IACI,oBAAoB,CAAC,QAAQ,EAAE,oBAAoB,GAAG,IAAI;IAIjE;;;;OAIG;IACI,SAAS,IAAI,IAAI;CAGzB"}
@@ -3,7 +3,7 @@ import { AgentEvents } from "../lib/enums/AgentEvents";
3
3
  import { DeepgramError } from "../lib/errors";
4
4
  import { AbstractLiveClient } from "./AbstractLiveClient";
5
5
  export class AgentLiveClient extends AbstractLiveClient {
6
- constructor(options, endpoint = "/agent") {
6
+ constructor(options, endpoint = "/:version/agent/converse") {
7
7
  var _a, _b, _c, _d;
8
8
  super(options);
9
9
  this.namespace = "agent";
@@ -47,6 +47,7 @@ export class AgentLiveClient extends AbstractLiveClient {
47
47
  catch (error) {
48
48
  this.emit(AgentEvents.Error, {
49
49
  event,
50
+ data: event.data,
50
51
  message: "Unable to parse `data` as JSON.",
51
52
  error,
52
53
  });
@@ -94,34 +95,15 @@ export class AgentLiveClient extends AbstractLiveClient {
94
95
  * To be called with your model configuration BEFORE sending
95
96
  * any audio data.
96
97
  * @param options - The SettingsConfiguration object.
97
- * @param options.audio.input.encoding - The encoding for your inbound (user) audio.
98
- * @param options.audio.input.sampleRate - The sample rate for your inbound (user) audio.
99
- * @param options.audio.output.encoding - The encoding for your outbound (agent) audio.
100
- * @param options.audio.output.sampleRate - The sample rate for your outbound (agent) audio.
101
- * @param options.audio.output.bitrate - The bitrate for your outbound (agent) audio.
102
- * @param options.audio.output.container - The container for your outbound (agent) audio.
103
- * @param options.agent.listen.model - The STT model to use for processing user audio.
104
- * @param options.agent.speak.model - The TTS model to use for generating agent audio.
105
- * @param options.agent.think.provider.type - The LLM provider to use.
106
- * @param options.agent.think.model - The LLM model to use.
107
- * @param options.agent.think.instructions - The instructions to provide to the LLM.
108
- * @param options.agent.think.functions - The functions to provide to the LLM.
109
- * @param options.context.messages - The message history to provide to the LLM (useful if a websocket connection is lost.)
110
- * @param options.context.replay - Whether to replay the last message if it was an assistant message.
111
98
  */
112
99
  configure(options) {
113
100
  var _a, _b, _c;
114
- // @ts-expect-error Not every consumer of the SDK is using TypeScript, this conditional exists to catch runtime errors for JS code where there is no compile-time checking.
115
- if (!options.agent.listen.model.startsWith("nova-3") && ((_a = options.agent.listen.keyterm) === null || _a === void 0 ? void 0 : _a.length)) {
101
+ if (!((_a = options.agent.listen) === null || _a === void 0 ? void 0 : _a.provider.model.startsWith("nova-3")) &&
102
+ ((_c = (_b = options.agent.listen) === null || _b === void 0 ? void 0 : _b.provider.keyterms) === null || _c === void 0 ? void 0 : _c.length)) {
116
103
  throw new DeepgramError("Keyterms are only supported with the Nova 3 models.");
117
104
  }
118
- // Converting the property names...
119
- const opts = Object.assign({}, options);
120
- opts.audio.input["sample_rate"] = (_b = options.audio.input) === null || _b === void 0 ? void 0 : _b.sampleRate;
121
- delete opts.audio.input.sampleRate;
122
- opts.audio.output["sample_rate"] = (_c = options.audio.output) === null || _c === void 0 ? void 0 : _c.sampleRate;
123
- delete opts.audio.output.sampleRate;
124
- this.send(JSON.stringify(Object.assign({ type: "SettingsConfiguration" }, opts)));
105
+ const string = JSON.stringify(Object.assign({ type: "Settings" }, options));
106
+ this.send(string);
125
107
  }
126
108
  /**
127
109
  * Provide new instructions to the LLM.
@@ -152,8 +134,6 @@ export class AgentLiveClient extends AbstractLiveClient {
152
134
  /**
153
135
  * Respond to a function call request.
154
136
  * @param response - The response to the function call request.
155
- * @param response.function_call_id - The ID that was received in the request (these MUST match).
156
- * @param response.output - The result of the function call.
157
137
  */
158
138
  functionCallResponse(response) {
159
139
  this.send(JSON.stringify(Object.assign({ type: "FunctionCallResponse" }, response)));
@@ -1 +1 @@
1
- {"version":3,"file":"AgentLiveClient.js","sourceRoot":"","sources":["../../../src/packages/AgentLiveClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAO9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,OAAO,eAAgB,SAAQ,kBAAkB;IAGrD,YAAY,OAA8B,EAAE,WAAmB,QAAQ;;QACrE,KAAK,CAAC,OAAO,CAAC,CAAC;QAHV,cAAS,GAAW,OAAO,CAAC;QAIjC,IAAI,CAAC,OAAO,GAAG,MAAA,MAAA,MAAA,MAAA,OAAO,CAAC,KAAK,0CAAE,SAAS,0CAAE,OAAO,0CAAE,GAAG,mCAAI,iBAAiB,CAAC;QAE3E,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,QAAQ,C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