agora-agents 2.5.0 → 2.6.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.
- package/dist/cjs/AgoraPoolClient.js +39 -1
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/agentkit/Agent.d.ts +6 -6
- package/dist/cjs/agentkit/Agent.js +4 -3
- package/dist/cjs/agentkit/__tests__/area-aware-vendors.test.js +26 -0
- package/dist/cjs/agentkit/index.d.ts +8 -8
- package/dist/cjs/agentkit/index.js +6 -2
- package/dist/cjs/agentkit/region-vendors.d.ts +3 -1
- package/dist/cjs/agentkit/types.d.ts +8 -4
- package/dist/cjs/agentkit/vendors/base.d.ts +11 -1
- package/dist/cjs/agentkit/vendors/base.js +18 -2
- package/dist/cjs/agentkit/vendors/cn.d.ts +8 -0
- package/dist/cjs/agentkit/vendors/cn.js +9 -3
- package/dist/cjs/agentkit/vendors/mllm.d.ts +99 -1
- package/dist/cjs/agentkit/vendors/mllm.js +68 -1
- package/dist/cjs/agentkit/vendors/stt.d.ts +15 -5
- package/dist/cjs/agentkit/vendors/stt.js +14 -7
- package/dist/cjs/agentkit/vendors/tts.d.ts +19 -0
- package/dist/cjs/agentkit/vendors/tts.js +16 -1
- package/dist/cjs/api/resources/agentManagement/client/requests/AgentThinkAgentManagementRequest.d.ts +9 -0
- package/dist/cjs/api/resources/agentManagement/client/requests/AgentThinkAgentManagementRequest.js +6 -0
- package/dist/cjs/api/resources/agents/client/Client.js +17 -1
- package/dist/cjs/api/resources/agents/client/requests/StartAgentsRequest.d.ts +49 -4
- package/dist/cjs/api/resources/agents/client/requests/StartAgentsRequest.js +9 -0
- package/dist/cjs/api/types/AresAsr.d.ts +2 -0
- package/dist/cjs/api/types/AssemblyAiAsrParams.d.ts +1 -1
- package/dist/cjs/api/types/FengmingAsr.d.ts +3 -2
- package/dist/cjs/api/types/FengmingAsrParams.d.ts +4 -0
- package/dist/cjs/api/types/FengmingAsrParams.js +3 -0
- package/dist/cjs/api/types/Llm.d.ts +12 -0
- package/dist/cjs/api/types/LlmTool.d.ts +14 -0
- package/dist/cjs/api/types/LlmTool.js +3 -0
- package/dist/cjs/api/types/LlmToolExecution.d.ts +9 -0
- package/dist/cjs/api/types/LlmToolExecution.js +3 -0
- package/dist/cjs/api/types/LlmToolFunction.d.ts +28 -0
- package/dist/cjs/api/types/LlmToolFunction.js +3 -0
- package/dist/cjs/api/types/LlmToolServer.d.ts +42 -0
- package/dist/cjs/api/types/LlmToolServer.js +12 -0
- package/dist/cjs/api/types/Mllm.d.ts +4 -0
- package/dist/cjs/api/types/Mllm.js +2 -0
- package/dist/cjs/api/types/SpeechmaticsAsrParams.d.ts +12 -3
- package/dist/cjs/api/types/Tts.d.ts +4 -1
- package/dist/cjs/api/types/TypecastTts.d.ts +9 -0
- package/dist/cjs/api/types/TypecastTts.js +3 -0
- package/dist/cjs/api/types/TypecastTtsParams.d.ts +13 -0
- package/dist/cjs/api/types/TypecastTtsParams.js +3 -0
- package/dist/cjs/api/types/index.d.ts +7 -0
- package/dist/cjs/api/types/index.js +7 -0
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js +7 -3
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/AgoraPoolClient.mjs +40 -2
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/agentkit/Agent.d.mts +6 -6
- package/dist/esm/agentkit/Agent.mjs +4 -3
- package/dist/esm/agentkit/__tests__/area-aware-vendors.test.mjs +26 -0
- package/dist/esm/agentkit/index.d.mts +8 -8
- package/dist/esm/agentkit/index.mjs +3 -3
- package/dist/esm/agentkit/region-vendors.d.mts +3 -1
- package/dist/esm/agentkit/types.d.mts +8 -4
- package/dist/esm/agentkit/vendors/base.d.mts +11 -1
- package/dist/esm/agentkit/vendors/base.mjs +16 -1
- package/dist/esm/agentkit/vendors/cn.d.mts +8 -0
- package/dist/esm/agentkit/vendors/cn.mjs +9 -3
- package/dist/esm/agentkit/vendors/mllm.d.mts +99 -1
- package/dist/esm/agentkit/vendors/mllm.mjs +66 -1
- package/dist/esm/agentkit/vendors/stt.d.mts +15 -5
- package/dist/esm/agentkit/vendors/stt.mjs +14 -7
- package/dist/esm/agentkit/vendors/tts.d.mts +19 -0
- package/dist/esm/agentkit/vendors/tts.mjs +14 -0
- package/dist/esm/api/resources/agentManagement/client/requests/AgentThinkAgentManagementRequest.d.mts +9 -0
- package/dist/esm/api/resources/agentManagement/client/requests/AgentThinkAgentManagementRequest.mjs +6 -0
- package/dist/esm/api/resources/agents/client/Client.mjs +17 -1
- package/dist/esm/api/resources/agents/client/requests/StartAgentsRequest.d.mts +49 -4
- package/dist/esm/api/resources/agents/client/requests/StartAgentsRequest.mjs +9 -0
- package/dist/esm/api/types/AresAsr.d.mts +2 -0
- package/dist/esm/api/types/AssemblyAiAsrParams.d.mts +1 -1
- package/dist/esm/api/types/FengmingAsr.d.mts +3 -2
- package/dist/esm/api/types/FengmingAsrParams.d.mts +4 -0
- package/dist/esm/api/types/FengmingAsrParams.mjs +2 -0
- package/dist/esm/api/types/Llm.d.mts +12 -0
- package/dist/esm/api/types/LlmTool.d.mts +14 -0
- package/dist/esm/api/types/LlmTool.mjs +2 -0
- package/dist/esm/api/types/LlmToolExecution.d.mts +9 -0
- package/dist/esm/api/types/LlmToolExecution.mjs +2 -0
- package/dist/esm/api/types/LlmToolFunction.d.mts +28 -0
- package/dist/esm/api/types/LlmToolFunction.mjs +2 -0
- package/dist/esm/api/types/LlmToolServer.d.mts +42 -0
- package/dist/esm/api/types/LlmToolServer.mjs +9 -0
- package/dist/esm/api/types/Mllm.d.mts +4 -0
- package/dist/esm/api/types/Mllm.mjs +2 -0
- package/dist/esm/api/types/SpeechmaticsAsrParams.d.mts +12 -3
- package/dist/esm/api/types/Tts.d.mts +4 -1
- package/dist/esm/api/types/TypecastTts.d.mts +9 -0
- package/dist/esm/api/types/TypecastTts.mjs +2 -0
- package/dist/esm/api/types/TypecastTtsParams.d.mts +13 -0
- package/dist/esm/api/types/TypecastTtsParams.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +7 -0
- package/dist/esm/api/types/index.mjs +7 -0
- package/dist/esm/index.d.mts +2 -2
- package/dist/esm/index.mjs +3 -3
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Actual HTTP request configuration for this REST tool.
|
|
3
|
+
* Does not use top-level `parameters`, `path_params`, standalone `query`,
|
|
4
|
+
* `response`, `json_path`, or `max_chars`.
|
|
5
|
+
*/
|
|
6
|
+
export interface LlmToolServer {
|
|
7
|
+
/** HTTP method. Must be `GET` or `POST`. */
|
|
8
|
+
method: LlmToolServer.Method;
|
|
9
|
+
/**
|
|
10
|
+
* Full request URL. Write path and query templates directly in the URL.
|
|
11
|
+
* Placeholders allowed: `{{args.<name>}}`, `{{template_variables.<name>}}`,
|
|
12
|
+
* and `{{tool_call_id}}`. URL values may be string, number, or boolean.
|
|
13
|
+
*/
|
|
14
|
+
url: string;
|
|
15
|
+
/**
|
|
16
|
+
* Request headers as a string dictionary.
|
|
17
|
+
* Each header value must be a constant or exactly one placeholder.
|
|
18
|
+
* Placeholders allowed: `{{template_variables.<name>}}` and `{{tool_call_id}}`.
|
|
19
|
+
* `{{args.*}}` is not allowed in headers.
|
|
20
|
+
*/
|
|
21
|
+
headers?: Record<string, string>;
|
|
22
|
+
/**
|
|
23
|
+
* POST JSON body template. Must not be configured for `GET` requests.
|
|
24
|
+
* Supports arbitrary nested JSON. Only fields declared in `server.body` are sent.
|
|
25
|
+
* Leaf values may be constants or exactly one of `{{args.<name>}}`,
|
|
26
|
+
* `{{template_variables.<name>}}`, or `{{tool_call_id}}`.
|
|
27
|
+
* JSON body preserves original types after rendering.
|
|
28
|
+
*/
|
|
29
|
+
body?: Record<string, unknown>;
|
|
30
|
+
/** Request timeout in milliseconds. Defaults to `10000`. Valid range is `1000` to `100000`. */
|
|
31
|
+
timeout_ms?: number;
|
|
32
|
+
/** Accepts any additional properties */
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
}
|
|
35
|
+
export declare namespace LlmToolServer {
|
|
36
|
+
/** HTTP method. Must be `GET` or `POST`. */
|
|
37
|
+
const Method: {
|
|
38
|
+
readonly Get: "GET";
|
|
39
|
+
readonly Post: "POST";
|
|
40
|
+
};
|
|
41
|
+
type Method = (typeof Method)[keyof typeof Method];
|
|
42
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.LlmToolServer = void 0;
|
|
5
|
+
var LlmToolServer;
|
|
6
|
+
(function (LlmToolServer) {
|
|
7
|
+
/** HTTP method. Must be `GET` or `POST`. */
|
|
8
|
+
LlmToolServer.Method = {
|
|
9
|
+
Get: "GET",
|
|
10
|
+
Post: "POST",
|
|
11
|
+
};
|
|
12
|
+
})(LlmToolServer || (exports.LlmToolServer = LlmToolServer = {}));
|
|
@@ -18,6 +18,8 @@ export interface Mllm {
|
|
|
18
18
|
/** Array of conversation items used for short-term memory management. */
|
|
19
19
|
messages?: Record<string, unknown>[] | null;
|
|
20
20
|
params?: Agora.MllmParams;
|
|
21
|
+
/** The number of conversation history messages cached in the MLLM. Applicable to Azure OpenAI Realtime API only. */
|
|
22
|
+
max_history?: number;
|
|
21
23
|
/** MLLM input modalities. */
|
|
22
24
|
input_modalities?: string[] | null;
|
|
23
25
|
/** MLLM output modalities. */
|
|
@@ -36,9 +38,11 @@ export declare namespace Mllm {
|
|
|
36
38
|
/** MLLM provider. */
|
|
37
39
|
const Vendor: {
|
|
38
40
|
readonly Openai: "openai";
|
|
41
|
+
readonly Azure: "azure";
|
|
39
42
|
readonly Gemini: "gemini";
|
|
40
43
|
readonly Vertexai: "vertexai";
|
|
41
44
|
readonly Xai: "xai";
|
|
45
|
+
readonly QwenOmni: "qwen_omni";
|
|
42
46
|
};
|
|
43
47
|
type Vendor = (typeof Vendor)[keyof typeof Vendor];
|
|
44
48
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Speechmatics ASR configuration parameters.
|
|
3
3
|
*/
|
|
4
|
-
|
|
5
|
-
/** Speechmatics API key */
|
|
6
|
-
api_key: string;
|
|
4
|
+
interface SpeechmaticsAsrParamsBase {
|
|
7
5
|
/** Language code to use for transcription */
|
|
8
6
|
language: string;
|
|
9
7
|
/** WebSocket URL for the Speechmatics streaming API */
|
|
@@ -11,3 +9,14 @@ export interface SpeechmaticsAsrParams {
|
|
|
11
9
|
/** Accepts any additional properties */
|
|
12
10
|
[key: string]: any;
|
|
13
11
|
}
|
|
12
|
+
export type SpeechmaticsAsrParams = SpeechmaticsAsrParamsBase & ({
|
|
13
|
+
/** Speechmatics API key */
|
|
14
|
+
key: string;
|
|
15
|
+
/** @deprecated Use `key` instead. The client normalizes this alias to `key`. */
|
|
16
|
+
api_key?: string;
|
|
17
|
+
} | {
|
|
18
|
+
key?: undefined;
|
|
19
|
+
/** @deprecated Use `key` instead. The client normalizes this alias to `key`. */
|
|
20
|
+
api_key: string;
|
|
21
|
+
});
|
|
22
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as Agora from "../index.js";
|
|
2
|
-
export type Tts = Agora.Tts.Tencent | Agora.Tts.Bytedance | Agora.Tts.Microsoft | Agora.Tts.Elevenlabs | Agora.Tts.Minimax | Agora.Tts.Murf | Agora.Tts.Cartesia | Agora.Tts.Openai | Agora.Tts.Humeai | Agora.Tts.Rime | Agora.Tts.Fishaudio | Agora.Tts.Google | Agora.Tts.Amazon | Agora.Tts.Sarvam | Agora.Tts.GenericHttp | Agora.Tts.Xai | Agora.Tts.Deepgram | Agora.Tts.Cosyvoice | Agora.Tts.BytedanceDuplex | Agora.Tts.Stepfun | Agora.Tts.Gradium | Agora.Tts.Mistral;
|
|
2
|
+
export type Tts = Agora.Tts.Tencent | Agora.Tts.Bytedance | Agora.Tts.Microsoft | Agora.Tts.Elevenlabs | Agora.Tts.Minimax | Agora.Tts.Murf | Agora.Tts.Cartesia | Agora.Tts.Openai | Agora.Tts.Humeai | Agora.Tts.Rime | Agora.Tts.Fishaudio | Agora.Tts.Google | Agora.Tts.Amazon | Agora.Tts.Sarvam | Agora.Tts.GenericHttp | Agora.Tts.Xai | Agora.Tts.Deepgram | Agora.Tts.Cosyvoice | Agora.Tts.BytedanceDuplex | Agora.Tts.Stepfun | Agora.Tts.Gradium | Agora.Tts.Mistral | Agora.Tts.Typecast;
|
|
3
3
|
export declare namespace Tts {
|
|
4
4
|
interface Tencent extends Agora.TencentTts {
|
|
5
5
|
vendor: "tencent";
|
|
@@ -67,4 +67,7 @@ export declare namespace Tts {
|
|
|
67
67
|
interface Mistral extends Agora.MistralTts {
|
|
68
68
|
vendor: "mistral";
|
|
69
69
|
}
|
|
70
|
+
interface Typecast extends Agora.TypecastTts {
|
|
71
|
+
vendor: "typecast";
|
|
72
|
+
}
|
|
70
73
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Agora from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Typecast Text-to-Speech configuration.
|
|
4
|
+
*/
|
|
5
|
+
export interface TypecastTts {
|
|
6
|
+
params: Agora.TypecastTtsParams;
|
|
7
|
+
/** Controls whether the TTS module skips bracketed content when reading LLM response text. */
|
|
8
|
+
skip_patterns?: number[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typecast TTS configuration parameters.
|
|
3
|
+
*/
|
|
4
|
+
export interface TypecastTtsParams {
|
|
5
|
+
/** Typecast API key. */
|
|
6
|
+
api_key: string;
|
|
7
|
+
/** Typecast voice identifier (for example, "tc_60e5426de8b95f1d3000d7b5"). */
|
|
8
|
+
voice_id: string;
|
|
9
|
+
/** Typecast TTS model name (for example, "ssfm-v30"). */
|
|
10
|
+
model: string;
|
|
11
|
+
/** Accepts any additional properties */
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}
|
|
@@ -26,6 +26,7 @@ export * from "./DeepgramTtsParams.js";
|
|
|
26
26
|
export * from "./ElevenLabsTts.js";
|
|
27
27
|
export * from "./ElevenLabsTtsParams.js";
|
|
28
28
|
export * from "./FengmingAsr.js";
|
|
29
|
+
export * from "./FengmingAsrParams.js";
|
|
29
30
|
export * from "./FishAudioTts.js";
|
|
30
31
|
export * from "./FishAudioTtsParams.js";
|
|
31
32
|
export * from "./GenericHttpTts.js";
|
|
@@ -42,6 +43,10 @@ export * from "./HumeAiTts.js";
|
|
|
42
43
|
export * from "./HumeAiTtsParams.js";
|
|
43
44
|
export * from "./Llm.js";
|
|
44
45
|
export * from "./LlmParams.js";
|
|
46
|
+
export * from "./LlmTool.js";
|
|
47
|
+
export * from "./LlmToolExecution.js";
|
|
48
|
+
export * from "./LlmToolFunction.js";
|
|
49
|
+
export * from "./LlmToolServer.js";
|
|
45
50
|
export * from "./MicrosoftAsr.js";
|
|
46
51
|
export * from "./MicrosoftAsrParams.js";
|
|
47
52
|
export * from "./MicrosoftTts.js";
|
|
@@ -80,6 +85,8 @@ export * from "./TencentAsrParams.js";
|
|
|
80
85
|
export * from "./TencentTts.js";
|
|
81
86
|
export * from "./TencentTtsParams.js";
|
|
82
87
|
export * from "./Tts.js";
|
|
88
|
+
export * from "./TypecastTts.js";
|
|
89
|
+
export * from "./TypecastTtsParams.js";
|
|
83
90
|
export * from "./XAiAsr.js";
|
|
84
91
|
export * from "./XAiAsrParams.js";
|
|
85
92
|
export * from "./XAiTts.js";
|
|
@@ -42,6 +42,7 @@ __exportStar(require("./DeepgramTtsParams.js"), exports);
|
|
|
42
42
|
__exportStar(require("./ElevenLabsTts.js"), exports);
|
|
43
43
|
__exportStar(require("./ElevenLabsTtsParams.js"), exports);
|
|
44
44
|
__exportStar(require("./FengmingAsr.js"), exports);
|
|
45
|
+
__exportStar(require("./FengmingAsrParams.js"), exports);
|
|
45
46
|
__exportStar(require("./FishAudioTts.js"), exports);
|
|
46
47
|
__exportStar(require("./FishAudioTtsParams.js"), exports);
|
|
47
48
|
__exportStar(require("./GenericHttpTts.js"), exports);
|
|
@@ -58,6 +59,10 @@ __exportStar(require("./HumeAiTts.js"), exports);
|
|
|
58
59
|
__exportStar(require("./HumeAiTtsParams.js"), exports);
|
|
59
60
|
__exportStar(require("./Llm.js"), exports);
|
|
60
61
|
__exportStar(require("./LlmParams.js"), exports);
|
|
62
|
+
__exportStar(require("./LlmTool.js"), exports);
|
|
63
|
+
__exportStar(require("./LlmToolExecution.js"), exports);
|
|
64
|
+
__exportStar(require("./LlmToolFunction.js"), exports);
|
|
65
|
+
__exportStar(require("./LlmToolServer.js"), exports);
|
|
61
66
|
__exportStar(require("./MicrosoftAsr.js"), exports);
|
|
62
67
|
__exportStar(require("./MicrosoftAsrParams.js"), exports);
|
|
63
68
|
__exportStar(require("./MicrosoftTts.js"), exports);
|
|
@@ -96,6 +101,8 @@ __exportStar(require("./TencentAsrParams.js"), exports);
|
|
|
96
101
|
__exportStar(require("./TencentTts.js"), exports);
|
|
97
102
|
__exportStar(require("./TencentTtsParams.js"), exports);
|
|
98
103
|
__exportStar(require("./Tts.js"), exports);
|
|
104
|
+
__exportStar(require("./TypecastTts.js"), exports);
|
|
105
|
+
__exportStar(require("./TypecastTtsParams.js"), exports);
|
|
99
106
|
__exportStar(require("./XAiAsr.js"), exports);
|
|
100
107
|
__exportStar(require("./XAiAsrParams.js"), exports);
|
|
101
108
|
__exportStar(require("./XAiTts.js"), exports);
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export type { AgoraAuthMode } from "./AgoraPoolClient.js";
|
|
2
2
|
export { AgoraClient } from "./AgoraPoolClient.js";
|
|
3
3
|
export type { AgoraArea, AreaScope, GlobalArea } from "./agentkit/area.js";
|
|
4
|
-
export type { AdvancedFeatures, AgentConfig, AgentConfigUpdate, AgentOptions, AgentPreset, AgentSessionEvent, AgentSessionEventHandler, AgentSessionOptions, AgentsClient, AkoolAvatarConfig, AkoolAvatarOptions, AkoolSampleRate, AliyunLLMOptions, AmazonBedrockOptions, AmazonSTTOptions, AmazonTTSOptions, AmazonTts, AmazonTtsParams, AnamAvatarConfig, AnamAvatarOptions, AnthropicOptions, AresSTTOptions, AsrConfig, AsrPreset, AsrVendorName, AssemblyAISTTOptions, AvatarConfig, AvatarVendor, AvatarWireVendor, AzureOpenAIOptions, BytedanceDuplexTTSOptions, BytedanceLLMOptions, BytedanceTTSOptions, CartesiaSampleRate, CartesiaTTSOptions, CartesiaTts, CartesiaTtsParams, CNAvatarVendor, CNLlmVendor, CNSttVendor, CNTtsVendor, ConversationHistory, ConversationRole, ConversationSessionTurn, ConversationTurn, ConversationTurns, CustomLLMOptions, DeepgramSTTOptions, DeepgramTTSOptions, DeepSeekLLMOptions, DifyOptions, Eagerness, ElevenLabsSampleRate, ElevenLabsTTSOptions, ElevenLabsTts, ElevenLabsTtsParams, EndOfSpeechConfig, EndOfSpeechMode, EndOfSpeechSemanticConfig, EndOfSpeechVadConfig, FarewellConfig, FillerWordsConfig, FillerWordsContent, FillerWordsContentSelectionRule, FillerWordsContentStaticConfig, FillerWordsTrigger, FillerWordsTriggerFixedTimeConfig, FishAudioTTSOptions, FishAudioTts, FishAudioTtsParams, GeminiLiveOptions, GeminiOptions, GenerateConvoAITokenOptions, GenerateTokenOptions, GenericAvatarConfig, GenericAvatarOptions, GenericTTSOptions, GenericTts, GenericTtsParams, GeofenceArea, GeofenceConfig, GeofenceExcludeArea, GetTurnsOptions, GlobalAvatarVendor, GlobalLlmVendor, GlobalSttVendor, GlobalTtsVendor, GoogleSTTOptions, GoogleTTSOptions, GoogleTts, GoogleTtsParams, GradiumTTSOptions, GradiumTts, GradiumTtsParams, GroqOptions, HeyGenAvatarConfig, HeyGenAvatarOptions, HeyGenSampleRate, HumeAITTSOptions, HumeAiTts, HumeAiTtsParams, InterruptionConfig, InterruptionMode, InterruptMode, Labels, LiveAvatarAvatarConfig, LiveAvatarAvatarOptions, LiveAvatarSampleRate, LlmConfig, LlmGreetingConfigs, LlmGreetingConfigsMode, LlmPreset, LlmStyle, LlmVendor, McpServersItem, MicrosoftCNSampleRate, MicrosoftCNSTTOptions, MicrosoftCNTTSOptions, MicrosoftSampleRate, MicrosoftSTTOptions, MicrosoftTTSOptions, MicrosoftTts, MicrosoftTtsParams, MiniMaxCNTTSOptions, MiniMaxTTSOptions, MinimaxTts, MinimaxTtsParams, MistralTTSOptions, MistralTts, MistralTtsParams, MllmConfig, MllmTurnDetectionConfig, MllmTurnDetectionMode, MllmVendor, MurfTTSOptions, MurfTts, MurfTtsParams, OpenAIOptions, OpenAIRealtimeOptions, OpenAISTTOptions, OpenAITTSOptions, OpenAiTts, OpenAiTtsParams, ParametersAudioScenario, ParametersDataChannel, PresetCategory, PresetInput, RimeTTSOptions, RimeTts, RimeTtsParams, RtcConfig, SalConfig, SalMode, SampleRate, SarvamSTTOptions, SarvamTTSOptions, SarvamTts, SarvamTtsParams, SayOptions, SensetimeAvatarConfig, SensetimeAvatarOptions, SessionInfo, SessionListResponse, SessionOptions, SessionParams, SessionParamsInput, SessionStatus, SessionSummary, SilenceAction, SilenceConfig, SpatiusAvatarConfig, SpatiusAvatarOptions, SpatiusAvatarParams, SpeakPriority, SpeechmaticsSTTOptions, StartOfSpeechConfig, StartOfSpeechDisabledConfig, StartOfSpeechDisabledConfigStrategy, StartOfSpeechKeywordsConfig, StartOfSpeechMode, StartOfSpeechVadConfig, StepFunTTSOptions, StrictAvatarConfig, SttConfig, SttVendor, TencentLLMOptions, TencentSTTOptions, TencentTTSOptions, ThinkOnListeningAction, ThinkOnSpeakingAction, ThinkOnThinkingAction, ThinkOptions, ThinkResponse, TtsConfig, TtsPreset, TtsVendor, TurnDetectionConfig, TurnDetectionLanguage, TurnDetectionNestedConfig, TurnDetectionType, VertexAILLMOptions, VertexAIOptions, XAiAsr, XAiAsrParams, XAiSTTOptions, XAiTTSOptions, XAiTts, XAiTtsParams, XaiGrokOptions, XfyunBigModelSTTOptions, XfyunDialectSTTOptions, XfyunSTTOptions, } from "./agentkit/index.js";
|
|
5
|
-
export { Agent, AgentPresets, AgentSession, AkoolAvatar, AliyunLLM, AmazonBedrock, AmazonSTT, AmazonTTS, AnamAvatar, Anthropic, AresSTT, AssemblyAISTT, AudioScenario, AzureOpenAI, BaseAvatar, BaseCNAvatar, BaseCNLLM, BaseCNSTT, BaseCNTTS, BaseLLM, BaseMLLM, BaseSTT, BaseTTS, BytedanceDuplexTTS, BytedanceLLM, BytedanceTTS, CartesiaTTS, CosyVoiceTTS, CredentialMode, CustomLLM, DataChannel, DeepgramSTT, DeepgramTTS, DeepSeekLLM, Dify, ElevenLabsTTS, ExpiresIn, FengmingSTT, FillerWordsSelectionRule, FishAudioTTS, Gemini, GeminiLive, GenericAvatar, GenericTTS, Geofence, GoogleSTT, GoogleTTS, GradiumTTS, Groq, generateConvoAIToken, generateRtcToken, HeyGenAvatar, HumeAITTS, InterruptionDisabledStrategy, InterruptionDisabledStrategyAppend, InterruptionDisabledStrategyIgnore, InterruptionModeKeywords, InterruptionModeStartOfSpeech, InterruptionModeValues, isAkoolAvatar, isAnamAvatar, isAvatarTokenManaged, isGenericAvatar, isHeyGenAvatar, isLiveAvatarAvatar, isSensetimeAvatar, isSpatiusAvatar, LiveAvatarAvatar, MAX_EXPIRY_SECONDS, MicrosoftCNSTT, MicrosoftCNTTS, MicrosoftSTT, MicrosoftTTS, MiniMaxCNTTS, MiniMaxTTS, MistralTTS, MllmTurnDetectionModeAgoraVad, MllmTurnDetectionModeSemanticVad, MllmTurnDetectionModeServerVad, MllmTurnDetectionModeValues, MurfTTS, normalizePresetInput, OpenAI, OpenAIRealtime, OpenAISTT, OpenAITTS, RimeTTS, SalModeValues, SarvamSTT, SarvamTTS, SensetimeAvatar, SilenceActionValues, SpatiusAvatar, SpeakPriorityAppend, SpeakPriorityIgnore, SpeakPriorityInterrupt, SpeakPriorityValues, SpeechmaticsSTT, StepFunTTS, TencentLLM, TencentSTT, TencentTTS, ThinkOnListeningActionIgnore, ThinkOnListeningActionInject, ThinkOnListeningActionInterrupt, ThinkOnSpeakingActionIgnore, ThinkOnSpeakingActionInterrupt, ThinkOnThinkingActionIgnore, ThinkOnThinkingActionInterrupt, TurnDetectionTypeValues, toBaseAvatarConfig, VertexAI, VertexAILLM, validateAvatarConfig, validateTtsSampleRate, XAiSTT, XAiTTS, XaiGrok, XfyunBigModelSTT, XfyunDialectSTT, XfyunSTT, } from "./agentkit/index.js";
|
|
4
|
+
export type { AdvancedFeatures, AgentConfig, AgentConfigUpdate, AgentOptions, AgentPreset, AgentSessionEvent, AgentSessionEventHandler, AgentSessionOptions, AgentsClient, AkoolAvatarConfig, AkoolAvatarOptions, AkoolSampleRate, AliyunLLMOptions, AmazonBedrockOptions, AmazonSTTOptions, AmazonTTSOptions, AmazonTts, AmazonTtsParams, AnamAvatarConfig, AnamAvatarOptions, AnthropicOptions, AresSTTOptions, AsrConfig, AsrPreset, AsrVendorName, AssemblyAISTTOptions, AvatarConfig, AvatarVendor, AvatarWireVendor, AzureOpenAIOptions, AzureOpenAIRealtimeOptions, AzureOpenAIRealtimeParams, BytedanceDuplexTTSOptions, BytedanceLLMOptions, BytedanceTTSOptions, CartesiaSampleRate, CartesiaTTSOptions, CartesiaTts, CartesiaTtsParams, CNAvatarVendor, CNLlmVendor, CNMllmVendor, CNSttVendor, CNTtsVendor, ConversationHistory, ConversationRole, ConversationSessionTurn, ConversationTurn, ConversationTurns, CustomLLMOptions, DeepgramSTTOptions, DeepgramTTSOptions, DeepSeekLLMOptions, DifyOptions, Eagerness, ElevenLabsSampleRate, ElevenLabsTTSOptions, ElevenLabsTts, ElevenLabsTtsParams, EndOfSpeechConfig, EndOfSpeechMode, EndOfSpeechSemanticConfig, EndOfSpeechVadConfig, FarewellConfig, FengmingSTTOptions, FillerWordsConfig, FillerWordsContent, FillerWordsContentSelectionRule, FillerWordsContentStaticConfig, FillerWordsTrigger, FillerWordsTriggerFixedTimeConfig, FishAudioTTSOptions, FishAudioTts, FishAudioTtsParams, GeminiLiveOptions, GeminiOptions, GenerateConvoAITokenOptions, GenerateTokenOptions, GenericAvatarConfig, GenericAvatarOptions, GenericTTSOptions, GenericTts, GenericTtsParams, GeofenceArea, GeofenceConfig, GeofenceExcludeArea, GetTurnsOptions, GlobalAvatarVendor, GlobalLlmVendor, GlobalMllmVendor, GlobalSttVendor, GlobalTtsVendor, GoogleSTTOptions, GoogleTTSOptions, GoogleTts, GoogleTtsParams, GradiumTTSOptions, GradiumTts, GradiumTtsParams, GroqOptions, HeyGenAvatarConfig, HeyGenAvatarOptions, HeyGenSampleRate, HumeAITTSOptions, HumeAiTts, HumeAiTtsParams, InterruptionConfig, InterruptionMode, InterruptMode, Labels, LiveAvatarAvatarConfig, LiveAvatarAvatarOptions, LiveAvatarSampleRate, LlmConfig, LlmGreetingConfigs, LlmGreetingConfigsMode, LlmPreset, LlmStyle, LlmVendor, McpServersItem, MicrosoftCNSampleRate, MicrosoftCNSTTOptions, MicrosoftCNTTSOptions, MicrosoftSampleRate, MicrosoftSTTOptions, MicrosoftTTSOptions, MicrosoftTts, MicrosoftTtsParams, MiniMaxCNTTSOptions, MiniMaxTTSOptions, MinimaxTts, MinimaxTtsParams, MistralTTSOptions, MistralTts, MistralTtsParams, MllmConfig, MllmTurnDetectionConfig, MllmTurnDetectionMode, MllmVendor, MurfTTSOptions, MurfTts, MurfTtsParams, OpenAIOptions, OpenAIRealtimeOptions, OpenAISTTOptions, OpenAITTSOptions, OpenAiTts, OpenAiTtsParams, ParametersAudioScenario, ParametersDataChannel, PresetCategory, PresetInput, QwenOmniOptions, RimeTTSOptions, RimeTts, RimeTtsParams, RtcConfig, SalConfig, SalMode, SampleRate, SarvamSTTOptions, SarvamTTSOptions, SarvamTts, SarvamTtsParams, SayOptions, SensetimeAvatarConfig, SensetimeAvatarOptions, SessionInfo, SessionListResponse, SessionOptions, SessionParams, SessionParamsInput, SessionStatus, SessionSummary, SilenceAction, SilenceConfig, SpatiusAvatarConfig, SpatiusAvatarOptions, SpatiusAvatarParams, SpeakPriority, SpeechmaticsSTTOptions, StartOfSpeechConfig, StartOfSpeechDisabledConfig, StartOfSpeechDisabledConfigStrategy, StartOfSpeechKeywordsConfig, StartOfSpeechMode, StartOfSpeechVadConfig, StepFunTTSOptions, StrictAvatarConfig, SttConfig, SttVendor, TencentLLMOptions, TencentSTTOptions, TencentTTSOptions, ThinkOnListeningAction, ThinkOnSpeakingAction, ThinkOnThinkingAction, ThinkOptions, ThinkResponse, TtsConfig, TtsPreset, TtsVendor, TurnDetectionConfig, TurnDetectionLanguage, TurnDetectionNestedConfig, TurnDetectionType, TypecastTTSOptions, TypecastTts, TypecastTtsParams, VertexAILLMOptions, VertexAIOptions, XAiAsr, XAiAsrParams, XAiSTTOptions, XAiTTSOptions, XAiTts, XAiTtsParams, XaiGrokOptions, XfyunBigModelSTTOptions, XfyunDialectSTTOptions, XfyunSTTOptions, } from "./agentkit/index.js";
|
|
5
|
+
export { Agent, AgentPresets, AgentSession, AkoolAvatar, AliyunLLM, AmazonBedrock, AmazonSTT, AmazonTTS, AnamAvatar, Anthropic, AresSTT, AssemblyAISTT, AudioScenario, AzureOpenAI, AzureOpenAIRealtime, BaseAvatar, BaseCNAvatar, BaseCNLLM, BaseCNMLLM, BaseCNSTT, BaseCNTTS, BaseLLM, BaseMLLM, BaseSTT, BaseTTS, BytedanceDuplexTTS, BytedanceLLM, BytedanceTTS, CartesiaTTS, CosyVoiceTTS, CredentialMode, CustomLLM, DataChannel, DeepgramSTT, DeepgramTTS, DeepSeekLLM, Dify, ElevenLabsTTS, ExpiresIn, FengmingSTT, FillerWordsSelectionRule, FishAudioTTS, Gemini, GeminiLive, GenericAvatar, GenericTTS, Geofence, GoogleSTT, GoogleTTS, GradiumTTS, Groq, generateConvoAIToken, generateRtcToken, HeyGenAvatar, HumeAITTS, InterruptionDisabledStrategy, InterruptionDisabledStrategyAppend, InterruptionDisabledStrategyIgnore, InterruptionModeKeywords, InterruptionModeStartOfSpeech, InterruptionModeValues, isAkoolAvatar, isAnamAvatar, isAvatarTokenManaged, isGenericAvatar, isHeyGenAvatar, isLiveAvatarAvatar, isSensetimeAvatar, isSpatiusAvatar, LiveAvatarAvatar, MAX_EXPIRY_SECONDS, MicrosoftCNSTT, MicrosoftCNTTS, MicrosoftSTT, MicrosoftTTS, MiniMaxCNTTS, MiniMaxTTS, MistralTTS, MllmTurnDetectionModeAgoraVad, MllmTurnDetectionModeSemanticVad, MllmTurnDetectionModeServerVad, MllmTurnDetectionModeValues, MurfTTS, normalizePresetInput, OpenAI, OpenAIRealtime, OpenAISTT, OpenAITTS, QwenOmni, RimeTTS, SalModeValues, SarvamSTT, SarvamTTS, SensetimeAvatar, SilenceActionValues, SpatiusAvatar, SpeakPriorityAppend, SpeakPriorityIgnore, SpeakPriorityInterrupt, SpeakPriorityValues, SpeechmaticsSTT, StepFunTTS, TencentLLM, TencentSTT, TencentTTS, ThinkOnListeningActionIgnore, ThinkOnListeningActionInject, ThinkOnListeningActionInterrupt, ThinkOnSpeakingActionIgnore, ThinkOnSpeakingActionInterrupt, ThinkOnThinkingActionIgnore, ThinkOnThinkingActionInterrupt, TurnDetectionTypeValues, TypecastTTS, toBaseAvatarConfig, VertexAI, VertexAILLM, validateAvatarConfig, validateTtsSampleRate, XAiSTT, XAiTTS, XaiGrok, XfyunBigModelSTT, XfyunDialectSTT, XfyunSTT, } from "./agentkit/index.js";
|
|
6
6
|
export * as Agora from "./api/index.js";
|
|
7
7
|
export type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
|
|
8
8
|
export { Area } from "./core/domain/index.js";
|
package/dist/cjs/index.js
CHANGED
|
@@ -36,9 +36,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.AgoraTimeoutError = exports.AgoraError = exports.AgoraEnvironment = exports.Area = exports.Agora = exports.XfyunSTT = exports.XfyunDialectSTT = exports.XfyunBigModelSTT = exports.XaiGrok = exports.XAiTTS = exports.XAiSTT = exports.validateTtsSampleRate = exports.validateAvatarConfig = exports.VertexAILLM = exports.VertexAI = exports.toBaseAvatarConfig = exports.TurnDetectionTypeValues = exports.ThinkOnThinkingActionInterrupt = exports.ThinkOnThinkingActionIgnore = exports.ThinkOnSpeakingActionInterrupt = exports.ThinkOnSpeakingActionIgnore = exports.ThinkOnListeningActionInterrupt = exports.ThinkOnListeningActionInject = exports.ThinkOnListeningActionIgnore = exports.TencentTTS = exports.TencentSTT = exports.TencentLLM = void 0;
|
|
39
|
+
exports.GoogleTTS = exports.GoogleSTT = exports.Geofence = exports.GenericTTS = exports.GenericAvatar = exports.GeminiLive = exports.Gemini = exports.FishAudioTTS = exports.FillerWordsSelectionRule = exports.FengmingSTT = exports.ExpiresIn = exports.ElevenLabsTTS = exports.Dify = exports.DeepSeekLLM = exports.DeepgramTTS = exports.DeepgramSTT = exports.DataChannel = exports.CustomLLM = exports.CredentialMode = exports.CosyVoiceTTS = exports.CartesiaTTS = exports.BytedanceTTS = exports.BytedanceLLM = exports.BytedanceDuplexTTS = exports.BaseTTS = exports.BaseSTT = exports.BaseMLLM = exports.BaseLLM = exports.BaseCNTTS = exports.BaseCNSTT = exports.BaseCNMLLM = exports.BaseCNLLM = exports.BaseCNAvatar = exports.BaseAvatar = exports.AzureOpenAIRealtime = exports.AzureOpenAI = exports.AudioScenario = exports.AssemblyAISTT = exports.AresSTT = exports.Anthropic = exports.AnamAvatar = exports.AmazonTTS = exports.AmazonSTT = exports.AmazonBedrock = exports.AliyunLLM = exports.AkoolAvatar = exports.AgentSession = exports.AgentPresets = exports.Agent = exports.AgoraClient = void 0;
|
|
40
|
+
exports.SpeakPriorityInterrupt = exports.SpeakPriorityIgnore = exports.SpeakPriorityAppend = exports.SpatiusAvatar = exports.SilenceActionValues = exports.SensetimeAvatar = exports.SarvamTTS = exports.SarvamSTT = exports.SalModeValues = exports.RimeTTS = exports.QwenOmni = exports.OpenAITTS = exports.OpenAISTT = exports.OpenAIRealtime = exports.OpenAI = exports.normalizePresetInput = exports.MurfTTS = exports.MllmTurnDetectionModeValues = exports.MllmTurnDetectionModeServerVad = exports.MllmTurnDetectionModeSemanticVad = exports.MllmTurnDetectionModeAgoraVad = exports.MistralTTS = exports.MiniMaxTTS = exports.MiniMaxCNTTS = exports.MicrosoftTTS = exports.MicrosoftSTT = exports.MicrosoftCNTTS = exports.MicrosoftCNSTT = exports.MAX_EXPIRY_SECONDS = exports.LiveAvatarAvatar = exports.isSpatiusAvatar = exports.isSensetimeAvatar = exports.isLiveAvatarAvatar = exports.isHeyGenAvatar = exports.isGenericAvatar = exports.isAvatarTokenManaged = exports.isAnamAvatar = exports.isAkoolAvatar = exports.InterruptionModeValues = exports.InterruptionModeStartOfSpeech = exports.InterruptionModeKeywords = exports.InterruptionDisabledStrategyIgnore = exports.InterruptionDisabledStrategyAppend = exports.InterruptionDisabledStrategy = exports.HumeAITTS = exports.HeyGenAvatar = exports.generateRtcToken = exports.generateConvoAIToken = exports.Groq = exports.GradiumTTS = void 0;
|
|
41
|
+
exports.AgoraTimeoutError = exports.AgoraError = exports.AgoraEnvironment = exports.Area = exports.Agora = exports.XfyunSTT = exports.XfyunDialectSTT = exports.XfyunBigModelSTT = exports.XaiGrok = exports.XAiTTS = exports.XAiSTT = exports.validateTtsSampleRate = exports.validateAvatarConfig = exports.VertexAILLM = exports.VertexAI = exports.toBaseAvatarConfig = exports.TypecastTTS = exports.TurnDetectionTypeValues = exports.ThinkOnThinkingActionInterrupt = exports.ThinkOnThinkingActionIgnore = exports.ThinkOnSpeakingActionInterrupt = exports.ThinkOnSpeakingActionIgnore = exports.ThinkOnListeningActionInterrupt = exports.ThinkOnListeningActionInject = exports.ThinkOnListeningActionIgnore = exports.TencentTTS = exports.TencentSTT = exports.TencentLLM = exports.StepFunTTS = exports.SpeechmaticsSTT = exports.SpeakPriorityValues = void 0;
|
|
42
42
|
var AgoraPoolClient_js_1 = require("./AgoraPoolClient.js");
|
|
43
43
|
Object.defineProperty(exports, "AgoraClient", { enumerable: true, get: function () { return AgoraPoolClient_js_1.AgoraClient; } });
|
|
44
44
|
// Agentkit layer exports - clean, ergonomic API
|
|
@@ -57,9 +57,11 @@ Object.defineProperty(exports, "AresSTT", { enumerable: true, get: function () {
|
|
|
57
57
|
Object.defineProperty(exports, "AssemblyAISTT", { enumerable: true, get: function () { return index_js_1.AssemblyAISTT; } });
|
|
58
58
|
Object.defineProperty(exports, "AudioScenario", { enumerable: true, get: function () { return index_js_1.AudioScenario; } });
|
|
59
59
|
Object.defineProperty(exports, "AzureOpenAI", { enumerable: true, get: function () { return index_js_1.AzureOpenAI; } });
|
|
60
|
+
Object.defineProperty(exports, "AzureOpenAIRealtime", { enumerable: true, get: function () { return index_js_1.AzureOpenAIRealtime; } });
|
|
60
61
|
Object.defineProperty(exports, "BaseAvatar", { enumerable: true, get: function () { return index_js_1.BaseAvatar; } });
|
|
61
62
|
Object.defineProperty(exports, "BaseCNAvatar", { enumerable: true, get: function () { return index_js_1.BaseCNAvatar; } });
|
|
62
63
|
Object.defineProperty(exports, "BaseCNLLM", { enumerable: true, get: function () { return index_js_1.BaseCNLLM; } });
|
|
64
|
+
Object.defineProperty(exports, "BaseCNMLLM", { enumerable: true, get: function () { return index_js_1.BaseCNMLLM; } });
|
|
63
65
|
Object.defineProperty(exports, "BaseCNSTT", { enumerable: true, get: function () { return index_js_1.BaseCNSTT; } });
|
|
64
66
|
Object.defineProperty(exports, "BaseCNTTS", { enumerable: true, get: function () { return index_js_1.BaseCNTTS; } });
|
|
65
67
|
// Base vendor classes
|
|
@@ -134,6 +136,7 @@ Object.defineProperty(exports, "OpenAI", { enumerable: true, get: function () {
|
|
|
134
136
|
Object.defineProperty(exports, "OpenAIRealtime", { enumerable: true, get: function () { return index_js_1.OpenAIRealtime; } });
|
|
135
137
|
Object.defineProperty(exports, "OpenAISTT", { enumerable: true, get: function () { return index_js_1.OpenAISTT; } });
|
|
136
138
|
Object.defineProperty(exports, "OpenAITTS", { enumerable: true, get: function () { return index_js_1.OpenAITTS; } });
|
|
139
|
+
Object.defineProperty(exports, "QwenOmni", { enumerable: true, get: function () { return index_js_1.QwenOmni; } });
|
|
137
140
|
Object.defineProperty(exports, "RimeTTS", { enumerable: true, get: function () { return index_js_1.RimeTTS; } });
|
|
138
141
|
Object.defineProperty(exports, "SalModeValues", { enumerable: true, get: function () { return index_js_1.SalModeValues; } });
|
|
139
142
|
Object.defineProperty(exports, "SarvamSTT", { enumerable: true, get: function () { return index_js_1.SarvamSTT; } });
|
|
@@ -159,6 +162,7 @@ Object.defineProperty(exports, "ThinkOnSpeakingActionInterrupt", { enumerable: t
|
|
|
159
162
|
Object.defineProperty(exports, "ThinkOnThinkingActionIgnore", { enumerable: true, get: function () { return index_js_1.ThinkOnThinkingActionIgnore; } });
|
|
160
163
|
Object.defineProperty(exports, "ThinkOnThinkingActionInterrupt", { enumerable: true, get: function () { return index_js_1.ThinkOnThinkingActionInterrupt; } });
|
|
161
164
|
Object.defineProperty(exports, "TurnDetectionTypeValues", { enumerable: true, get: function () { return index_js_1.TurnDetectionTypeValues; } });
|
|
165
|
+
Object.defineProperty(exports, "TypecastTTS", { enumerable: true, get: function () { return index_js_1.TypecastTTS; } });
|
|
162
166
|
Object.defineProperty(exports, "toBaseAvatarConfig", { enumerable: true, get: function () { return index_js_1.toBaseAvatarConfig; } });
|
|
163
167
|
Object.defineProperty(exports, "VertexAI", { enumerable: true, get: function () { return index_js_1.VertexAI; } });
|
|
164
168
|
Object.defineProperty(exports, "VertexAILLM", { enumerable: true, get: function () { return index_js_1.VertexAILLM; } });
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v2.
|
|
1
|
+
export declare const SDK_VERSION = "v2.7.0";
|
package/dist/cjs/version.js
CHANGED
|
@@ -21,8 +21,46 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
};
|
|
22
22
|
import { generateConvoAIToken } from "./agentkit/token.mjs";
|
|
23
23
|
import { AgoraClient as BaseAgoraClient } from "./Client.mjs";
|
|
24
|
-
import { Pool } from "./core/domain/index.mjs";
|
|
24
|
+
import { Area, CNAPIPath, GlobalAPIPath, Pool } from "./core/domain/index.mjs";
|
|
25
25
|
import { AgoraError } from "./errors/index.mjs";
|
|
26
|
+
const API_BASE_URL_ENV = "AGORA_AGENTS_API_BASE_URL";
|
|
27
|
+
function getConfiguredApiBaseUrl() {
|
|
28
|
+
var _a;
|
|
29
|
+
const baseUrl = (_a = process.env[API_BASE_URL_ENV]) === null || _a === void 0 ? void 0 : _a.trim();
|
|
30
|
+
return baseUrl || undefined;
|
|
31
|
+
}
|
|
32
|
+
function buildApiUrl(baseUrl, area) {
|
|
33
|
+
let parsedUrl;
|
|
34
|
+
try {
|
|
35
|
+
parsedUrl = new URL(baseUrl);
|
|
36
|
+
}
|
|
37
|
+
catch (error) {
|
|
38
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
39
|
+
throw new Error(`invalid ${API_BASE_URL_ENV}: ${message}`);
|
|
40
|
+
}
|
|
41
|
+
const apiPath = area === Area.CN ? CNAPIPath : GlobalAPIPath;
|
|
42
|
+
parsedUrl.pathname = `${parsedUrl.pathname.replace(/\/+$/, "")}${apiPath}`;
|
|
43
|
+
return parsedUrl.toString();
|
|
44
|
+
}
|
|
45
|
+
class ConfiguredBaseUrlPool extends Pool {
|
|
46
|
+
constructor(area, configuredBaseUrl) {
|
|
47
|
+
super(area);
|
|
48
|
+
this.configuredBaseUrl = configuredBaseUrl;
|
|
49
|
+
}
|
|
50
|
+
selectBestDomain(_signal) {
|
|
51
|
+
return Promise.resolve();
|
|
52
|
+
}
|
|
53
|
+
nextRegion() {
|
|
54
|
+
// Configured endpoints intentionally do not participate in regional failover.
|
|
55
|
+
}
|
|
56
|
+
getCurrentURL() {
|
|
57
|
+
return this.configuredBaseUrl;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
function createClientPool(area) {
|
|
61
|
+
const configuredBaseUrl = getConfiguredApiBaseUrl();
|
|
62
|
+
return configuredBaseUrl ? new ConfiguredBaseUrlPool(area, buildApiUrl(configuredBaseUrl, area)) : new Pool(area);
|
|
63
|
+
}
|
|
26
64
|
/**
|
|
27
65
|
* AgoraClient extends the base client with domain pool support for
|
|
28
66
|
* regional URL cycling and automatic domain selection.
|
|
@@ -62,7 +100,7 @@ import { AgoraError } from "./errors/index.mjs";
|
|
|
62
100
|
*/
|
|
63
101
|
export class AgoraClient extends BaseAgoraClient {
|
|
64
102
|
constructor(options) {
|
|
65
|
-
const pool =
|
|
103
|
+
const pool = createClientPool(options.area);
|
|
66
104
|
let authMode;
|
|
67
105
|
let username;
|
|
68
106
|
let password;
|
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -5,8 +5,8 @@ export function normalizeClientOptions(options) {
|
|
|
5
5
|
const headers = mergeHeaders({
|
|
6
6
|
"X-Fern-Language": "JavaScript",
|
|
7
7
|
"X-Fern-SDK-Name": "agora-agents",
|
|
8
|
-
"X-Fern-SDK-Version": "v2.
|
|
9
|
-
"User-Agent": "agora-agents/v2.
|
|
8
|
+
"X-Fern-SDK-Version": "v2.7.0",
|
|
9
|
+
"User-Agent": "agora-agents/v2.7.0",
|
|
10
10
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
11
11
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
12
12
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -9,9 +9,8 @@ import type { AgoraClient } from "../AgoraPoolClient.mjs";
|
|
|
9
9
|
import type * as Agora from "../api/index.mjs";
|
|
10
10
|
import { AgentSession } from "./AgentSession.mjs";
|
|
11
11
|
import type { AgoraArea } from "./area.mjs";
|
|
12
|
-
import type { AvatarVendor, LlmVendor, SttVendor, TtsVendor } from "./region-vendors.mjs";
|
|
12
|
+
import type { AvatarVendor, CNMllmVendor, GlobalMllmVendor, LlmVendor, SttVendor, TtsVendor } from "./region-vendors.mjs";
|
|
13
13
|
import type { AdvancedFeatures, AvatarConfig, FillerWordsConfig, GeofenceConfig, InterruptionConfig, Labels, LlmConfig, LlmGreetingConfigs, MllmConfig, ParametersAudioScenario, RtcConfig, SalConfig, SessionOptions, SessionParamsInput, SttConfig, TtsConfig, TurnDetectionConfig } from "./types.mjs";
|
|
14
|
-
import type { BaseMLLM } from "./vendors/base.mjs";
|
|
15
14
|
/**
|
|
16
15
|
* Configuration options for creating an Agent.
|
|
17
16
|
*
|
|
@@ -139,14 +138,14 @@ export declare class Agent<TTSSampleRate extends number = number, TArea extends
|
|
|
139
138
|
/**
|
|
140
139
|
* Returns a new Agent with the specified STT vendor.
|
|
141
140
|
*
|
|
142
|
-
* @param vendor - STT vendor instance (e.g., new SpeechmaticsSTT({
|
|
141
|
+
* @param vendor - STT vendor instance (e.g., new SpeechmaticsSTT({ key: '...', language: 'en' }))
|
|
143
142
|
*
|
|
144
143
|
* @example
|
|
145
144
|
* ```typescript
|
|
146
145
|
* import { SpeechmaticsSTT } from 'agora-agents';
|
|
147
146
|
*
|
|
148
147
|
* agent.withStt(new SpeechmaticsSTT({
|
|
149
|
-
*
|
|
148
|
+
* key: 'your-key',
|
|
150
149
|
* language: 'en',
|
|
151
150
|
* }));
|
|
152
151
|
* ```
|
|
@@ -166,7 +165,7 @@ export declare class Agent<TTSSampleRate extends number = number, TArea extends
|
|
|
166
165
|
*
|
|
167
166
|
* @param vendor - MLLM vendor instance (e.g., new VertexAI({ model: '...', projectId: '...', ... }))
|
|
168
167
|
*/
|
|
169
|
-
withMllm(vendor:
|
|
168
|
+
withMllm(vendor: GlobalMllmVendor | CNMllmVendor): Agent<TTSSampleRate, TArea>;
|
|
170
169
|
/**
|
|
171
170
|
* Returns a new Agent with the specified Avatar vendor.
|
|
172
171
|
*
|
|
@@ -270,7 +269,8 @@ export declare class Agent<TTSSampleRate extends number = number, TArea extends
|
|
|
270
269
|
withFailureMessage(message: string): Agent<TTSSampleRate, TArea>;
|
|
271
270
|
/**
|
|
272
271
|
* Returns a new Agent with the specified maximum conversation history length.
|
|
273
|
-
* Applies to the standard LLM pipeline only
|
|
272
|
+
* Applies to the standard LLM pipeline only. For Azure OpenAI Realtime MLLM,
|
|
273
|
+
* configure `maxHistory` on the MLLM vendor instead.
|
|
274
274
|
*
|
|
275
275
|
* @deprecated Configure max history on the LLM vendor instead.
|
|
276
276
|
*/
|
|
@@ -147,14 +147,14 @@ export class Agent {
|
|
|
147
147
|
/**
|
|
148
148
|
* Returns a new Agent with the specified STT vendor.
|
|
149
149
|
*
|
|
150
|
-
* @param vendor - STT vendor instance (e.g., new SpeechmaticsSTT({
|
|
150
|
+
* @param vendor - STT vendor instance (e.g., new SpeechmaticsSTT({ key: '...', language: 'en' }))
|
|
151
151
|
*
|
|
152
152
|
* @example
|
|
153
153
|
* ```typescript
|
|
154
154
|
* import { SpeechmaticsSTT } from 'agora-agents';
|
|
155
155
|
*
|
|
156
156
|
* agent.withStt(new SpeechmaticsSTT({
|
|
157
|
-
*
|
|
157
|
+
* key: 'your-key',
|
|
158
158
|
* language: 'en',
|
|
159
159
|
* }));
|
|
160
160
|
* ```
|
|
@@ -342,7 +342,8 @@ export class Agent {
|
|
|
342
342
|
}
|
|
343
343
|
/**
|
|
344
344
|
* Returns a new Agent with the specified maximum conversation history length.
|
|
345
|
-
* Applies to the standard LLM pipeline only
|
|
345
|
+
* Applies to the standard LLM pipeline only. For Azure OpenAI Realtime MLLM,
|
|
346
|
+
* configure `maxHistory` on the MLLM vendor instead.
|
|
346
347
|
*
|
|
347
348
|
* @deprecated Configure max history on the LLM vendor instead.
|
|
348
349
|
*/
|
|
@@ -3,6 +3,7 @@ import { Area } from "../../core/domain/index.mjs";
|
|
|
3
3
|
import { Agent } from "../Agent.mjs";
|
|
4
4
|
import { AliyunLLM, FengmingSTT, MiniMaxCNTTS } from "../vendors/cn.mjs";
|
|
5
5
|
import { OpenAI } from "../vendors/llm.mjs";
|
|
6
|
+
import { AzureOpenAIRealtime, QwenOmni } from "../vendors/mllm.mjs";
|
|
6
7
|
import { DeepgramSTT } from "../vendors/stt.mjs";
|
|
7
8
|
import { GenericTTS, MiniMaxTTS } from "../vendors/tts.mjs";
|
|
8
9
|
const client = new AgoraClient({
|
|
@@ -26,6 +27,19 @@ new Agent({ client }).withLlm(new AliyunLLM({ url: "https://dashscope.aliyuncs.c
|
|
|
26
27
|
new Agent({ client }).withTts(new MiniMaxCNTTS({ key: "minimax-key", model: "speech-01-turbo", voiceSetting: { voice_id: "female-shaonv" } }));
|
|
27
28
|
const globalGenericTts = new GenericTTS({ url: "https://tts.example.com/v1/audio/speech" });
|
|
28
29
|
new Agent({ client }).withTts(globalGenericTts);
|
|
30
|
+
const globalMllm = new AzureOpenAIRealtime({
|
|
31
|
+
apiKey: "azure-key",
|
|
32
|
+
url: "wss://example.openai.azure.com/openai/realtime",
|
|
33
|
+
turnDetection: { mode: "server_vad" },
|
|
34
|
+
});
|
|
35
|
+
new Agent({ client }).withMllm(globalMllm);
|
|
36
|
+
// @ts-expect-error Qwen Omni is a Chinese mainland MLLM vendor.
|
|
37
|
+
const _invalidGlobalMllm = new QwenOmni({
|
|
38
|
+
apiKey: "key",
|
|
39
|
+
model: "qwen3.5-omni-plus-realtime",
|
|
40
|
+
url: "wss://dashscope.aliyuncs.com/api-ws/v1/realtime",
|
|
41
|
+
turnDetection: { mode: "server_vad" },
|
|
42
|
+
});
|
|
29
43
|
{
|
|
30
44
|
const client = new AgoraClient({
|
|
31
45
|
area: Area.CN,
|
|
@@ -55,5 +69,17 @@ new Agent({ client }).withTts(globalGenericTts);
|
|
|
55
69
|
new Agent({ client }).withTts(new MiniMaxTTS({ model: "speech-2.6-turbo", voiceId: "English_captivating_female1" }));
|
|
56
70
|
const cnGenericTts = new GenericTTS({ url: "https://tts.example.cn/v1/audio/speech" });
|
|
57
71
|
new Agent({ client }).withTts(cnGenericTts);
|
|
72
|
+
const cnMllm = new QwenOmni({
|
|
73
|
+
apiKey: "key",
|
|
74
|
+
model: "qwen3.5-omni-plus-realtime",
|
|
75
|
+
url: "wss://dashscope.aliyuncs.com/api-ws/v1/realtime",
|
|
76
|
+
});
|
|
77
|
+
new Agent({ client }).withMllm(cnMllm);
|
|
78
|
+
// @ts-expect-error Azure OpenAI Realtime is a global MLLM vendor.
|
|
79
|
+
const _invalidCnMllm = new AzureOpenAIRealtime({
|
|
80
|
+
apiKey: "azure-key",
|
|
81
|
+
url: "wss://example.openai.azure.com/openai/realtime",
|
|
82
|
+
turnDetection: { mode: "server_vad" },
|
|
83
|
+
});
|
|
58
84
|
}
|
|
59
85
|
new Agent({ client }).withStt(new DeepgramSTT({ model: "nova-3", language: "en-US" }));
|
|
@@ -28,21 +28,21 @@ export { isAkoolAvatar, isAnamAvatar, isAvatarTokenManaged, isGenericAvatar, isH
|
|
|
28
28
|
export { AudioScenario, CredentialMode, DataChannel, FillerWordsSelectionRule, Geofence, InterruptionDisabledStrategy, InterruptionDisabledStrategyAppend, InterruptionDisabledStrategyIgnore, InterruptionModeKeywords, InterruptionModeStartOfSpeech, InterruptionModeValues, MllmTurnDetectionModeAgoraVad, MllmTurnDetectionModeSemanticVad, MllmTurnDetectionModeServerVad, MllmTurnDetectionModeValues, SalModeValues, SilenceActionValues, SpeakPriorityAppend, SpeakPriorityIgnore, SpeakPriorityInterrupt, SpeakPriorityValues, ThinkOnListeningActionIgnore, ThinkOnListeningActionInject, ThinkOnListeningActionInterrupt, ThinkOnSpeakingActionIgnore, ThinkOnSpeakingActionInterrupt, ThinkOnThinkingActionIgnore, ThinkOnThinkingActionInterrupt, TurnDetectionTypeValues, } from "./constants.mjs";
|
|
29
29
|
export type { AgentPreset, AsrPreset, DeepgramPresetModel, LlmPreset, MiniMaxPresetModel, OpenAIPresetModel, OpenAITtsPresetModel, PresetCategory, PresetInput, TtsPreset, } from "./presets.mjs";
|
|
30
30
|
export { AgentPresets, normalizePresetInput } from "./presets.mjs";
|
|
31
|
-
export type { AvatarVendor, CNAvatarVendor, CNLlmVendor, CNSttVendor, CNTtsVendor, GlobalAvatarVendor, GlobalLlmVendor, GlobalSttVendor, GlobalTtsVendor, LlmVendor, SttVendor, TtsVendor, } from "./region-vendors.mjs";
|
|
31
|
+
export type { AvatarVendor, CNAvatarVendor, CNLlmVendor, CNMllmVendor, CNSttVendor, CNTtsVendor, GlobalAvatarVendor, GlobalLlmVendor, GlobalMllmVendor, GlobalSttVendor, GlobalTtsVendor, LlmVendor, SttVendor, TtsVendor, } from "./region-vendors.mjs";
|
|
32
32
|
export type { GenerateConvoAITokenOptions, GenerateTokenOptions, } from "./token.mjs";
|
|
33
33
|
export { ExpiresIn, generateConvoAIToken, generateRtcToken, MAX_EXPIRY_SECONDS, } from "./token.mjs";
|
|
34
|
-
export type { AdvancedFeatures, AgentConfig, AgentConfigUpdate, AmazonTts, AmazonTtsParams, AsrConfig, AsrVendorName, AvatarConfig, AvatarWireVendor, CartesiaTts, CartesiaTtsParams, ConversationHistory, ConversationRole, ConversationSessionTurn, ConversationTurn, ConversationTurns, Eagerness, ElevenLabsTts, ElevenLabsTtsParams, EndOfSpeechConfig, EndOfSpeechMode, EndOfSpeechSemanticConfig, EndOfSpeechVadConfig, FarewellConfig, FillerWordsConfig, FillerWordsContent, FillerWordsContentSelectionRule, FillerWordsContentStaticConfig, FillerWordsTrigger, FillerWordsTriggerFixedTimeConfig, FishAudioTts, FishAudioTtsParams, GenericTts, GenericTtsParams, GeofenceArea, GeofenceConfig, GeofenceExcludeArea, GetTurnsOptions, GoogleTts, GoogleTtsParams, GradiumTts, GradiumTtsParams, HumeAiTts, HumeAiTtsParams, InterruptionConfig, InterruptionMode, InterruptMode, Labels, LlmConfig, LlmGreetingConfigs, LlmGreetingConfigsMode, LlmStyle, McpServersItem, MicrosoftTts, MicrosoftTtsParams, MinimaxTts, MinimaxTtsParams, MistralTts, MistralTtsParams, MllmConfig, MllmTurnDetectionConfig, MllmTurnDetectionMode, MllmVendor, MurfTts, MurfTtsParams, OpenAiTts, OpenAiTtsParams, ParametersAudioScenario, ParametersDataChannel, RimeTts, RimeTtsParams, RtcConfig, SalConfig, SalMode, SarvamTts, SarvamTtsParams, SayOptions, SessionInfo, SessionListResponse, SessionOptions, SessionParams, SessionParamsInput, SessionStatus, SessionSummary, SilenceAction, SilenceConfig, SpatiusAvatarParams, SpeakPriority, StartOfSpeechConfig, StartOfSpeechDisabledConfig, StartOfSpeechDisabledConfigStrategy, StartOfSpeechKeywordsConfig, StartOfSpeechMode, StartOfSpeechVadConfig, SttConfig, ThinkOnListeningAction, ThinkOnSpeakingAction, ThinkOnThinkingAction, ThinkOptions, ThinkResponse, TtsConfig, TurnDetectionConfig, TurnDetectionLanguage, TurnDetectionNestedConfig, TurnDetectionType, XAiAsr, XAiAsrParams, XAiTts, XAiTtsParams, } from "./types.mjs";
|
|
34
|
+
export type { AdvancedFeatures, AgentConfig, AgentConfigUpdate, AmazonTts, AmazonTtsParams, AsrConfig, AsrVendorName, AvatarConfig, AvatarWireVendor, CartesiaTts, CartesiaTtsParams, ConversationHistory, ConversationRole, ConversationSessionTurn, ConversationTurn, ConversationTurns, Eagerness, ElevenLabsTts, ElevenLabsTtsParams, EndOfSpeechConfig, EndOfSpeechMode, EndOfSpeechSemanticConfig, EndOfSpeechVadConfig, FarewellConfig, FillerWordsConfig, FillerWordsContent, FillerWordsContentSelectionRule, FillerWordsContentStaticConfig, FillerWordsTrigger, FillerWordsTriggerFixedTimeConfig, FishAudioTts, FishAudioTtsParams, GenericTts, GenericTtsParams, GeofenceArea, GeofenceConfig, GeofenceExcludeArea, GetTurnsOptions, GoogleTts, GoogleTtsParams, GradiumTts, GradiumTtsParams, HumeAiTts, HumeAiTtsParams, InterruptionConfig, InterruptionMode, InterruptMode, Labels, LlmConfig, LlmGreetingConfigs, LlmGreetingConfigsMode, LlmStyle, McpServersItem, MicrosoftTts, MicrosoftTtsParams, MinimaxTts, MinimaxTtsParams, MistralTts, MistralTtsParams, MllmConfig, MllmTurnDetectionConfig, MllmTurnDetectionMode, MllmVendor, MurfTts, MurfTtsParams, OpenAiTts, OpenAiTtsParams, ParametersAudioScenario, ParametersDataChannel, RimeTts, RimeTtsParams, RtcConfig, SalConfig, SalMode, SarvamTts, SarvamTtsParams, SayOptions, SessionInfo, SessionListResponse, SessionOptions, SessionParams, SessionParamsInput, SessionStatus, SessionSummary, SilenceAction, SilenceConfig, SpatiusAvatarParams, SpeakPriority, StartOfSpeechConfig, StartOfSpeechDisabledConfig, StartOfSpeechDisabledConfigStrategy, StartOfSpeechKeywordsConfig, StartOfSpeechMode, StartOfSpeechVadConfig, SttConfig, ThinkOnListeningAction, ThinkOnSpeakingAction, ThinkOnThinkingAction, ThinkOptions, ThinkResponse, TtsConfig, TurnDetectionConfig, TurnDetectionLanguage, TurnDetectionNestedConfig, TurnDetectionType, TypecastTts, TypecastTtsParams, XAiAsr, XAiAsrParams, XAiTts, XAiTtsParams, } from "./types.mjs";
|
|
35
35
|
export type { AkoolAvatarOptions, AnamAvatarOptions, GenericAvatarOptions, HeyGenAvatarOptions, LiveAvatarAvatarOptions, } from "./vendors/avatar.mjs";
|
|
36
36
|
export { AkoolAvatar, AnamAvatar, GenericAvatar, HeyGenAvatar, LiveAvatarAvatar, } from "./vendors/avatar.mjs";
|
|
37
37
|
export type { AkoolSampleRate, CartesiaSampleRate, ElevenLabsSampleRate, HeyGenSampleRate, LiveAvatarSampleRate, MicrosoftSampleRate, SampleRate, } from "./vendors/base.mjs";
|
|
38
|
-
export { BaseAvatar, BaseCNAvatar, BaseCNLLM, BaseCNSTT, BaseCNTTS, BaseLLM, type BaseLlmOptions, BaseMLLM, BaseSTT, BaseTTS, type GoogleTTSSampleRate, } from "./vendors/base.mjs";
|
|
39
|
-
export type { AliyunLLMOptions, BytedanceDuplexTTSOptions, BytedanceLLMOptions, BytedanceTTSOptions, CosyVoiceTTSOptions, DeepSeekLLMOptions, MicrosoftCNSampleRate, MicrosoftCNSTTOptions, MicrosoftCNTTSOptions, MiniMaxCNTTSOptions, SensetimeAvatarOptions, SpatiusAvatarOptions, StepFunTTSOptions, TencentLLMOptions, TencentSTTOptions, TencentTTSOptions, XfyunBigModelSTTOptions, XfyunDialectSTTOptions, XfyunSTTOptions, } from "./vendors/cn.mjs";
|
|
38
|
+
export { BaseAvatar, BaseCNAvatar, BaseCNLLM, BaseCNMLLM, BaseCNSTT, BaseCNTTS, BaseLLM, type BaseLlmOptions, BaseMLLM, BaseSTT, BaseTTS, type GoogleTTSSampleRate, } from "./vendors/base.mjs";
|
|
39
|
+
export type { AliyunLLMOptions, BytedanceDuplexTTSOptions, BytedanceLLMOptions, BytedanceTTSOptions, CosyVoiceTTSOptions, DeepSeekLLMOptions, FengmingSTTOptions, MicrosoftCNSampleRate, MicrosoftCNSTTOptions, MicrosoftCNTTSOptions, MiniMaxCNTTSOptions, SensetimeAvatarOptions, SpatiusAvatarOptions, StepFunTTSOptions, TencentLLMOptions, TencentSTTOptions, TencentTTSOptions, XfyunBigModelSTTOptions, XfyunDialectSTTOptions, XfyunSTTOptions, } from "./vendors/cn.mjs";
|
|
40
40
|
export { AliyunLLM, BytedanceDuplexTTS, BytedanceLLM, BytedanceTTS, CosyVoiceTTS, DeepSeekLLM, FengmingSTT, MicrosoftCNSTT, MicrosoftCNTTS, MiniMaxCNTTS, SensetimeAvatar, SpatiusAvatar, StepFunTTS, TencentLLM, TencentSTT, TencentTTS, XfyunBigModelSTT, XfyunDialectSTT, XfyunSTT, } from "./vendors/cn.mjs";
|
|
41
41
|
export type { AmazonBedrockOptions, AnthropicOptions, AzureOpenAIOptions, CustomLLMOptions, DifyOptions, GeminiOptions, GroqOptions, OpenAIOptions, VertexAILLMOptions, } from "./vendors/llm.mjs";
|
|
42
42
|
export { AmazonBedrock, Anthropic, AzureOpenAI, CustomLLM, Dify, Gemini, Groq, OpenAI, VertexAILLM, } from "./vendors/llm.mjs";
|
|
43
|
-
export type { GeminiLiveOptions, OpenAIRealtimeOptions, VertexAIOptions, XaiGrokOptions, } from "./vendors/mllm.mjs";
|
|
44
|
-
export { GeminiLive, OpenAIRealtime, VertexAI, XaiGrok, } from "./vendors/mllm.mjs";
|
|
43
|
+
export type { AzureOpenAIRealtimeOptions, AzureOpenAIRealtimeParams, GeminiLiveOptions, OpenAIRealtimeOptions, QwenOmniOptions, VertexAIOptions, XaiGrokOptions, } from "./vendors/mllm.mjs";
|
|
44
|
+
export { AzureOpenAIRealtime, GeminiLive, OpenAIRealtime, QwenOmni, VertexAI, XaiGrok, } from "./vendors/mllm.mjs";
|
|
45
45
|
export type { AmazonSTTOptions, AresSTTOptions, AssemblyAISTTOptions, DeepgramSTTOptions, GoogleSTTOptions, MicrosoftSTTOptions, OpenAISTTOptions, SarvamSTTOptions, SpeechmaticsSTTOptions, XAiSTTOptions, } from "./vendors/stt.mjs";
|
|
46
46
|
export { AmazonSTT, AresSTT, AssemblyAISTT, DeepgramSTT, GoogleSTT, MicrosoftSTT, OpenAISTT, SarvamSTT, SpeechmaticsSTT, XAiSTT, } from "./vendors/stt.mjs";
|
|
47
|
-
export type { AmazonTTSOptions, CartesiaTTSOptions, DeepgramTTSOptions, ElevenLabsTTSOptions, FishAudioTTSOptions, GenericTTSOptions, GoogleTTSOptions, GradiumTTSOptions, HumeAITTSOptions, MicrosoftTTSOptions, MiniMaxTTSOptions, MistralTTSOptions, MurfTTSOptions, OpenAITTSOptions, RimeTTSOptions, SarvamTTSOptions, XAiTTSOptions, } from "./vendors/tts.mjs";
|
|
48
|
-
export { AmazonTTS, CartesiaTTS, DeepgramTTS, ElevenLabsTTS, FishAudioTTS, GenericTTS, GoogleTTS, GradiumTTS, HumeAITTS, MicrosoftTTS, MiniMaxTTS, MistralTTS, MurfTTS, OpenAITTS, RimeTTS, SarvamTTS, XAiTTS, } from "./vendors/tts.mjs";
|
|
47
|
+
export type { AmazonTTSOptions, CartesiaTTSOptions, DeepgramTTSOptions, ElevenLabsTTSOptions, FishAudioTTSOptions, GenericTTSOptions, GoogleTTSOptions, GradiumTTSOptions, HumeAITTSOptions, MicrosoftTTSOptions, MiniMaxTTSOptions, MistralTTSOptions, MurfTTSOptions, OpenAITTSOptions, RimeTTSOptions, SarvamTTSOptions, TypecastTTSOptions, XAiTTSOptions, } from "./vendors/tts.mjs";
|
|
48
|
+
export { AmazonTTS, CartesiaTTS, DeepgramTTS, ElevenLabsTTS, FishAudioTTS, GenericTTS, GoogleTTS, GradiumTTS, HumeAITTS, MicrosoftTTS, MiniMaxTTS, MistralTTS, MurfTTS, OpenAITTS, RimeTTS, SarvamTTS, TypecastTTS, XAiTTS, } from "./vendors/tts.mjs";
|
|
@@ -30,13 +30,13 @@ export { ExpiresIn, generateConvoAIToken, generateRtcToken, MAX_EXPIRY_SECONDS,
|
|
|
30
30
|
// Avatar vendor classes
|
|
31
31
|
export { AkoolAvatar, AnamAvatar, GenericAvatar, HeyGenAvatar, LiveAvatarAvatar, } from "./vendors/avatar.mjs";
|
|
32
32
|
// Base vendor classes
|
|
33
|
-
export { BaseAvatar, BaseCNAvatar, BaseCNLLM, BaseCNSTT, BaseCNTTS, BaseLLM, BaseMLLM, BaseSTT, BaseTTS, } from "./vendors/base.mjs";
|
|
33
|
+
export { BaseAvatar, BaseCNAvatar, BaseCNLLM, BaseCNMLLM, BaseCNSTT, BaseCNTTS, BaseLLM, BaseMLLM, BaseSTT, BaseTTS, } from "./vendors/base.mjs";
|
|
34
34
|
export { AliyunLLM, BytedanceDuplexTTS, BytedanceLLM, BytedanceTTS, CosyVoiceTTS, DeepSeekLLM, FengmingSTT, MicrosoftCNSTT, MicrosoftCNTTS, MiniMaxCNTTS, SensetimeAvatar, SpatiusAvatar, StepFunTTS, TencentLLM, TencentSTT, TencentTTS, XfyunBigModelSTT, XfyunDialectSTT, XfyunSTT, } from "./vendors/cn.mjs";
|
|
35
35
|
// LLM vendor classes
|
|
36
36
|
export { AmazonBedrock, Anthropic, AzureOpenAI, CustomLLM, Dify, Gemini, Groq, OpenAI, VertexAILLM, } from "./vendors/llm.mjs";
|
|
37
37
|
// MLLM vendor classes
|
|
38
|
-
export { GeminiLive, OpenAIRealtime, VertexAI, XaiGrok, } from "./vendors/mllm.mjs";
|
|
38
|
+
export { AzureOpenAIRealtime, GeminiLive, OpenAIRealtime, QwenOmni, VertexAI, XaiGrok, } from "./vendors/mllm.mjs";
|
|
39
39
|
// STT vendor classes
|
|
40
40
|
export { AmazonSTT, AresSTT, AssemblyAISTT, DeepgramSTT, GoogleSTT, MicrosoftSTT, OpenAISTT, SarvamSTT, SpeechmaticsSTT, XAiSTT, } from "./vendors/stt.mjs";
|
|
41
41
|
// TTS vendor classes
|
|
42
|
-
export { AmazonTTS, CartesiaTTS, DeepgramTTS, ElevenLabsTTS, FishAudioTTS, GenericTTS, GoogleTTS, GradiumTTS, HumeAITTS, MicrosoftTTS, MiniMaxTTS, MistralTTS, MurfTTS, OpenAITTS, RimeTTS, SarvamTTS, XAiTTS, } from "./vendors/tts.mjs";
|
|
42
|
+
export { AmazonTTS, CartesiaTTS, DeepgramTTS, ElevenLabsTTS, FishAudioTTS, GenericTTS, GoogleTTS, GradiumTTS, HumeAITTS, MicrosoftTTS, MiniMaxTTS, MistralTTS, MurfTTS, OpenAITTS, RimeTTS, SarvamTTS, TypecastTTS, XAiTTS, } from "./vendors/tts.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseAvatar, BaseCNAvatar, BaseCNLLM, BaseCNSTT, BaseCNTTS, BaseLLM, BaseSTT, BaseTTS } from "./vendors/base.mjs";
|
|
1
|
+
import type { BaseAvatar, BaseCNAvatar, BaseCNLLM, BaseCNMLLM, BaseCNSTT, BaseCNTTS, BaseLLM, BaseMLLM, BaseSTT, BaseTTS } from "./vendors/base.mjs";
|
|
2
2
|
import type { MicrosoftCNSampleRate, MicrosoftCNSTT, MicrosoftCNTTS } from "./vendors/cn.mjs";
|
|
3
3
|
import type { CustomLLM } from "./vendors/llm.mjs";
|
|
4
4
|
import type { GenericTTS } from "./vendors/tts.mjs";
|
|
@@ -6,10 +6,12 @@ export type GlobalLlmVendor = BaseLLM;
|
|
|
6
6
|
export type GlobalTtsVendor<SR extends number = number> = BaseTTS<SR>;
|
|
7
7
|
export type GlobalSttVendor = BaseSTT;
|
|
8
8
|
export type GlobalAvatarVendor<SR extends number = number> = BaseAvatar<SR>;
|
|
9
|
+
export type GlobalMllmVendor = BaseMLLM;
|
|
9
10
|
export type CNLlmVendor = BaseCNLLM | CustomLLM;
|
|
10
11
|
export type CNTtsVendor<SR extends number = number> = BaseCNTTS<SR> | GenericTTS | (SR extends MicrosoftCNSampleRate ? MicrosoftCNTTS<SR> : never);
|
|
11
12
|
export type CNSttVendor = BaseCNSTT | MicrosoftCNSTT;
|
|
12
13
|
export type CNAvatarVendor<SR extends number = number> = BaseCNAvatar<SR>;
|
|
14
|
+
export type CNMllmVendor = BaseCNMLLM;
|
|
13
15
|
export type LlmVendor = GlobalLlmVendor | CNLlmVendor;
|
|
14
16
|
export type TtsVendor<SR extends number = number> = GlobalTtsVendor<SR> | CNTtsVendor<SR>;
|
|
15
17
|
export type SttVendor = GlobalSttVendor | CNSttVendor;
|