agora-agents 2.7.0 → 2.8.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/README.md +3 -3
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/agentkit/Agent.d.ts +1 -1
- package/dist/cjs/agentkit/Agent.js +27 -12
- package/dist/cjs/agentkit/AgentSession.d.ts +0 -3
- package/dist/cjs/agentkit/AgentSession.js +3 -3
- package/dist/cjs/agentkit/debug.d.ts +2 -4
- package/dist/cjs/agentkit/debug.js +15 -6
- package/dist/cjs/agentkit/index.d.ts +7 -5
- package/dist/cjs/agentkit/index.js +15 -12
- package/dist/cjs/agentkit/preview/client.d.ts +6 -5
- package/dist/cjs/agentkit/preview/client.js +10 -5
- package/dist/cjs/agentkit/preview/index.d.ts +6 -5
- package/dist/cjs/agentkit/preview/index.js +8 -6
- package/dist/cjs/agentkit/preview/vendors.d.ts +65 -63
- package/dist/cjs/agentkit/preview/vendors.js +71 -36
- package/dist/cjs/agentkit/types.d.ts +23 -41
- package/dist/cjs/agentkit/vendors/base.d.ts +6 -2
- package/dist/cjs/agentkit/vendors/base.js +4 -0
- package/dist/cjs/agentkit/vendors/cn.js +7 -5
- package/dist/cjs/agentkit/vendors/llm.js +8 -1
- package/dist/cjs/agentkit/vendors/stt.d.ts +45 -2
- package/dist/cjs/agentkit/vendors/stt.js +53 -5
- package/dist/cjs/agentkit/vendors/tts.js +1 -1
- package/dist/cjs/api/resources/agents/client/requests/StartAgentsRequest.d.ts +12 -20
- package/dist/cjs/api/resources/agents/client/requests/StartAgentsRequest.js +1 -1
- package/dist/cjs/api/types/Asr.d.ts +4 -1
- package/dist/cjs/api/types/GeminiAsr.d.ts +10 -0
- package/dist/cjs/api/types/GeminiAsr.js +3 -0
- package/dist/cjs/api/types/GeminiAsrParams.d.ts +33 -0
- package/dist/cjs/api/types/GeminiAsrParams.js +12 -0
- package/dist/cjs/api/types/index.d.ts +2 -0
- package/dist/cjs/api/types/index.js +2 -0
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js +5 -3
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/agentkit/Agent.d.mts +1 -1
- package/dist/esm/agentkit/Agent.mjs +27 -12
- package/dist/esm/agentkit/AgentSession.d.mts +0 -3
- package/dist/esm/agentkit/AgentSession.mjs +3 -3
- package/dist/esm/agentkit/debug.d.mts +2 -4
- package/dist/esm/agentkit/debug.mjs +15 -6
- package/dist/esm/agentkit/index.d.mts +7 -5
- package/dist/esm/agentkit/index.mjs +3 -2
- package/dist/esm/agentkit/preview/client.d.mts +6 -5
- package/dist/esm/agentkit/preview/client.mjs +10 -5
- package/dist/esm/agentkit/preview/index.d.mts +6 -5
- package/dist/esm/agentkit/preview/index.mjs +4 -4
- package/dist/esm/agentkit/preview/vendors.d.mts +65 -63
- package/dist/esm/agentkit/preview/vendors.mjs +69 -35
- package/dist/esm/agentkit/types.d.mts +23 -41
- package/dist/esm/agentkit/vendors/base.d.mts +6 -2
- package/dist/esm/agentkit/vendors/base.mjs +4 -0
- package/dist/esm/agentkit/vendors/cn.mjs +7 -5
- package/dist/esm/agentkit/vendors/llm.mjs +8 -1
- package/dist/esm/agentkit/vendors/stt.d.mts +45 -2
- package/dist/esm/agentkit/vendors/stt.mjs +51 -4
- package/dist/esm/agentkit/vendors/tts.mjs +1 -1
- package/dist/esm/api/resources/agents/client/requests/StartAgentsRequest.d.mts +12 -20
- package/dist/esm/api/resources/agents/client/requests/StartAgentsRequest.mjs +1 -1
- package/dist/esm/api/types/Asr.d.mts +4 -1
- package/dist/esm/api/types/GeminiAsr.d.mts +10 -0
- package/dist/esm/api/types/GeminiAsr.mjs +2 -0
- package/dist/esm/api/types/GeminiAsrParams.d.mts +33 -0
- package/dist/esm/api/types/GeminiAsrParams.mjs +9 -0
- package/dist/esm/api/types/index.d.mts +2 -0
- package/dist/esm/api/types/index.mjs +2 -0
- package/dist/esm/index.d.mts +2 -2
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +4 -2
- package/dist/cjs/agentkit/__tests__/area-aware-vendors.test.d.ts +0 -1
- package/dist/cjs/agentkit/__tests__/area-aware-vendors.test.js +0 -87
- package/dist/cjs/agentkit/__tests__/preview-types.test.d.ts +0 -7
- package/dist/cjs/agentkit/__tests__/preview-types.test.js +0 -57
- package/dist/cjs/agentkit/__tests__/readme-examples.test.d.ts +0 -1
- package/dist/cjs/agentkit/__tests__/readme-examples.test.js +0 -126
- package/dist/cjs/agentkit/__tests__/type-safety.test.d.ts +0 -14
- package/dist/cjs/agentkit/__tests__/type-safety.test.js +0 -321
- package/dist/esm/agentkit/__tests__/area-aware-vendors.test.d.mts +0 -1
- package/dist/esm/agentkit/__tests__/area-aware-vendors.test.mjs +0 -85
- package/dist/esm/agentkit/__tests__/preview-types.test.d.mts +0 -7
- package/dist/esm/agentkit/__tests__/preview-types.test.mjs +0 -55
- package/dist/esm/agentkit/__tests__/readme-examples.test.d.mts +0 -1
- package/dist/esm/agentkit/__tests__/readme-examples.test.mjs +0 -124
- package/dist/esm/agentkit/__tests__/type-safety.test.d.mts +0 -14
- package/dist/esm/agentkit/__tests__/type-safety.test.mjs +0 -319
|
@@ -111,10 +111,7 @@ export declare namespace StartAgentsRequest {
|
|
|
111
111
|
labels?: Record<string, string>;
|
|
112
112
|
/** RTC media encryption configuration. */
|
|
113
113
|
rtc?: Properties.Rtc;
|
|
114
|
-
/**
|
|
115
|
-
* Filler word configuration. Plays filler words while waiting for LLM responses to reduce user anxiety and improve conversation flow.
|
|
116
|
-
* When `enable` is `true`, `content.static_config.phrases` must be present and non-empty, even when `content.mode` is `generated`, because generated mode still falls back to static filler words.
|
|
117
|
-
*/
|
|
114
|
+
/** Filler word configuration. Plays filler words while waiting for LLM responses to reduce user anxiety and improve conversation flow. */
|
|
118
115
|
filler_words?: Properties.FillerWords;
|
|
119
116
|
/** Agent configuration parameters. */
|
|
120
117
|
parameters?: Properties.Parameters;
|
|
@@ -160,7 +157,7 @@ export declare namespace StartAgentsRequest {
|
|
|
160
157
|
enable_rtm?: boolean;
|
|
161
158
|
/** Enable Selective Attention Locking (SAL). When enabled, configure the `sal` field to set up speaker recognition or locking modes. */
|
|
162
159
|
enable_sal?: boolean;
|
|
163
|
-
/** Enable
|
|
160
|
+
/** Enable invocation for MCP servers and inline REST tools. */
|
|
164
161
|
enable_tools?: boolean;
|
|
165
162
|
}
|
|
166
163
|
/**
|
|
@@ -569,7 +566,6 @@ export declare namespace StartAgentsRequest {
|
|
|
569
566
|
}
|
|
570
567
|
/**
|
|
571
568
|
* Filler word configuration. Plays filler words while waiting for LLM responses to reduce user anxiety and improve conversation flow.
|
|
572
|
-
* When `enable` is `true`, `content.static_config.phrases` must be present and non-empty, even when `content.mode` is `generated`, because generated mode still falls back to static filler words.
|
|
573
569
|
*/
|
|
574
570
|
interface FillerWords {
|
|
575
571
|
/**
|
|
@@ -612,22 +608,19 @@ export declare namespace StartAgentsRequest {
|
|
|
612
608
|
/**
|
|
613
609
|
* Filler word content mode:
|
|
614
610
|
* - `static`: Static filler words. Uses a predefined list of filler words.
|
|
615
|
-
* - `generated`: LLM-generated filler words based on the last user message.
|
|
611
|
+
* - `generated`: LLM-generated filler words based on the last user message.
|
|
616
612
|
*/
|
|
617
613
|
mode?: Content.Mode;
|
|
618
|
-
/**
|
|
619
|
-
* Static filler word configuration. Required when `mode` is `static`.
|
|
620
|
-
* Also required whenever `filler_words.enable` is `true`, including when `mode` is `generated`, because generated mode uses static filler words as fallback.
|
|
621
|
-
*/
|
|
614
|
+
/** Static filler word configuration. Required when `mode` is `static`. */
|
|
622
615
|
static_config?: Content.StaticConfig;
|
|
623
|
-
/**
|
|
616
|
+
/** Optional configuration for generated filler words. When omitted, the service uses its default generator settings. */
|
|
624
617
|
generated_config?: Content.GeneratedConfig;
|
|
625
618
|
}
|
|
626
619
|
namespace Content {
|
|
627
620
|
/**
|
|
628
621
|
* Filler word content mode:
|
|
629
622
|
* - `static`: Static filler words. Uses a predefined list of filler words.
|
|
630
|
-
* - `generated`: LLM-generated filler words based on the last user message.
|
|
623
|
+
* - `generated`: LLM-generated filler words based on the last user message.
|
|
631
624
|
*/
|
|
632
625
|
const Mode: {
|
|
633
626
|
readonly Static: "static";
|
|
@@ -636,7 +629,6 @@ export declare namespace StartAgentsRequest {
|
|
|
636
629
|
type Mode = (typeof Mode)[keyof typeof Mode];
|
|
637
630
|
/**
|
|
638
631
|
* Static filler word configuration. Required when `mode` is `static`.
|
|
639
|
-
* Also required whenever `filler_words.enable` is `true`, including when `mode` is `generated`, because generated mode uses static filler words as fallback.
|
|
640
632
|
*/
|
|
641
633
|
interface StaticConfig {
|
|
642
634
|
/** List of filler word phrases. Maximum 100 filler words, each not exceeding 50 English words. */
|
|
@@ -661,23 +653,23 @@ export declare namespace StartAgentsRequest {
|
|
|
661
653
|
type SelectionRule = (typeof SelectionRule)[keyof typeof SelectionRule];
|
|
662
654
|
}
|
|
663
655
|
/**
|
|
664
|
-
*
|
|
656
|
+
* Optional configuration for generated filler words. When omitted, the service uses its default generator settings.
|
|
665
657
|
*/
|
|
666
658
|
interface GeneratedConfig {
|
|
667
659
|
/** OpenAI-compatible LLM provider used to generate filler words. Runs in parallel with the main business LLM and only uses the last user message as input. */
|
|
668
|
-
llm_provider
|
|
660
|
+
llm_provider?: GeneratedConfig.LlmProvider;
|
|
669
661
|
/** System prompt used to generate a short filler phrase based on the last user message. The generated text should be conversational and must not answer the user's question. */
|
|
670
|
-
prompt
|
|
662
|
+
prompt?: string;
|
|
671
663
|
/** Fallback strategy when generated filler text is not ready, fails, or returns empty text. Phase 1 only supports `static`. */
|
|
672
|
-
fallback_strategy
|
|
664
|
+
fallback_strategy?: "static";
|
|
673
665
|
}
|
|
674
666
|
namespace GeneratedConfig {
|
|
675
667
|
/**
|
|
676
668
|
* OpenAI-compatible LLM provider used to generate filler words. Runs in parallel with the main business LLM and only uses the last user message as input.
|
|
677
669
|
*/
|
|
678
670
|
interface LlmProvider {
|
|
679
|
-
/**
|
|
680
|
-
|
|
671
|
+
/** URL of the OpenAI-compatible chat completions endpoint. If the URL does not end with `/chat/completions`, the engine appends it automatically. */
|
|
672
|
+
url: string;
|
|
681
673
|
/** API key for authenticating requests to the filler LLM provider. */
|
|
682
674
|
api_key: string;
|
|
683
675
|
/** Additional request parameters merged into the generated filler LLM request body, such as `model`. */
|
|
@@ -190,7 +190,7 @@ var StartAgentsRequest;
|
|
|
190
190
|
/**
|
|
191
191
|
* Filler word content mode:
|
|
192
192
|
* - `static`: Static filler words. Uses a predefined list of filler words.
|
|
193
|
-
* - `generated`: LLM-generated filler words based on the last user message.
|
|
193
|
+
* - `generated`: LLM-generated filler words based on the last user message.
|
|
194
194
|
*/
|
|
195
195
|
Content.Mode = {
|
|
196
196
|
Static: "static",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as Agora from "../index.js";
|
|
2
|
-
export type Asr = Agora.Asr.Ares | Agora.Asr.Fengming | Agora.Asr.Tencent | Agora.Asr.Microsoft | Agora.Asr.Deepgram | Agora.Asr.Openai | Agora.Asr.Google | Agora.Asr.Amazon | Agora.Asr.Assemblyai | Agora.Asr.Speechmatics | Agora.Asr.Sarvam | Agora.Asr.Xai | Agora.Asr.Xfyun | Agora.Asr.XfyunBigmodel | Agora.Asr.XfyunDialect;
|
|
2
|
+
export type Asr = Agora.Asr.Ares | Agora.Asr.Fengming | Agora.Asr.Tencent | Agora.Asr.Microsoft | Agora.Asr.Deepgram | Agora.Asr.Openai | Agora.Asr.Google | Agora.Asr.Gemini | Agora.Asr.Amazon | Agora.Asr.Assemblyai | Agora.Asr.Speechmatics | Agora.Asr.Sarvam | Agora.Asr.Xai | Agora.Asr.Xfyun | Agora.Asr.XfyunBigmodel | Agora.Asr.XfyunDialect;
|
|
3
3
|
export declare namespace Asr {
|
|
4
4
|
interface Ares extends Agora.AresAsr {
|
|
5
5
|
vendor: "ares";
|
|
@@ -22,6 +22,9 @@ export declare namespace Asr {
|
|
|
22
22
|
interface Google extends Agora.GoogleAsr {
|
|
23
23
|
vendor: "google";
|
|
24
24
|
}
|
|
25
|
+
interface Gemini extends Agora.GeminiAsr {
|
|
26
|
+
vendor: "gemini";
|
|
27
|
+
}
|
|
25
28
|
interface Amazon extends Agora.AmazonAsr {
|
|
26
29
|
vendor: "amazon";
|
|
27
30
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Google Gemini ASR configuration parameters.
|
|
3
|
+
*/
|
|
4
|
+
export interface GeminiAsrParams {
|
|
5
|
+
/** The Google Gemini API key used to authenticate requests. */
|
|
6
|
+
api_key: string;
|
|
7
|
+
/** The Gemini transcription model identifier. */
|
|
8
|
+
model: string;
|
|
9
|
+
/** The audio sample rate in Hz. */
|
|
10
|
+
sample_rate?: number | null;
|
|
11
|
+
/** The language code for speech recognition. This takes precedence over the top-level `asr.language` value. */
|
|
12
|
+
language?: string;
|
|
13
|
+
/** Candidate language codes for transcription. When non-empty, these take precedence over language. */
|
|
14
|
+
language_hints?: string[];
|
|
15
|
+
/** Words and phrases used to bias transcription. A non-empty custom vocabulary cannot be combined with word_timestamp. */
|
|
16
|
+
custom_vocabulary?: string[];
|
|
17
|
+
/** Transcription output mode. SMART removes disfluencies and applies formatting; VERBATIM preserves literal speech. When omitted, the service defaults to VERBATIM. SMART cannot be combined with word_timestamp or diarization. */
|
|
18
|
+
mode?: GeminiAsrParams.Mode;
|
|
19
|
+
/** Whether to include word-level timestamps in the transcription results. Cannot be enabled when mode is SMART or custom_vocabulary is non-empty. */
|
|
20
|
+
word_timestamp?: boolean;
|
|
21
|
+
/** Whether to include speaker labels in the transcription results. Cannot be enabled when mode is SMART. */
|
|
22
|
+
diarization?: boolean;
|
|
23
|
+
/** Accepts any additional properties */
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}
|
|
26
|
+
export declare namespace GeminiAsrParams {
|
|
27
|
+
/** Transcription output mode. SMART removes disfluencies and applies formatting; VERBATIM preserves literal speech. When omitted, the service defaults to VERBATIM. SMART cannot be combined with word_timestamp or diarization. */
|
|
28
|
+
const Mode: {
|
|
29
|
+
readonly Smart: "SMART";
|
|
30
|
+
readonly Verbatim: "VERBATIM";
|
|
31
|
+
};
|
|
32
|
+
type Mode = (typeof Mode)[keyof typeof Mode];
|
|
33
|
+
}
|
|
@@ -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.GeminiAsrParams = void 0;
|
|
5
|
+
var GeminiAsrParams;
|
|
6
|
+
(function (GeminiAsrParams) {
|
|
7
|
+
/** Transcription output mode. SMART removes disfluencies and applies formatting; VERBATIM preserves literal speech. When omitted, the service defaults to VERBATIM. SMART cannot be combined with word_timestamp or diarization. */
|
|
8
|
+
GeminiAsrParams.Mode = {
|
|
9
|
+
Smart: "SMART",
|
|
10
|
+
Verbatim: "VERBATIM",
|
|
11
|
+
};
|
|
12
|
+
})(GeminiAsrParams || (exports.GeminiAsrParams = GeminiAsrParams = {}));
|
|
@@ -29,6 +29,8 @@ export * from "./FengmingAsr.js";
|
|
|
29
29
|
export * from "./FengmingAsrParams.js";
|
|
30
30
|
export * from "./FishAudioTts.js";
|
|
31
31
|
export * from "./FishAudioTtsParams.js";
|
|
32
|
+
export * from "./GeminiAsr.js";
|
|
33
|
+
export * from "./GeminiAsrParams.js";
|
|
32
34
|
export * from "./GenericHttpTts.js";
|
|
33
35
|
export * from "./GenericHttpTtsParams.js";
|
|
34
36
|
export * from "./GoogleAsr.js";
|
|
@@ -45,6 +45,8 @@ __exportStar(require("./FengmingAsr.js"), exports);
|
|
|
45
45
|
__exportStar(require("./FengmingAsrParams.js"), exports);
|
|
46
46
|
__exportStar(require("./FishAudioTts.js"), exports);
|
|
47
47
|
__exportStar(require("./FishAudioTtsParams.js"), exports);
|
|
48
|
+
__exportStar(require("./GeminiAsr.js"), exports);
|
|
49
|
+
__exportStar(require("./GeminiAsrParams.js"), exports);
|
|
48
50
|
__exportStar(require("./GenericHttpTts.js"), exports);
|
|
49
51
|
__exportStar(require("./GenericHttpTtsParams.js"), exports);
|
|
50
52
|
__exportStar(require("./GoogleAsr.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, 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, GeminiAsrParams, GeminiLiveOptions, GeminiOptions, GeminiSTTModel, GeminiSTTOptions, 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, PreviewFeature, PreviewRoute, 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, createPreviewRoute, DataChannel, DeepgramSTT, DeepgramTTS, DeepSeekLLM, Dify, ElevenLabsTTS, ExpiresIn, FengmingSTT, FillerWordsSelectionRule, FishAudioTTS, Gemini, GeminiLive, GeminiSTT, GeminiSTTModels, 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, PREVIEW_API_BASE_URL, PREVIEW_FEATURE_HEADER, PreviewFeatures, previewRequestHeaders, QwenOmni, REDACTED, RimeTTS, redactHeadersForDebug, redactSecrets, 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";
|
|
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, FillerWordsContentGeneratedConfig, FillerWordsContentSelectionRule, FillerWordsContentStaticConfig, FillerWordsGeneratedLlmProvider, FillerWordsTrigger, FillerWordsTriggerFixedTimeConfig, FishAudioTTSOptions, FishAudioTts, FishAudioTtsParams, GeminiAsrParams, GeminiLiveOptions, GeminiOptions, GeminiSTTModel, GeminiSTTOptions, 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, LlmTool, LlmToolExecution, LlmToolFunction, LlmToolServer, LlmVendor, McpServersItem, MicrosoftCNSampleRate, MicrosoftCNSTTOptions, MicrosoftCNTTSOptions, MicrosoftSampleRate, MicrosoftSTTOptions, MicrosoftTTSOptions, MicrosoftTts, MicrosoftTtsParams, MiniMaxCNTTSOptions, MiniMaxTTSOptions, MinimaxTts, MinimaxTtsParams, MistralTTSOptions, MistralTts, MistralTtsParams, MllmConfig, MllmTurnDetectionConfig, MllmTurnDetectionMode, MllmVendor, MurfTTSOptions, MurfTts, MurfTtsParams, OpenAIGPTLiveOptions, OpenAIOptions, OpenAIRealtimeOptions, OpenAISTTOptions, OpenAITTSOptions, OpenAiTts, OpenAiTtsParams, ParametersAudioScenario, ParametersDataChannel, PresetCategory, PresetInput, PreviewFeature, PreviewRoute, 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, createPreviewRoute, DataChannel, DeepgramSTT, DeepgramTTS, DeepSeekLLM, Dify, ElevenLabsTTS, ExpiresIn, FengmingSTT, FillerWordsSelectionRule, FishAudioTTS, Gemini, GeminiLive, GeminiSTT, GeminiSTTModels, GeminiTranscriptionMode, 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, OpenAIGPTLive, OpenAIRealtime, OpenAISTT, OpenAITTS, PREVIEW_API_BASE_URL, PREVIEW_FEATURE_HEADER, PreviewFeatures, previewRequestHeaders, QwenOmni, REDACTED, RimeTTS, redactHeadersForDebug, redactSecrets, 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.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 = exports.SpeakPriorityInterrupt = exports.SpeakPriorityIgnore = exports.SpeakPriorityAppend = exports.SpatiusAvatar = exports.SilenceActionValues = exports.SensetimeAvatar = exports.SarvamTTS = exports.SarvamSTT = exports.SalModeValues = exports.redactSecrets = void 0;
|
|
39
|
+
exports.GenericAvatar = exports.GeminiTranscriptionMode = exports.GeminiSTTModels = exports.GeminiSTT = 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.createPreviewRoute = 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.REDACTED = exports.QwenOmni = exports.previewRequestHeaders = exports.PreviewFeatures = exports.PREVIEW_FEATURE_HEADER = exports.PREVIEW_API_BASE_URL = exports.OpenAITTS = exports.OpenAISTT = exports.OpenAIRealtime = exports.OpenAIGPTLive = 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 = exports.GoogleTTS = exports.GoogleSTT = exports.Geofence = exports.GenericTTS = 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 = exports.SpeakPriorityInterrupt = exports.SpeakPriorityIgnore = exports.SpeakPriorityAppend = exports.SpatiusAvatar = exports.SilenceActionValues = exports.SensetimeAvatar = exports.SarvamTTS = exports.SarvamSTT = exports.SalModeValues = exports.redactSecrets = exports.redactHeadersForDebug = exports.RimeTTS = 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
|
|
@@ -92,6 +92,7 @@ Object.defineProperty(exports, "Gemini", { enumerable: true, get: function () {
|
|
|
92
92
|
Object.defineProperty(exports, "GeminiLive", { enumerable: true, get: function () { return index_js_1.GeminiLive; } });
|
|
93
93
|
Object.defineProperty(exports, "GeminiSTT", { enumerable: true, get: function () { return index_js_1.GeminiSTT; } });
|
|
94
94
|
Object.defineProperty(exports, "GeminiSTTModels", { enumerable: true, get: function () { return index_js_1.GeminiSTTModels; } });
|
|
95
|
+
Object.defineProperty(exports, "GeminiTranscriptionMode", { enumerable: true, get: function () { return index_js_1.GeminiTranscriptionMode; } });
|
|
95
96
|
Object.defineProperty(exports, "GenericAvatar", { enumerable: true, get: function () { return index_js_1.GenericAvatar; } });
|
|
96
97
|
Object.defineProperty(exports, "GenericTTS", { enumerable: true, get: function () { return index_js_1.GenericTTS; } });
|
|
97
98
|
Object.defineProperty(exports, "Geofence", { enumerable: true, get: function () { return index_js_1.Geofence; } });
|
|
@@ -135,6 +136,7 @@ Object.defineProperty(exports, "MurfTTS", { enumerable: true, get: function () {
|
|
|
135
136
|
Object.defineProperty(exports, "normalizePresetInput", { enumerable: true, get: function () { return index_js_1.normalizePresetInput; } });
|
|
136
137
|
// LLM vendors
|
|
137
138
|
Object.defineProperty(exports, "OpenAI", { enumerable: true, get: function () { return index_js_1.OpenAI; } });
|
|
139
|
+
Object.defineProperty(exports, "OpenAIGPTLive", { enumerable: true, get: function () { return index_js_1.OpenAIGPTLive; } });
|
|
138
140
|
// MLLM vendors
|
|
139
141
|
Object.defineProperty(exports, "OpenAIRealtime", { enumerable: true, get: function () { return index_js_1.OpenAIRealtime; } });
|
|
140
142
|
Object.defineProperty(exports, "OpenAISTT", { enumerable: true, get: function () { return index_js_1.OpenAISTT; } });
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v2.
|
|
1
|
+
export declare const SDK_VERSION = "v2.8.1";
|
package/dist/cjs/version.js
CHANGED
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.8.1",
|
|
9
|
+
"User-Agent": "agora-agents/v2.8.1",
|
|
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);
|
|
@@ -246,7 +246,7 @@ export declare class Agent<TTSSampleRate extends number = number, TArea extends
|
|
|
246
246
|
*/
|
|
247
247
|
withAdvancedFeatures(features: AdvancedFeatures): Agent<TTSSampleRate, TArea>;
|
|
248
248
|
/**
|
|
249
|
-
* Returns a new Agent with MCP tool invocation enabled or disabled.
|
|
249
|
+
* Returns a new Agent with MCP and inline REST tool invocation enabled or disabled.
|
|
250
250
|
*/
|
|
251
251
|
withTools(enabled?: boolean): Agent<TTSSampleRate, TArea>;
|
|
252
252
|
/**
|
|
@@ -8,8 +8,14 @@
|
|
|
8
8
|
import { Area } from "../core/domain/index.mjs";
|
|
9
9
|
import { AgentSession } from "./AgentSession.mjs";
|
|
10
10
|
import { AudioScenario } from "./constants.mjs";
|
|
11
|
+
import { isOpenAIGPTLiveConfig } from "./preview/vendors.mjs";
|
|
11
12
|
import { generateConvoAIToken } from "./token.mjs";
|
|
12
13
|
const DEFAULT_TURN_DETECTION_LANGUAGE = "en-US";
|
|
14
|
+
function toGeneratedMllm(config) {
|
|
15
|
+
// The preview vendor predates its generated schema enum. Keep the assertion at
|
|
16
|
+
// this wire boundary so the public and builder APIs remain accurately typed.
|
|
17
|
+
return config;
|
|
18
|
+
}
|
|
13
19
|
const INTERACTION_LANGUAGES = new Set([
|
|
14
20
|
"ar-EG",
|
|
15
21
|
"ar-JO",
|
|
@@ -303,7 +309,7 @@ export class Agent {
|
|
|
303
309
|
return newAgent;
|
|
304
310
|
}
|
|
305
311
|
/**
|
|
306
|
-
* Returns a new Agent with MCP tool invocation enabled or disabled.
|
|
312
|
+
* Returns a new Agent with MCP and inline REST tool invocation enabled or disabled.
|
|
307
313
|
*/
|
|
308
314
|
withTools(enabled = true) {
|
|
309
315
|
const newAgent = this._clone();
|
|
@@ -624,7 +630,7 @@ export class Agent {
|
|
|
624
630
|
remote_rtc_uids: opts.remoteUids,
|
|
625
631
|
idle_timeout: opts.idleTimeout,
|
|
626
632
|
enable_string_uid: opts.enableStringUid,
|
|
627
|
-
mllm: this._mllm,
|
|
633
|
+
mllm: toGeneratedMllm(this._mllm),
|
|
628
634
|
interruption: this._interruption,
|
|
629
635
|
sal: this._sal,
|
|
630
636
|
avatar: this._avatar,
|
|
@@ -636,15 +642,11 @@ export class Agent {
|
|
|
636
642
|
filler_words: this._fillerWords,
|
|
637
643
|
};
|
|
638
644
|
if (isMllmMode) {
|
|
639
|
-
const mllmConfig = this._mllm ? Object.assign({}, this._mllm) : undefined;
|
|
645
|
+
const mllmConfig = toGeneratedMllm(this._mllm ? Object.assign({}, this._mllm) : undefined);
|
|
640
646
|
if (mllmConfig) {
|
|
641
647
|
// Vendor config wins: only apply agent-level values when the vendor hasn't already set them.
|
|
642
648
|
// Consistent with Python (setdefault) and Go (!exists) semantics.
|
|
643
649
|
//
|
|
644
|
-
// These are production wire spellings. A route that spells one of them
|
|
645
|
-
// differently needs a rename entry in `preview/client.ts`, or the value
|
|
646
|
-
// lands in a field the provider ignores and fails silently. See
|
|
647
|
-
// docs/guides/preview-endpoint.md#the-vendor-class-is-not-the-whole-wire-shape.
|
|
648
650
|
const c = mllmConfig;
|
|
649
651
|
if (this._greeting !== undefined && c.greeting_message === undefined) {
|
|
650
652
|
c.greeting_message = this._greeting;
|
|
@@ -653,7 +655,14 @@ export class Agent {
|
|
|
653
655
|
c.failure_message = this._failureMessage;
|
|
654
656
|
}
|
|
655
657
|
}
|
|
656
|
-
|
|
658
|
+
const isOpenAIGPTLive = isOpenAIGPTLiveConfig(mllmConfig);
|
|
659
|
+
if (isOpenAIGPTLive && this._turnDetection !== undefined) {
|
|
660
|
+
console.warn("GPT Live v3 ignores agent-level turn_detection; endpointing is internal");
|
|
661
|
+
}
|
|
662
|
+
return Object.assign(Object.assign(Object.assign({}, base), { mllm: mllmConfig }), (!isOpenAIGPTLive &&
|
|
663
|
+
this._turnDetection !== undefined && {
|
|
664
|
+
turn_detection: this._turnDetection,
|
|
665
|
+
}));
|
|
657
666
|
}
|
|
658
667
|
const skipCategories = new Set((_c = opts.skipVendorValidationCategories) !== null && _c !== void 0 ? _c : []);
|
|
659
668
|
const allowMissingCategories = new Set((_d = opts.allowMissingVendorCategories) !== null && _d !== void 0 ? _d : []);
|
|
@@ -726,10 +735,16 @@ export class Agent {
|
|
|
726
735
|
: {
|
|
727
736
|
vendor: this._client.area === Area.CN ? "fengming" : "ares",
|
|
728
737
|
};
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
738
|
+
if (asrConfig.vendor === "gemini" && asrConfig.params !== undefined) {
|
|
739
|
+
const params = Object.assign({}, asrConfig.params);
|
|
740
|
+
if (params.language_hints === undefined && params.language_codes !== undefined) {
|
|
741
|
+
params.language_hints = params.language_codes;
|
|
742
|
+
}
|
|
743
|
+
delete params.language_codes;
|
|
744
|
+
asrConfig.params = params;
|
|
745
|
+
}
|
|
746
|
+
// Turn detection is the single source of truth for the top-level
|
|
747
|
+
// interaction language. Provider-specific languages remain in params.
|
|
733
748
|
asrConfig.language = turnDetectionConfig.language;
|
|
734
749
|
return Object.keys(asrConfig).length > 0 ? asrConfig : undefined;
|
|
735
750
|
}
|
|
@@ -137,9 +137,6 @@ export declare class AgentSession {
|
|
|
137
137
|
/**
|
|
138
138
|
* Client-level default headers, for debug logging only.
|
|
139
139
|
*
|
|
140
|
-
* These carry the preview `agora-feature` gate, which the generated client
|
|
141
|
-
* merges in below the SDK's view — so without this the header that decides
|
|
142
|
-
* whether a request reaches a preview provider is invisible in debug output.
|
|
143
140
|
* Reaches into `_options` the same way `authMode` is read in the constructor;
|
|
144
141
|
* supplier-valued headers are skipped rather than resolved, since debug
|
|
145
142
|
* logging must not trigger side effects.
|
|
@@ -117,9 +117,6 @@ export class AgentSession {
|
|
|
117
117
|
/**
|
|
118
118
|
* Client-level default headers, for debug logging only.
|
|
119
119
|
*
|
|
120
|
-
* These carry the preview `agora-feature` gate, which the generated client
|
|
121
|
-
* merges in below the SDK's view — so without this the header that decides
|
|
122
|
-
* whether a request reaches a preview provider is invisible in debug output.
|
|
123
120
|
* Reaches into `_options` the same way `authMode` is read in the constructor;
|
|
124
121
|
* supplier-valued headers are skipped rather than resolved, since debug
|
|
125
122
|
* logging must not trigger side effects.
|
|
@@ -136,6 +133,9 @@ export class AgentSession {
|
|
|
136
133
|
result[key] = value;
|
|
137
134
|
}
|
|
138
135
|
}
|
|
136
|
+
if (this._previewFeatures.length > 0) {
|
|
137
|
+
return previewRequestHeaders(this._previewFeatures, result);
|
|
138
|
+
}
|
|
139
139
|
return result;
|
|
140
140
|
}
|
|
141
141
|
/**
|
|
@@ -25,9 +25,7 @@ export declare function redactSecrets(value: unknown): unknown;
|
|
|
25
25
|
/**
|
|
26
26
|
* Redacts request headers for debug logging.
|
|
27
27
|
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* the authorization scheme's credential, whose scheme name is preserved so the
|
|
31
|
-
* active auth mode stays visible.
|
|
28
|
+
* Non-authorization headers are kept. The authorization credential is removed,
|
|
29
|
+
* while its scheme name stays visible so the active auth mode can be diagnosed.
|
|
32
30
|
*/
|
|
33
31
|
export declare function redactHeadersForDebug(headers: Record<string, string>): Record<string, string>;
|
|
@@ -41,6 +41,10 @@ const SENSITIVE_BODY_KEYS = new Set([
|
|
|
41
41
|
"agora_token",
|
|
42
42
|
"agoratoken",
|
|
43
43
|
"authorization",
|
|
44
|
+
"headers",
|
|
45
|
+
"x-api-key",
|
|
46
|
+
"cookie",
|
|
47
|
+
"set-cookie",
|
|
44
48
|
"appid",
|
|
45
49
|
"app_id",
|
|
46
50
|
"agora_appid",
|
|
@@ -63,7 +67,7 @@ function redactQueryKeys(value) {
|
|
|
63
67
|
}
|
|
64
68
|
let changed = false;
|
|
65
69
|
for (const key of [...parsed.searchParams.keys()]) {
|
|
66
|
-
if (
|
|
70
|
+
if (!isSensitiveKey(key)) {
|
|
67
71
|
continue;
|
|
68
72
|
}
|
|
69
73
|
const current = parsed.searchParams.getAll(key);
|
|
@@ -110,18 +114,23 @@ export function redactSecrets(value) {
|
|
|
110
114
|
/**
|
|
111
115
|
* Redacts request headers for debug logging.
|
|
112
116
|
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
* the authorization scheme's credential, whose scheme name is preserved so the
|
|
116
|
-
* active auth mode stays visible.
|
|
117
|
+
* Non-authorization headers are kept. The authorization credential is removed,
|
|
118
|
+
* while its scheme name stays visible so the active auth mode can be diagnosed.
|
|
117
119
|
*/
|
|
118
120
|
export function redactHeadersForDebug(headers) {
|
|
119
121
|
const result = {};
|
|
120
122
|
for (const [key, value] of Object.entries(headers)) {
|
|
121
|
-
|
|
123
|
+
const normalized = key.toLowerCase();
|
|
124
|
+
const sensitive = isSensitiveKey(normalized) ||
|
|
125
|
+
["authorization", "api-key", "api_key", "token", "secret", "credential", "cookie"].some((marker) => normalized.includes(marker));
|
|
126
|
+
if (!sensitive || value.length === 0) {
|
|
122
127
|
result[key] = value;
|
|
123
128
|
continue;
|
|
124
129
|
}
|
|
130
|
+
if (normalized !== "authorization") {
|
|
131
|
+
result[key] = REDACTED;
|
|
132
|
+
continue;
|
|
133
|
+
}
|
|
125
134
|
const scheme = value.split(/[\s=]/, 1)[0];
|
|
126
135
|
result[key] = scheme && scheme !== value ? `${scheme} ${REDACTED}` : REDACTED;
|
|
127
136
|
}
|
|
@@ -29,12 +29,14 @@ export { AudioScenario, CredentialMode, DataChannel, FillerWordsSelectionRule, G
|
|
|
29
29
|
export { REDACTED, redactHeadersForDebug, redactSecrets } from "./debug.mjs";
|
|
30
30
|
export type { AgentPreset, AsrPreset, DeepgramPresetModel, LlmPreset, MiniMaxPresetModel, OpenAIPresetModel, OpenAITtsPresetModel, PresetCategory, PresetInput, TtsPreset, } from "./presets.mjs";
|
|
31
31
|
export { AgentPresets, normalizePresetInput } from "./presets.mjs";
|
|
32
|
-
export type {
|
|
33
|
-
export { createPreviewRoute,
|
|
32
|
+
export type { PreviewFeature, PreviewRoute } from "./preview/client.mjs";
|
|
33
|
+
export { createPreviewRoute, PREVIEW_API_BASE_URL, PREVIEW_FEATURE_HEADER, PreviewFeatures, previewRequestHeaders, requiredPreviewFeatures, } from "./preview/client.mjs";
|
|
34
|
+
export type { OpenAIGPTLiveOptions } from "./preview/vendors.mjs";
|
|
35
|
+
export { OpenAIGPTLive } from "./preview/vendors.mjs";
|
|
34
36
|
export type { AvatarVendor, CNAvatarVendor, CNLlmVendor, CNMllmVendor, CNSttVendor, CNTtsVendor, GlobalAvatarVendor, GlobalLlmVendor, GlobalMllmVendor, GlobalSttVendor, GlobalTtsVendor, LlmVendor, SttVendor, TtsVendor, } from "./region-vendors.mjs";
|
|
35
37
|
export type { GenerateConvoAITokenOptions, GenerateTokenOptions, } from "./token.mjs";
|
|
36
38
|
export { ExpiresIn, generateConvoAIToken, generateRtcToken, MAX_EXPIRY_SECONDS, } from "./token.mjs";
|
|
37
|
-
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, GeminiAsrParams, 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";
|
|
39
|
+
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, FillerWordsContentGeneratedConfig, FillerWordsContentSelectionRule, FillerWordsContentStaticConfig, FillerWordsGeneratedLlmProvider, FillerWordsTrigger, FillerWordsTriggerFixedTimeConfig, FishAudioTts, FishAudioTtsParams, GeminiAsrParams, GenericTts, GenericTtsParams, GeofenceArea, GeofenceConfig, GeofenceExcludeArea, GetTurnsOptions, GoogleTts, GoogleTtsParams, GradiumTts, GradiumTtsParams, HumeAiTts, HumeAiTtsParams, InterruptionConfig, InterruptionMode, InterruptMode, Labels, LlmConfig, LlmGreetingConfigs, LlmGreetingConfigsMode, LlmStyle, LlmTool, LlmToolExecution, LlmToolFunction, LlmToolServer, 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";
|
|
38
40
|
export type { AkoolAvatarOptions, AnamAvatarOptions, GenericAvatarOptions, HeyGenAvatarOptions, LiveAvatarAvatarOptions, } from "./vendors/avatar.mjs";
|
|
39
41
|
export { AkoolAvatar, AnamAvatar, GenericAvatar, HeyGenAvatar, LiveAvatarAvatar, } from "./vendors/avatar.mjs";
|
|
40
42
|
export type { AkoolSampleRate, CartesiaSampleRate, ElevenLabsSampleRate, HeyGenSampleRate, LiveAvatarSampleRate, MicrosoftSampleRate, SampleRate, } from "./vendors/base.mjs";
|
|
@@ -45,7 +47,7 @@ export type { AmazonBedrockOptions, AnthropicOptions, AzureOpenAIOptions, Custom
|
|
|
45
47
|
export { AmazonBedrock, Anthropic, AzureOpenAI, CustomLLM, Dify, Gemini, Groq, OpenAI, VertexAILLM, } from "./vendors/llm.mjs";
|
|
46
48
|
export type { AzureOpenAIRealtimeOptions, AzureOpenAIRealtimeParams, GeminiLiveOptions, OpenAIRealtimeOptions, QwenOmniOptions, VertexAIOptions, XaiGrokOptions, } from "./vendors/mllm.mjs";
|
|
47
49
|
export { AzureOpenAIRealtime, GeminiLive, OpenAIRealtime, QwenOmni, VertexAI, XaiGrok, } from "./vendors/mllm.mjs";
|
|
48
|
-
export type { AmazonSTTOptions, AresSTTOptions, AssemblyAISTTOptions, DeepgramSTTOptions, GoogleSTTOptions, MicrosoftSTTOptions, OpenAISTTOptions, SarvamSTTOptions, SpeechmaticsSTTOptions, XAiSTTOptions, } from "./vendors/stt.mjs";
|
|
49
|
-
export { AmazonSTT, AresSTT, AssemblyAISTT, DeepgramSTT, GoogleSTT, MicrosoftSTT, OpenAISTT, SarvamSTT, SpeechmaticsSTT, XAiSTT, } from "./vendors/stt.mjs";
|
|
50
|
+
export type { AmazonSTTOptions, AresSTTOptions, AssemblyAISTTOptions, DeepgramSTTOptions, GeminiSTTModel, GeminiSTTOptions, GoogleSTTOptions, MicrosoftSTTOptions, OpenAISTTOptions, SarvamSTTOptions, SpeechmaticsSTTOptions, XAiSTTOptions, } from "./vendors/stt.mjs";
|
|
51
|
+
export { AmazonSTT, AresSTT, AssemblyAISTT, DeepgramSTT, GeminiSTT, GeminiSTTModels, GeminiTranscriptionMode, GoogleSTT, MicrosoftSTT, OpenAISTT, SarvamSTT, SpeechmaticsSTT, XAiSTT, } from "./vendors/stt.mjs";
|
|
50
52
|
export type { AmazonTTSOptions, CartesiaTTSOptions, DeepgramTTSOptions, ElevenLabsTTSOptions, FishAudioTTSOptions, GenericTTSOptions, GoogleTTSOptions, GradiumTTSOptions, HumeAITTSOptions, MicrosoftTTSOptions, MiniMaxTTSOptions, MistralTTSOptions, MurfTTSOptions, OpenAITTSOptions, RimeTTSOptions, SarvamTTSOptions, TypecastTTSOptions, XAiTTSOptions, } from "./vendors/tts.mjs";
|
|
51
53
|
export { AmazonTTS, CartesiaTTS, DeepgramTTS, ElevenLabsTTS, FishAudioTTS, GenericTTS, GoogleTTS, GradiumTTS, HumeAITTS, MicrosoftTTS, MiniMaxTTS, MistralTTS, MurfTTS, OpenAITTS, RimeTTS, SarvamTTS, TypecastTTS, XAiTTS, } from "./vendors/tts.mjs";
|
|
@@ -26,7 +26,8 @@ export { isAkoolAvatar, isAnamAvatar, isAvatarTokenManaged, isGenericAvatar, isH
|
|
|
26
26
|
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";
|
|
27
27
|
export { REDACTED, redactHeadersForDebug, redactSecrets } from "./debug.mjs";
|
|
28
28
|
export { AgentPresets, normalizePresetInput } from "./presets.mjs";
|
|
29
|
-
export { createPreviewRoute,
|
|
29
|
+
export { createPreviewRoute, PREVIEW_API_BASE_URL, PREVIEW_FEATURE_HEADER, PreviewFeatures, previewRequestHeaders, requiredPreviewFeatures, } from "./preview/client.mjs";
|
|
30
|
+
export { OpenAIGPTLive } from "./preview/vendors.mjs";
|
|
30
31
|
// Token generation
|
|
31
32
|
export { ExpiresIn, generateConvoAIToken, generateRtcToken, MAX_EXPIRY_SECONDS, } from "./token.mjs";
|
|
32
33
|
// Avatar vendor classes
|
|
@@ -39,6 +40,6 @@ export { AmazonBedrock, Anthropic, AzureOpenAI, CustomLLM, Dify, Gemini, Groq, O
|
|
|
39
40
|
// MLLM vendor classes
|
|
40
41
|
export { AzureOpenAIRealtime, GeminiLive, OpenAIRealtime, QwenOmni, VertexAI, XaiGrok, } from "./vendors/mllm.mjs";
|
|
41
42
|
// STT vendor classes
|
|
42
|
-
export { AmazonSTT, AresSTT, AssemblyAISTT, DeepgramSTT, GoogleSTT, MicrosoftSTT, OpenAISTT, SarvamSTT, SpeechmaticsSTT, XAiSTT, } from "./vendors/stt.mjs";
|
|
43
|
+
export { AmazonSTT, AresSTT, AssemblyAISTT, DeepgramSTT, GeminiSTT, GeminiSTTModels, GeminiTranscriptionMode, GoogleSTT, MicrosoftSTT, OpenAISTT, SarvamSTT, SpeechmaticsSTT, XAiSTT, } from "./vendors/stt.mjs";
|
|
43
44
|
// TTS vendor classes
|
|
44
45
|
export { AmazonTTS, CartesiaTTS, DeepgramTTS, ElevenLabsTTS, FishAudioTTS, GenericTTS, GoogleTTS, GradiumTTS, HumeAITTS, MicrosoftTTS, MiniMaxTTS, MistralTTS, MurfTTS, OpenAITTS, RimeTTS, SarvamTTS, TypecastTTS, XAiTTS, } from "./vendors/tts.mjs";
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* and binds that session to the preview host while ordinary AgoraClient calls
|
|
8
8
|
* remain on the regional production endpoint.
|
|
9
9
|
*
|
|
10
|
-
* Everything under `agentkit/preview/` is temporary. When
|
|
11
|
-
*
|
|
12
|
-
* into
|
|
10
|
+
* Everything under `agentkit/preview/` is temporary. When a provider ships on
|
|
11
|
+
* the production gateway, remove its preview registration and move its class
|
|
12
|
+
* into the corresponding production vendor module.
|
|
13
13
|
*/
|
|
14
14
|
import type { AgoraClient } from "../../AgoraPoolClient.mjs";
|
|
15
15
|
import type * as Agora from "../../api/index.mjs";
|
|
@@ -31,10 +31,11 @@ export declare const PREVIEW_FEATURE_HEADER = "agora-feature";
|
|
|
31
31
|
* preview endpoint.
|
|
32
32
|
*/
|
|
33
33
|
export declare const PreviewFeatures: {
|
|
34
|
-
/** Gemini
|
|
34
|
+
/** @deprecated Gemini ASR now uses the production endpoint. */
|
|
35
35
|
readonly GeminiLive: "gemini-live";
|
|
36
|
+
readonly LiveModels: "live-models";
|
|
36
37
|
};
|
|
37
|
-
/** A preview provider family
|
|
38
|
+
/** A preview provider family gate value. */
|
|
38
39
|
export type PreviewFeature = (typeof PreviewFeatures)[keyof typeof PreviewFeatures];
|
|
39
40
|
/** Session-scoped clients bound to one resolved route. */
|
|
40
41
|
export interface PreviewRoute {
|