@deepgram/sdk 3.9.0 → 3.10.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/dist/main/DeepgramClient.d.ts +8 -1
- package/dist/main/DeepgramClient.d.ts.map +1 -1
- package/dist/main/DeepgramClient.js +9 -0
- package/dist/main/DeepgramClient.js.map +1 -1
- package/dist/main/lib/constants.d.ts +2 -0
- package/dist/main/lib/constants.d.ts.map +1 -1
- package/dist/main/lib/constants.js +9 -1
- package/dist/main/lib/constants.js.map +1 -1
- package/dist/main/lib/enums/AgentEvents.d.ts +78 -0
- package/dist/main/lib/enums/AgentEvents.d.ts.map +1 -0
- package/dist/main/lib/enums/AgentEvents.js +82 -0
- package/dist/main/lib/enums/AgentEvents.js.map +1 -0
- package/dist/main/lib/enums/index.d.ts +1 -0
- package/dist/main/lib/enums/index.d.ts.map +1 -1
- package/dist/main/lib/enums/index.js +1 -0
- package/dist/main/lib/enums/index.js.map +1 -1
- package/dist/main/lib/types/AgentLiveSchema.d.ts +119 -0
- package/dist/main/lib/types/AgentLiveSchema.d.ts.map +1 -0
- package/dist/main/lib/types/AgentLiveSchema.js +3 -0
- package/dist/main/lib/types/AgentLiveSchema.js.map +1 -0
- package/dist/main/lib/types/DeepgramClientOptions.d.ts +1 -0
- package/dist/main/lib/types/DeepgramClientOptions.d.ts.map +1 -1
- package/dist/main/lib/types/FunctionCallResponse.d.ts +14 -0
- package/dist/main/lib/types/FunctionCallResponse.d.ts.map +1 -0
- package/dist/main/lib/types/FunctionCallResponse.js +3 -0
- package/dist/main/lib/types/FunctionCallResponse.js.map +1 -0
- package/dist/main/lib/types/LiveTranscriptionEvent.d.ts +1 -0
- package/dist/main/lib/types/LiveTranscriptionEvent.d.ts.map +1 -1
- package/dist/main/lib/types/index.d.ts +2 -0
- package/dist/main/lib/types/index.d.ts.map +1 -1
- package/dist/main/lib/types/index.js +2 -0
- package/dist/main/lib/types/index.js.map +1 -1
- package/dist/main/lib/version.d.ts +1 -1
- package/dist/main/lib/version.js +1 -1
- package/dist/main/packages/AbstractLiveClient.js +2 -2
- package/dist/main/packages/AbstractLiveClient.js.map +1 -1
- package/dist/main/packages/AgentLiveClient.d.ts +85 -0
- package/dist/main/packages/AgentLiveClient.d.ts.map +1 -0
- package/dist/main/packages/AgentLiveClient.js +169 -0
- package/dist/main/packages/AgentLiveClient.js.map +1 -0
- package/dist/main/packages/index.d.ts +1 -0
- package/dist/main/packages/index.d.ts.map +1 -1
- package/dist/main/packages/index.js +1 -0
- package/dist/main/packages/index.js.map +1 -1
- package/dist/module/DeepgramClient.d.ts +8 -1
- package/dist/module/DeepgramClient.d.ts.map +1 -1
- package/dist/module/DeepgramClient.js +10 -1
- package/dist/module/DeepgramClient.js.map +1 -1
- package/dist/module/lib/constants.d.ts +2 -0
- package/dist/module/lib/constants.d.ts.map +1 -1
- package/dist/module/lib/constants.js +8 -0
- package/dist/module/lib/constants.js.map +1 -1
- package/dist/module/lib/enums/AgentEvents.d.ts +78 -0
- package/dist/module/lib/enums/AgentEvents.d.ts.map +1 -0
- package/dist/module/lib/enums/AgentEvents.js +79 -0
- package/dist/module/lib/enums/AgentEvents.js.map +1 -0
- package/dist/module/lib/enums/index.d.ts +1 -0
- package/dist/module/lib/enums/index.d.ts.map +1 -1
- package/dist/module/lib/enums/index.js +1 -0
- package/dist/module/lib/enums/index.js.map +1 -1
- package/dist/module/lib/types/AgentLiveSchema.d.ts +119 -0
- package/dist/module/lib/types/AgentLiveSchema.d.ts.map +1 -0
- package/dist/module/lib/types/AgentLiveSchema.js +2 -0
- package/dist/module/lib/types/AgentLiveSchema.js.map +1 -0
- package/dist/module/lib/types/DeepgramClientOptions.d.ts +1 -0
- package/dist/module/lib/types/DeepgramClientOptions.d.ts.map +1 -1
- package/dist/module/lib/types/FunctionCallResponse.d.ts +14 -0
- package/dist/module/lib/types/FunctionCallResponse.d.ts.map +1 -0
- package/dist/module/lib/types/FunctionCallResponse.js +2 -0
- package/dist/module/lib/types/FunctionCallResponse.js.map +1 -0
- package/dist/module/lib/types/LiveTranscriptionEvent.d.ts +1 -0
- package/dist/module/lib/types/LiveTranscriptionEvent.d.ts.map +1 -1
- package/dist/module/lib/types/index.d.ts +2 -0
- package/dist/module/lib/types/index.d.ts.map +1 -1
- package/dist/module/lib/types/index.js +2 -0
- package/dist/module/lib/types/index.js.map +1 -1
- package/dist/module/lib/version.d.ts +1 -1
- package/dist/module/lib/version.js +1 -1
- package/dist/module/packages/AbstractLiveClient.js +2 -2
- package/dist/module/packages/AbstractLiveClient.js.map +1 -1
- package/dist/module/packages/AgentLiveClient.d.ts +85 -0
- package/dist/module/packages/AgentLiveClient.d.ts.map +1 -0
- package/dist/module/packages/AgentLiveClient.js +165 -0
- package/dist/module/packages/AgentLiveClient.js.map +1 -0
- package/dist/module/packages/index.d.ts +1 -0
- package/dist/module/packages/index.d.ts.map +1 -1
- package/dist/module/packages/index.js +1 -0
- package/dist/module/packages/index.js.map +1 -1
- package/dist/umd/deepgram.js +1 -1
- package/package.json +1 -1
- package/src/DeepgramClient.ts +11 -0
- package/src/lib/constants.ts +9 -0
- package/src/lib/enums/AgentEvents.ts +78 -0
- package/src/lib/enums/index.ts +1 -0
- package/src/lib/types/AgentLiveSchema.ts +184 -0
- package/src/lib/types/DeepgramClientOptions.ts +1 -0
- package/src/lib/types/FunctionCallResponse.ts +13 -0
- package/src/lib/types/LiveTranscriptionEvent.ts +1 -0
- package/src/lib/types/index.ts +2 -0
- package/src/lib/version.ts +1 -1
- package/src/packages/AbstractLiveClient.ts +2 -2
- package/src/packages/AgentLiveClient.ts +178 -0
- package/src/packages/index.ts +1 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import type { AgentLiveSchema, SpeakModel, DeepgramClientOptions, FunctionCallResponse } from "../lib/types";
|
|
3
|
+
import { AbstractLiveClient } from "./AbstractLiveClient";
|
|
4
|
+
export declare class AgentLiveClient extends AbstractLiveClient {
|
|
5
|
+
namespace: string;
|
|
6
|
+
constructor(options: DeepgramClientOptions, endpoint?: string);
|
|
7
|
+
/**
|
|
8
|
+
* Sets up the connection event handlers.
|
|
9
|
+
* This method is responsible for handling the various events that can occur on the WebSocket connection, such as opening, closing, and receiving messages.
|
|
10
|
+
* - When the connection is opened, it emits the `AgentEvents.Open` event.
|
|
11
|
+
* - When the connection is closed, it emits the `AgentEvents.Close` event.
|
|
12
|
+
* - When an error occurs on the connection, it emits the `AgentEvents.Error` event.
|
|
13
|
+
* - When a message is received, it parses the message and emits the appropriate event based on the message type.
|
|
14
|
+
*/
|
|
15
|
+
setupConnection(): void;
|
|
16
|
+
/**
|
|
17
|
+
* Handles incoming messages from the WebSocket connection.
|
|
18
|
+
* @param event - The MessageEvent object representing the received message.
|
|
19
|
+
*/
|
|
20
|
+
protected handleMessage(event: MessageEvent): void;
|
|
21
|
+
/**
|
|
22
|
+
* Handles binary messages received from the WebSocket connection.
|
|
23
|
+
* @param data - The binary data.
|
|
24
|
+
*/
|
|
25
|
+
protected handleBinaryMessage(data: Buffer): void;
|
|
26
|
+
/**
|
|
27
|
+
* Handles text messages received from the WebSocket connection.
|
|
28
|
+
* @param data - The parsed JSON data.
|
|
29
|
+
*/
|
|
30
|
+
protected handleTextMessage(data: any): void;
|
|
31
|
+
/**
|
|
32
|
+
* To be called with your model configuration BEFORE sending
|
|
33
|
+
* any audio data.
|
|
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
|
+
*/
|
|
50
|
+
configure(options: AgentLiveSchema): void;
|
|
51
|
+
/**
|
|
52
|
+
* Provide new instructions to the LLM.
|
|
53
|
+
* @param instructions - The instructions to provide.
|
|
54
|
+
*/
|
|
55
|
+
updateInstructions(instructions: string): void;
|
|
56
|
+
/**
|
|
57
|
+
* Change the speak model.
|
|
58
|
+
* @param model - The new model to use.
|
|
59
|
+
*/
|
|
60
|
+
updateSpeak(model: SpeakModel): void;
|
|
61
|
+
/**
|
|
62
|
+
* Immediately trigger an agent message. If this message
|
|
63
|
+
* is sent while the user is speaking, or while the server is in the
|
|
64
|
+
* middle of sending audio, then the request will be ignored and an InjectionRefused
|
|
65
|
+
* event will be emitted.
|
|
66
|
+
* @example "Hold on while I look that up for you."
|
|
67
|
+
* @example "Are you still on the line?"
|
|
68
|
+
* @param message - The message to speak.
|
|
69
|
+
*/
|
|
70
|
+
injectAgentMessage(message: string): void;
|
|
71
|
+
/**
|
|
72
|
+
* Respond to a function call request.
|
|
73
|
+
* @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
|
+
*/
|
|
77
|
+
functionCallResponse(response: FunctionCallResponse): void;
|
|
78
|
+
/**
|
|
79
|
+
* Send a keepalive to avoid closing the websocket while you
|
|
80
|
+
* are not transmitting audio. This should be sent at least
|
|
81
|
+
* every 8 seconds.
|
|
82
|
+
*/
|
|
83
|
+
keepAlive(): void;
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=AgentLiveClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentLiveClient.d.ts","sourceRoot":"","sources":["../../../src/packages/AgentLiveClient.ts"],"names":[],"mappings":";AAEA,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;IAUhD;;;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"}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AgentLiveClient = void 0;
|
|
4
|
+
const constants_1 = require("../lib/constants");
|
|
5
|
+
const AgentEvents_1 = require("../lib/enums/AgentEvents");
|
|
6
|
+
const AbstractLiveClient_1 = require("./AbstractLiveClient");
|
|
7
|
+
class AgentLiveClient extends AbstractLiveClient_1.AbstractLiveClient {
|
|
8
|
+
constructor(options, endpoint = "/agent") {
|
|
9
|
+
var _a, _b, _c, _d;
|
|
10
|
+
super(options);
|
|
11
|
+
this.namespace = "agent";
|
|
12
|
+
this.baseUrl = (_d = (_c = (_b = (_a = options.agent) === null || _a === void 0 ? void 0 : _a.websocket) === null || _b === void 0 ? void 0 : _b.options) === null || _c === void 0 ? void 0 : _c.url) !== null && _d !== void 0 ? _d : constants_1.DEFAULT_AGENT_URL;
|
|
13
|
+
this.connect({}, endpoint);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Sets up the connection event handlers.
|
|
17
|
+
* This method is responsible for handling the various events that can occur on the WebSocket connection, such as opening, closing, and receiving messages.
|
|
18
|
+
* - When the connection is opened, it emits the `AgentEvents.Open` event.
|
|
19
|
+
* - When the connection is closed, it emits the `AgentEvents.Close` event.
|
|
20
|
+
* - When an error occurs on the connection, it emits the `AgentEvents.Error` event.
|
|
21
|
+
* - When a message is received, it parses the message and emits the appropriate event based on the message type.
|
|
22
|
+
*/
|
|
23
|
+
setupConnection() {
|
|
24
|
+
if (this.conn) {
|
|
25
|
+
this.conn.onopen = () => {
|
|
26
|
+
this.emit(AgentEvents_1.AgentEvents.Open, this);
|
|
27
|
+
};
|
|
28
|
+
this.conn.onclose = (event) => {
|
|
29
|
+
this.emit(AgentEvents_1.AgentEvents.Close, event);
|
|
30
|
+
};
|
|
31
|
+
this.conn.onerror = (event) => {
|
|
32
|
+
this.emit(AgentEvents_1.AgentEvents.Error, event);
|
|
33
|
+
};
|
|
34
|
+
this.conn.onmessage = (event) => {
|
|
35
|
+
this.handleMessage(event);
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Handles incoming messages from the WebSocket connection.
|
|
41
|
+
* @param event - The MessageEvent object representing the received message.
|
|
42
|
+
*/
|
|
43
|
+
handleMessage(event) {
|
|
44
|
+
if (typeof event.data === "string") {
|
|
45
|
+
try {
|
|
46
|
+
const data = JSON.parse(event.data);
|
|
47
|
+
this.handleTextMessage(data);
|
|
48
|
+
}
|
|
49
|
+
catch (error) {
|
|
50
|
+
this.emit(AgentEvents_1.AgentEvents.Error, {
|
|
51
|
+
event,
|
|
52
|
+
message: "Unable to parse `data` as JSON.",
|
|
53
|
+
error,
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
else if (event.data instanceof Blob) {
|
|
58
|
+
event.data.arrayBuffer().then((buffer) => {
|
|
59
|
+
this.handleBinaryMessage(Buffer.from(buffer));
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
else if (event.data instanceof ArrayBuffer) {
|
|
63
|
+
this.handleBinaryMessage(Buffer.from(event.data));
|
|
64
|
+
}
|
|
65
|
+
else if (Buffer.isBuffer(event.data)) {
|
|
66
|
+
this.handleBinaryMessage(event.data);
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
console.log("Received unknown data type", event.data);
|
|
70
|
+
this.emit(AgentEvents_1.AgentEvents.Error, {
|
|
71
|
+
event,
|
|
72
|
+
message: "Received unknown data type.",
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Handles binary messages received from the WebSocket connection.
|
|
78
|
+
* @param data - The binary data.
|
|
79
|
+
*/
|
|
80
|
+
handleBinaryMessage(data) {
|
|
81
|
+
this.emit(AgentEvents_1.AgentEvents.Audio, data);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Handles text messages received from the WebSocket connection.
|
|
85
|
+
* @param data - The parsed JSON data.
|
|
86
|
+
*/
|
|
87
|
+
handleTextMessage(data) {
|
|
88
|
+
if (data.type in AgentEvents_1.AgentEvents) {
|
|
89
|
+
this.emit(data.type, data);
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
this.emit(AgentEvents_1.AgentEvents.Unhandled, data);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* To be called with your model configuration BEFORE sending
|
|
97
|
+
* any audio data.
|
|
98
|
+
* @param options - The SettingsConfiguration object.
|
|
99
|
+
* @param options.audio.input.encoding - The encoding for your inbound (user) audio.
|
|
100
|
+
* @param options.audio.input.sampleRate - The sample rate for your inbound (user) audio.
|
|
101
|
+
* @param options.audio.output.encoding - The encoding for your outbound (agent) audio.
|
|
102
|
+
* @param options.audio.output.sampleRate - The sample rate for your outbound (agent) audio.
|
|
103
|
+
* @param options.audio.output.bitrate - The bitrate for your outbound (agent) audio.
|
|
104
|
+
* @param options.audio.output.container - The container for your outbound (agent) audio.
|
|
105
|
+
* @param options.agent.listen.model - The STT model to use for processing user audio.
|
|
106
|
+
* @param options.agent.speak.model - The TTS model to use for generating agent audio.
|
|
107
|
+
* @param options.agent.think.provider.type - The LLM provider to use.
|
|
108
|
+
* @param options.agent.think.model - The LLM model to use.
|
|
109
|
+
* @param options.agent.think.instructions - The instructions to provide to the LLM.
|
|
110
|
+
* @param options.agent.think.functions - The functions to provide to the LLM.
|
|
111
|
+
* @param options.context.messages - The message history to provide to the LLM (useful if a websocket connection is lost.)
|
|
112
|
+
* @param options.context.replay - Whether to replay the last message if it was an assistant message.
|
|
113
|
+
*/
|
|
114
|
+
configure(options) {
|
|
115
|
+
var _a, _b;
|
|
116
|
+
// Converting the property names...
|
|
117
|
+
const opts = Object.assign({}, options);
|
|
118
|
+
opts.audio.input["sample_rate"] = (_a = options.audio.input) === null || _a === void 0 ? void 0 : _a.sampleRate;
|
|
119
|
+
delete opts.audio.input.sampleRate;
|
|
120
|
+
opts.audio.output["sample_rate"] = (_b = options.audio.output) === null || _b === void 0 ? void 0 : _b.sampleRate;
|
|
121
|
+
delete opts.audio.output.sampleRate;
|
|
122
|
+
this.send(JSON.stringify(Object.assign({ type: "SettingsConfiguration" }, opts)));
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Provide new instructions to the LLM.
|
|
126
|
+
* @param instructions - The instructions to provide.
|
|
127
|
+
*/
|
|
128
|
+
updateInstructions(instructions) {
|
|
129
|
+
this.send(JSON.stringify({ type: "UpdateInstructions", instructions }));
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Change the speak model.
|
|
133
|
+
* @param model - The new model to use.
|
|
134
|
+
*/
|
|
135
|
+
updateSpeak(model) {
|
|
136
|
+
this.send(JSON.stringify({ type: "UpdateSpeak", model }));
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Immediately trigger an agent message. If this message
|
|
140
|
+
* is sent while the user is speaking, or while the server is in the
|
|
141
|
+
* middle of sending audio, then the request will be ignored and an InjectionRefused
|
|
142
|
+
* event will be emitted.
|
|
143
|
+
* @example "Hold on while I look that up for you."
|
|
144
|
+
* @example "Are you still on the line?"
|
|
145
|
+
* @param message - The message to speak.
|
|
146
|
+
*/
|
|
147
|
+
injectAgentMessage(message) {
|
|
148
|
+
this.send(JSON.stringify({ type: "InjectAgentMessage", message }));
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Respond to a function call request.
|
|
152
|
+
* @param response - The response to the function call request.
|
|
153
|
+
* @param response.function_call_id - The ID that was received in the request (these MUST match).
|
|
154
|
+
* @param response.output - The result of the function call.
|
|
155
|
+
*/
|
|
156
|
+
functionCallResponse(response) {
|
|
157
|
+
this.send(JSON.stringify(Object.assign({ type: "FunctionCallResponse" }, response)));
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Send a keepalive to avoid closing the websocket while you
|
|
161
|
+
* are not transmitting audio. This should be sent at least
|
|
162
|
+
* every 8 seconds.
|
|
163
|
+
*/
|
|
164
|
+
keepAlive() {
|
|
165
|
+
this.send(JSON.stringify({ type: "KeepAlive" }));
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
exports.AgentLiveClient = AgentLiveClient;
|
|
169
|
+
//# sourceMappingURL=AgentLiveClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentLiveClient.js","sourceRoot":"","sources":["../../../src/packages/AgentLiveClient.ts"],"names":[],"mappings":";;;AAAA,gDAAqD;AACrD,0DAAuD;AAOvD,6DAA0D;AAE1D,MAAa,eAAgB,SAAQ,uCAAkB;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,6BAAiB,CAAC;QAE3E,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;IAC7B,CAAC;IAED;;;;;;;OAOG;IACI,eAAe;QACpB,IAAI,IAAI,CAAC,IAAI,EAAE;YACb,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,GAAG,EAAE;gBACtB,IAAI,CAAC,IAAI,CAAC,yBAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YACpC,CAAC,CAAC;YAEF,IAAI,CAAC,IAAI,CAAC,OAAO,GAAG,CAAC,KAAU,EAAE,EAAE;gBACjC,IAAI,CAAC,IAAI,CAAC,yBAAW,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YACtC,CAAC,CAAC;YAEF,IAAI,CAAC,IAAI,CAAC,OAAO,GAAG,CAAC,KAAiB,EAAE,EAAE;gBACxC,IAAI,CAAC,IAAI,CAAC,yBAAW,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YACtC,CAAC,CAAC;YAEF,IAAI,CAAC,IAAI,CAAC,SAAS,GAAG,CAA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AAI,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;;OAQG;IACI,kBAAkB,CAAC,OAAe;QACvC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;IACrE,CAAC;IAED;;;;;OAKG;IACI,oBAAoB,CAAC,QAA8B;QACxD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,iBAAG,IAAI,EAAE,sBAAsB,IAAK,QAAQ,EAAG,CAAC,CAAC;IAC3E,CAAC;IAED;;;;OAIG;IACI,SAAS;QACd,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC;IACnD,CAAC;CACF;AAvKD,0CAuKC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC"}
|
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./AbstractClient"), exports);
|
|
18
18
|
__exportStar(require("./AbstractLiveClient"), exports);
|
|
19
19
|
__exportStar(require("./AbstractRestClient"), exports);
|
|
20
|
+
__exportStar(require("./AgentLiveClient"), exports);
|
|
20
21
|
__exportStar(require("./ListenClient"), exports);
|
|
21
22
|
__exportStar(require("./ListenLiveClient"), exports);
|
|
22
23
|
__exportStar(require("./ListenRestClient"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/packages/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,uDAAqC;AACrC,uDAAqC;AACrC,iDAA+B;AAC/B,qDAAmC;AACnC,qDAAmC;AACnC,qDAAmC;AACnC,qDAAmC;AACnC,mDAAiC;AACjC,yDAAuC;AACvC,gDAA8B;AAC9B,oDAAkC;AAClC,oDAAkC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/packages/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,uDAAqC;AACrC,uDAAqC;AACrC,oDAAkC;AAClC,iDAA+B;AAC/B,qDAAmC;AACnC,qDAAmC;AACnC,qDAAmC;AACnC,qDAAmC;AACnC,mDAAiC;AACjC,yDAAuC;AACvC,gDAA8B;AAC9B,oDAAkC;AAClC,oDAAkC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractClient, ListenClient, ManageClient, ReadClient, OnPremClient, SelfHostedRestClient, SpeakClient, ModelsRestClient } from "./packages";
|
|
1
|
+
import { AbstractClient, AgentLiveClient, ListenClient, ManageClient, ReadClient, OnPremClient, SelfHostedRestClient, SpeakClient, ModelsRestClient } from "./packages";
|
|
2
2
|
/**
|
|
3
3
|
* The DeepgramClient class provides access to various Deepgram API clients, including ListenClient, ManageClient, SelfHostedRestClient, ReadClient, and SpeakClient.
|
|
4
4
|
*
|
|
@@ -48,6 +48,13 @@ export default class DeepgramClient extends AbstractClient {
|
|
|
48
48
|
* @returns {SpeakClient} A new instance of the SpeakClient.
|
|
49
49
|
*/
|
|
50
50
|
get speak(): SpeakClient;
|
|
51
|
+
/**
|
|
52
|
+
* Returns a new instance of the AgentLiveClient, which provides access to Deepgram's Voice Agent API.
|
|
53
|
+
*
|
|
54
|
+
* @returns {AgentLiveClient} A new instance of the AgentLiveClient.
|
|
55
|
+
* @beta
|
|
56
|
+
*/
|
|
57
|
+
agent(endpoint?: string): AgentLiveClient;
|
|
51
58
|
/**
|
|
52
59
|
* @deprecated
|
|
53
60
|
* @see https://dpgr.am/js-v3
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeepgramClient.d.ts","sourceRoot":"","sources":["../../src/DeepgramClient.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,oBAAoB,EACpB,WAAW,EACX,gBAAgB,EACjB,MAAM,YAAY,CAAC;AAEpB;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,cAAc;IACxD;;;;OAIG;IACH,IAAI,MAAM,IAAI,YAAY,CAEzB;IAED;;;;OAIG;IACH,IAAI,MAAM,IAAI,YAAY,CAEzB;IAED;;;;OAIG;IACH,IAAI,MAAM,IAAI,gBAAgB,CAE7B;IAED;;;;;OAKG;IACH,IAAI,MAAM,IAAI,YAAY,CAEzB;IAED;;;;OAIG;IACH,IAAI,UAAU,IAAI,oBAAoB,CAErC;IAED;;;;OAIG;IACH,IAAI,IAAI,IAAI,UAAU,CAErB;IAED;;;;OAIG;IACH,IAAI,KAAK,IAAI,WAAW,CAEvB;IAED;;;OAGG;IACH,IAAI,aAAa,IAAI,GAAG,CAEvB;IAED;;;OAGG;IACH,IAAI,QAAQ,IAAI,GAAG,CAElB;IAED;;;OAGG;IACH,IAAI,IAAI,IAAI,GAAG,CAEd;IAED;;;OAGG;IACH,IAAI,OAAO,IAAI,GAAG,CAEjB;IAED;;;OAGG;IACH,IAAI,MAAM,IAAI,GAAG,CAEhB;IAED;;;OAGG;IACH,IAAI,UAAU,IAAI,GAAG,CAEpB;IAED;;;OAGG;IACH,IAAI,KAAK,IAAI,GAAG,CAEf;IAED;;;OAGG;IACH,IAAI,OAAO,IAAI,GAAG,CAEjB;CACF"}
|
|
1
|
+
{"version":3,"file":"DeepgramClient.d.ts","sourceRoot":"","sources":["../../src/DeepgramClient.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,oBAAoB,EACpB,WAAW,EACX,gBAAgB,EACjB,MAAM,YAAY,CAAC;AAEpB;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,cAAc;IACxD;;;;OAIG;IACH,IAAI,MAAM,IAAI,YAAY,CAEzB;IAED;;;;OAIG;IACH,IAAI,MAAM,IAAI,YAAY,CAEzB;IAED;;;;OAIG;IACH,IAAI,MAAM,IAAI,gBAAgB,CAE7B;IAED;;;;;OAKG;IACH,IAAI,MAAM,IAAI,YAAY,CAEzB;IAED;;;;OAIG;IACH,IAAI,UAAU,IAAI,oBAAoB,CAErC;IAED;;;;OAIG;IACH,IAAI,IAAI,IAAI,UAAU,CAErB;IAED;;;;OAIG;IACH,IAAI,KAAK,IAAI,WAAW,CAEvB;IAED;;;;;OAKG;IACI,KAAK,CAAC,QAAQ,GAAE,MAAiB,GAAG,eAAe;IAI1D;;;OAGG;IACH,IAAI,aAAa,IAAI,GAAG,CAEvB;IAED;;;OAGG;IACH,IAAI,QAAQ,IAAI,GAAG,CAElB;IAED;;;OAGG;IACH,IAAI,IAAI,IAAI,GAAG,CAEd;IAED;;;OAGG;IACH,IAAI,OAAO,IAAI,GAAG,CAEjB;IAED;;;OAGG;IACH,IAAI,MAAM,IAAI,GAAG,CAEhB;IAED;;;OAGG;IACH,IAAI,UAAU,IAAI,GAAG,CAEpB;IAED;;;OAGG;IACH,IAAI,KAAK,IAAI,GAAG,CAEf;IAED;;;OAGG;IACH,IAAI,OAAO,IAAI,GAAG,CAEjB;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DeepgramVersionError } from "./lib/errors";
|
|
2
|
-
import { AbstractClient, ListenClient, ManageClient, ReadClient, SelfHostedRestClient, SpeakClient, ModelsRestClient, } from "./packages";
|
|
2
|
+
import { AbstractClient, AgentLiveClient, ListenClient, ManageClient, ReadClient, SelfHostedRestClient, SpeakClient, ModelsRestClient, } from "./packages";
|
|
3
3
|
/**
|
|
4
4
|
* The DeepgramClient class provides access to various Deepgram API clients, including ListenClient, ManageClient, SelfHostedRestClient, ReadClient, and SpeakClient.
|
|
5
5
|
*
|
|
@@ -63,6 +63,15 @@ export default class DeepgramClient extends AbstractClient {
|
|
|
63
63
|
get speak() {
|
|
64
64
|
return new SpeakClient(this.options);
|
|
65
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Returns a new instance of the AgentLiveClient, which provides access to Deepgram's Voice Agent API.
|
|
68
|
+
*
|
|
69
|
+
* @returns {AgentLiveClient} A new instance of the AgentLiveClient.
|
|
70
|
+
* @beta
|
|
71
|
+
*/
|
|
72
|
+
agent(endpoint = "/agent") {
|
|
73
|
+
return new AgentLiveClient(this.options, endpoint);
|
|
74
|
+
}
|
|
66
75
|
/**
|
|
67
76
|
* @deprecated
|
|
68
77
|
* @see https://dpgr.am/js-v3
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeepgramClient.js","sourceRoot":"","sources":["../../src/DeepgramClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EACL,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,UAAU,EAEV,oBAAoB,EACpB,WAAW,EACX,gBAAgB,GACjB,MAAM,YAAY,CAAC;AAEpB;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,cAAc;IACxD;;;;OAIG;IACH,IAAI,MAAM;QACR,OAAO,IAAI,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC;IAED;;;;OAIG;IACH,IAAI,MAAM;QACR,OAAO,IAAI,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC;IAED;;;;OAIG;IACH,IAAI,MAAM;QACR,OAAO,IAAI,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;IAED;;;;;OAKG;IACH,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED;;;;OAIG;IACH,IAAI,UAAU;QACZ,OAAO,IAAI,oBAAoB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChD,CAAC;IAED;;;;OAIG;IACH,IAAI,IAAI;QACN,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC;IAED;;;;OAIG;IACH,IAAI,KAAK;QACP,OAAO,IAAI,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACvC,CAAC;IAED;;;OAGG;IACH,IAAI,aAAa;QACf,MAAM,IAAI,oBAAoB,EAAE,CAAC;IACnC,CAAC;IAED;;;OAGG;IACH,IAAI,QAAQ;QACV,MAAM,IAAI,oBAAoB,EAAE,CAAC;IACnC,CAAC;IAED;;;OAGG;IACH,IAAI,IAAI;QACN,MAAM,IAAI,oBAAoB,EAAE,CAAC;IACnC,CAAC;IAED;;;OAGG;IACH,IAAI,OAAO;QACT,MAAM,IAAI,oBAAoB,EAAE,CAAC;IACnC,CAAC;IAED;;;OAGG;IACH,IAAI,MAAM;QACR,MAAM,IAAI,oBAAoB,EAAE,CAAC;IACnC,CAAC;IAED;;;OAGG;IACH,IAAI,UAAU;QACZ,MAAM,IAAI,oBAAoB,EAAE,CAAC;IACnC,CAAC;IAED;;;OAGG;IACH,IAAI,KAAK;QACP,MAAM,IAAI,oBAAoB,EAAE,CAAC;IACnC,CAAC;IAED;;;OAGG;IACH,IAAI,OAAO;QACT,MAAM,IAAI,oBAAoB,EAAE,CAAC;IACnC,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"DeepgramClient.js","sourceRoot":"","sources":["../../src/DeepgramClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EACL,cAAc,EACd,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,UAAU,EAEV,oBAAoB,EACpB,WAAW,EACX,gBAAgB,GACjB,MAAM,YAAY,CAAC;AAEpB;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,cAAc;IACxD;;;;OAIG;IACH,IAAI,MAAM;QACR,OAAO,IAAI,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC;IAED;;;;OAIG;IACH,IAAI,MAAM;QACR,OAAO,IAAI,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC;IAED;;;;OAIG;IACH,IAAI,MAAM;QACR,OAAO,IAAI,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;IAED;;;;;OAKG;IACH,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED;;;;OAIG;IACH,IAAI,UAAU;QACZ,OAAO,IAAI,oBAAoB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChD,CAAC;IAED;;;;OAIG;IACH,IAAI,IAAI;QACN,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC;IAED;;;;OAIG;IACH,IAAI,KAAK;QACP,OAAO,IAAI,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACvC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,WAAmB,QAAQ;QACtC,OAAO,IAAI,eAAe,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACrD,CAAC;IAED;;;OAGG;IACH,IAAI,aAAa;QACf,MAAM,IAAI,oBAAoB,EAAE,CAAC;IACnC,CAAC;IAED;;;OAGG;IACH,IAAI,QAAQ;QACV,MAAM,IAAI,oBAAoB,EAAE,CAAC;IACnC,CAAC;IAED;;;OAGG;IACH,IAAI,IAAI;QACN,MAAM,IAAI,oBAAoB,EAAE,CAAC;IACnC,CAAC;IAED;;;OAGG;IACH,IAAI,OAAO;QACT,MAAM,IAAI,oBAAoB,EAAE,CAAC;IACnC,CAAC;IAED;;;OAGG;IACH,IAAI,MAAM;QACR,MAAM,IAAI,oBAAoB,EAAE,CAAC;IACnC,CAAC;IAED;;;OAGG;IACH,IAAI,UAAU;QACZ,MAAM,IAAI,oBAAoB,EAAE,CAAC;IACnC,CAAC;IAED;;;OAGG;IACH,IAAI,KAAK;QACP,MAAM,IAAI,oBAAoB,EAAE,CAAC;IACnC,CAAC;IAED;;;OAGG;IACH,IAAI,OAAO;QACT,MAAM,IAAI,oBAAoB,EAAE,CAAC;IACnC,CAAC;CACF"}
|
|
@@ -8,7 +8,9 @@ export declare const DEFAULT_HEADERS: {
|
|
|
8
8
|
"User-Agent": string;
|
|
9
9
|
};
|
|
10
10
|
export declare const DEFAULT_URL = "https://api.deepgram.com";
|
|
11
|
+
export declare const DEFAULT_AGENT_URL = "wss://agent.deepgram.com";
|
|
11
12
|
export declare const DEFAULT_GLOBAL_OPTIONS: Partial<DefaultNamespaceOptions>;
|
|
13
|
+
export declare const DEFAULT_AGENT_OPTIONS: Partial<DefaultNamespaceOptions>;
|
|
12
14
|
export declare const DEFAULT_OPTIONS: DefaultClientOptions;
|
|
13
15
|
export declare enum SOCKET_STATES {
|
|
14
16
|
connecting = 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/lib/constants.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAE7E,eAAO,MAAM,YAAY,QAGV,CAAC;AAEhB,eAAO,MAAM,WAAW,QAGT,CAAC;AAEhB,eAAO,MAAM,aAAa,QAGX,CAAC;AAchB,eAAO,MAAM,eAAe;;;;CAI3B,CAAC;AAEF,eAAO,MAAM,WAAW,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/lib/constants.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAE7E,eAAO,MAAM,YAAY,QAGV,CAAC;AAEhB,eAAO,MAAM,WAAW,QAGT,CAAC;AAEhB,eAAO,MAAM,aAAa,QAGX,CAAC;AAchB,eAAO,MAAM,eAAe;;;;CAI3B,CAAC;AAEF,eAAO,MAAM,WAAW,6BAA6B,CAAC;AACtD,eAAO,MAAM,iBAAiB,6BAA6B,CAAC;AAE5D,eAAO,MAAM,sBAAsB,EAAE,OAAO,CAAC,uBAAuB,CAKnE,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,OAAO,CAAC,uBAAuB,CAKlE,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,oBAG7B,CAAC;AAEF,oBAAY,aAAa;IACvB,UAAU,IAAI;IACd,IAAI,IAAI;IACR,OAAO,IAAI;IACX,MAAM,IAAI;CACX;AAED,oBAAY,gBAAgB;IAC1B,UAAU,eAAe;IACzB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,MAAM,WAAW;CAClB"}
|
|
@@ -29,14 +29,22 @@ export const DEFAULT_HEADERS = {
|
|
|
29
29
|
"User-Agent": `@deepgram/sdk/${version} ${getAgent()}`,
|
|
30
30
|
};
|
|
31
31
|
export const DEFAULT_URL = "https://api.deepgram.com";
|
|
32
|
+
export const DEFAULT_AGENT_URL = "wss://agent.deepgram.com";
|
|
32
33
|
export const DEFAULT_GLOBAL_OPTIONS = {
|
|
33
34
|
fetch: { options: { url: DEFAULT_URL, headers: DEFAULT_HEADERS } },
|
|
34
35
|
websocket: {
|
|
35
36
|
options: { url: convertProtocolToWs(DEFAULT_URL), _nodeOnlyHeaders: DEFAULT_HEADERS },
|
|
36
37
|
},
|
|
37
38
|
};
|
|
39
|
+
export const DEFAULT_AGENT_OPTIONS = {
|
|
40
|
+
fetch: { options: { url: DEFAULT_URL, headers: DEFAULT_HEADERS } },
|
|
41
|
+
websocket: {
|
|
42
|
+
options: { url: DEFAULT_AGENT_URL, _nodeOnlyHeaders: DEFAULT_HEADERS },
|
|
43
|
+
},
|
|
44
|
+
};
|
|
38
45
|
export const DEFAULT_OPTIONS = {
|
|
39
46
|
global: DEFAULT_GLOBAL_OPTIONS,
|
|
47
|
+
agent: DEFAULT_AGENT_OPTIONS,
|
|
40
48
|
};
|
|
41
49
|
export var SOCKET_STATES;
|
|
42
50
|
(function (SOCKET_STATES) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/lib/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,MAAM,CAAC,MAAM,YAAY,GACvB,OAAO,OAAO,KAAK,WA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
|
|
5
|
+
Open = "Open",
|
|
6
|
+
Close = "Close",
|
|
7
|
+
Error = "Error",
|
|
8
|
+
/**
|
|
9
|
+
* Audio event?
|
|
10
|
+
*/
|
|
11
|
+
Audio = "Audio",
|
|
12
|
+
/**
|
|
13
|
+
* Confirms the successful connection to the websocket.
|
|
14
|
+
* { type: "Welcome", session_id: "String"}
|
|
15
|
+
*/
|
|
16
|
+
Welcome = "Welcome",
|
|
17
|
+
/**
|
|
18
|
+
* Confirms that your `configure` request was successful.
|
|
19
|
+
* { type: "SettingsApplied" }
|
|
20
|
+
*/
|
|
21
|
+
SettingsApplied = "SettingsApplied",
|
|
22
|
+
/**
|
|
23
|
+
* Triggered when the agent "hears" the user say something.
|
|
24
|
+
* { type: "ConversationText", role: string, content: string }
|
|
25
|
+
*/
|
|
26
|
+
ConversationText = "ConversationText",
|
|
27
|
+
/**
|
|
28
|
+
* Triggered when the agent begins receiving user audio.
|
|
29
|
+
* { type: "UserStartedSpeaking" }
|
|
30
|
+
*/
|
|
31
|
+
UserStartedSpeaking = "UserStartedSpeaking",
|
|
32
|
+
/**
|
|
33
|
+
* Triggered when the user has stopped speaking and the agent is processing the audio.
|
|
34
|
+
* { type: "AgentThinking", content: string }
|
|
35
|
+
*/
|
|
36
|
+
AgentThinking = "AgentThinking",
|
|
37
|
+
/**
|
|
38
|
+
* A request to call client-side functions.
|
|
39
|
+
* { type: "FunctionCallRequest", function_call_id: string, function_name: string, input: Record<string, any> }
|
|
40
|
+
*/
|
|
41
|
+
FunctionCallRequest = "FunctionCallRequest",
|
|
42
|
+
/**
|
|
43
|
+
* Debug message triggered when the agent is calling a function.
|
|
44
|
+
* { type: "FunctionCalling" }
|
|
45
|
+
*/
|
|
46
|
+
FunctionCalling = "FunctionCalling",
|
|
47
|
+
/**
|
|
48
|
+
* Triggered when the agent begins streaming an audio response.
|
|
49
|
+
* { type: "AgentStartedSpeaking", total_latency: number, tts_latency: number, ttt_latency: number }
|
|
50
|
+
*/
|
|
51
|
+
AgentStartedSpeaking = "AgentStartedSpeaking",
|
|
52
|
+
/**
|
|
53
|
+
* Triggered when the agent has finished streaming an audio response.
|
|
54
|
+
* { type: "AgentAudioDone" }
|
|
55
|
+
*/
|
|
56
|
+
AgentAudioDone = "AgentAudioDone",
|
|
57
|
+
/**
|
|
58
|
+
* This event is only emitted when you send an `InjectAgentMessage` request while
|
|
59
|
+
* the user is currently speaking or the server is processing user audio.
|
|
60
|
+
* { type: "InjectionRefused" }
|
|
61
|
+
*/
|
|
62
|
+
InjectionRefused = "InjectionRefused",
|
|
63
|
+
/**
|
|
64
|
+
* A successful response to the `UpdateInstructions` request.
|
|
65
|
+
* { type: "InstructionsUpdated" }
|
|
66
|
+
*/
|
|
67
|
+
InstructionsUpdated = "InstructionsUpdated",
|
|
68
|
+
/**
|
|
69
|
+
* A successful response to the `UpdateSpeak` request.
|
|
70
|
+
* { type: "SpeakUpdated" }
|
|
71
|
+
*/
|
|
72
|
+
SpeakUpdated = "SpeakUpdated",
|
|
73
|
+
/**
|
|
74
|
+
* Catch all for any other message event
|
|
75
|
+
*/
|
|
76
|
+
Unhandled = "Unhandled"
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=AgentEvents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentEvents.d.ts","sourceRoot":"","sources":["../../../../src/lib/enums/AgentEvents.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB;;OAEG;IACH,IAAI,SAAS;IACb,KAAK,UAAU;IACf,KAAK,UAAU;IACf;;OAEG;IACH,KAAK,UAAU;IACf;;;OAGG;IACH,OAAO,YAAY;IACnB;;;OAGG;IACH,eAAe,oBAAoB;IACnC;;;OAGG;IACH,gBAAgB,qBAAqB;IACrC;;;OAGG;IACH,mBAAmB,wBAAwB;IAC3C;;;OAGG;IACH,aAAa,kBAAkB;IAC/B;;;OAGG;IACH,mBAAmB,wBAAwB;IAC3C;;;OAGG;IACH,eAAe,oBAAoB;IACnC;;;OAGG;IACH,oBAAoB,yBAAyB;IAC7C;;;OAGG;IACH,cAAc,mBAAmB;IACjC;;;;OAIG;IACH,gBAAgB,qBAAqB;IACrC;;;OAGG;IACH,mBAAmB,wBAAwB;IAC3C;;;OAGG;IACH,YAAY,iBAAiB;IAE7B;;OAEG;IACH,SAAS,cAAc;CACxB"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export var AgentEvents;
|
|
2
|
+
(function (AgentEvents) {
|
|
3
|
+
/**
|
|
4
|
+
* Built in socket events.
|
|
5
|
+
*/
|
|
6
|
+
AgentEvents["Open"] = "Open";
|
|
7
|
+
AgentEvents["Close"] = "Close";
|
|
8
|
+
AgentEvents["Error"] = "Error";
|
|
9
|
+
/**
|
|
10
|
+
* Audio event?
|
|
11
|
+
*/
|
|
12
|
+
AgentEvents["Audio"] = "Audio";
|
|
13
|
+
/**
|
|
14
|
+
* Confirms the successful connection to the websocket.
|
|
15
|
+
* { type: "Welcome", session_id: "String"}
|
|
16
|
+
*/
|
|
17
|
+
AgentEvents["Welcome"] = "Welcome";
|
|
18
|
+
/**
|
|
19
|
+
* Confirms that your `configure` request was successful.
|
|
20
|
+
* { type: "SettingsApplied" }
|
|
21
|
+
*/
|
|
22
|
+
AgentEvents["SettingsApplied"] = "SettingsApplied";
|
|
23
|
+
/**
|
|
24
|
+
* Triggered when the agent "hears" the user say something.
|
|
25
|
+
* { type: "ConversationText", role: string, content: string }
|
|
26
|
+
*/
|
|
27
|
+
AgentEvents["ConversationText"] = "ConversationText";
|
|
28
|
+
/**
|
|
29
|
+
* Triggered when the agent begins receiving user audio.
|
|
30
|
+
* { type: "UserStartedSpeaking" }
|
|
31
|
+
*/
|
|
32
|
+
AgentEvents["UserStartedSpeaking"] = "UserStartedSpeaking";
|
|
33
|
+
/**
|
|
34
|
+
* Triggered when the user has stopped speaking and the agent is processing the audio.
|
|
35
|
+
* { type: "AgentThinking", content: string }
|
|
36
|
+
*/
|
|
37
|
+
AgentEvents["AgentThinking"] = "AgentThinking";
|
|
38
|
+
/**
|
|
39
|
+
* A request to call client-side functions.
|
|
40
|
+
* { type: "FunctionCallRequest", function_call_id: string, function_name: string, input: Record<string, any> }
|
|
41
|
+
*/
|
|
42
|
+
AgentEvents["FunctionCallRequest"] = "FunctionCallRequest";
|
|
43
|
+
/**
|
|
44
|
+
* Debug message triggered when the agent is calling a function.
|
|
45
|
+
* { type: "FunctionCalling" }
|
|
46
|
+
*/
|
|
47
|
+
AgentEvents["FunctionCalling"] = "FunctionCalling";
|
|
48
|
+
/**
|
|
49
|
+
* Triggered when the agent begins streaming an audio response.
|
|
50
|
+
* { type: "AgentStartedSpeaking", total_latency: number, tts_latency: number, ttt_latency: number }
|
|
51
|
+
*/
|
|
52
|
+
AgentEvents["AgentStartedSpeaking"] = "AgentStartedSpeaking";
|
|
53
|
+
/**
|
|
54
|
+
* Triggered when the agent has finished streaming an audio response.
|
|
55
|
+
* { type: "AgentAudioDone" }
|
|
56
|
+
*/
|
|
57
|
+
AgentEvents["AgentAudioDone"] = "AgentAudioDone";
|
|
58
|
+
/**
|
|
59
|
+
* This event is only emitted when you send an `InjectAgentMessage` request while
|
|
60
|
+
* the user is currently speaking or the server is processing user audio.
|
|
61
|
+
* { type: "InjectionRefused" }
|
|
62
|
+
*/
|
|
63
|
+
AgentEvents["InjectionRefused"] = "InjectionRefused";
|
|
64
|
+
/**
|
|
65
|
+
* A successful response to the `UpdateInstructions` request.
|
|
66
|
+
* { type: "InstructionsUpdated" }
|
|
67
|
+
*/
|
|
68
|
+
AgentEvents["InstructionsUpdated"] = "InstructionsUpdated";
|
|
69
|
+
/**
|
|
70
|
+
* A successful response to the `UpdateSpeak` request.
|
|
71
|
+
* { type: "SpeakUpdated" }
|
|
72
|
+
*/
|
|
73
|
+
AgentEvents["SpeakUpdated"] = "SpeakUpdated";
|
|
74
|
+
/**
|
|
75
|
+
* Catch all for any other message event
|
|
76
|
+
*/
|
|
77
|
+
AgentEvents["Unhandled"] = "Unhandled";
|
|
78
|
+
})(AgentEvents || (AgentEvents = {}));
|
|
79
|
+
//# sourceMappingURL=AgentEvents.js.map
|
|
@@ -0,0 +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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC"}
|