agora-agents 2.9.0 → 2.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/agentkit/Agent.js +4 -3
  3. package/dist/cjs/agentkit/index.d.ts +10 -10
  4. package/dist/cjs/agentkit/index.js +13 -8
  5. package/dist/cjs/agentkit/preview/client.d.ts +5 -17
  6. package/dist/cjs/agentkit/preview/client.js +18 -84
  7. package/dist/cjs/agentkit/preview/gemini-tts.d.ts +31 -0
  8. package/dist/cjs/agentkit/preview/gemini-tts.js +32 -0
  9. package/dist/cjs/agentkit/preview/index.d.ts +6 -2
  10. package/dist/cjs/agentkit/preview/index.js +7 -2
  11. package/dist/cjs/agentkit/preview/vendors.d.ts +8 -104
  12. package/dist/cjs/agentkit/preview/vendors.js +14 -115
  13. package/dist/cjs/agentkit/types.d.ts +12 -5
  14. package/dist/cjs/agentkit/vendors/base.d.ts +15 -4
  15. package/dist/cjs/agentkit/vendors/base.js +16 -5
  16. package/dist/cjs/agentkit/vendors/cn.js +2 -2
  17. package/dist/cjs/agentkit/vendors/llm.js +2 -2
  18. package/dist/cjs/agentkit/vendors/mllm.d.ts +92 -10
  19. package/dist/cjs/agentkit/vendors/mllm.js +115 -18
  20. package/dist/cjs/agentkit/vendors/stt.d.ts +41 -0
  21. package/dist/cjs/agentkit/vendors/stt.js +18 -1
  22. package/dist/cjs/agentkit/vendors/tts.d.ts +27 -0
  23. package/dist/cjs/agentkit/vendors/tts.js +16 -1
  24. package/dist/cjs/api/resources/agents/client/requests/StartAgentsRequest.d.ts +11 -5
  25. package/dist/cjs/api/resources/agents/client/requests/StartAgentsRequest.js +3 -1
  26. package/dist/cjs/api/types/AnamAvatarParams.d.ts +42 -0
  27. package/dist/cjs/api/types/AnamAvatarParams.js +18 -0
  28. package/dist/cjs/api/types/Asr.d.ts +4 -1
  29. package/dist/cjs/api/types/LlmTool.d.ts +7 -0
  30. package/dist/cjs/api/types/McpServer.d.ts +24 -0
  31. package/dist/cjs/api/types/McpServer.js +3 -0
  32. package/dist/cjs/api/types/Mllm.d.ts +14 -0
  33. package/dist/cjs/api/types/SmallestAiAsr.d.ts +11 -0
  34. package/dist/cjs/api/types/SmallestAiAsr.js +3 -0
  35. package/dist/cjs/api/types/SmallestAiAsrParams.d.ts +49 -0
  36. package/dist/cjs/api/types/SmallestAiAsrParams.js +3 -0
  37. package/dist/cjs/api/types/SmallestAiTts.d.ts +9 -0
  38. package/dist/cjs/api/types/SmallestAiTts.js +3 -0
  39. package/dist/cjs/api/types/SmallestAiTtsParams.d.ts +31 -0
  40. package/dist/cjs/api/types/SmallestAiTtsParams.js +3 -0
  41. package/dist/cjs/api/types/Tts.d.ts +4 -1
  42. package/dist/cjs/api/types/index.d.ts +6 -0
  43. package/dist/cjs/api/types/index.js +6 -0
  44. package/dist/cjs/index.d.ts +4 -2
  45. package/dist/cjs/index.js +10 -3
  46. package/dist/cjs/version.d.ts +1 -1
  47. package/dist/cjs/version.js +1 -1
  48. package/dist/esm/BaseClient.mjs +2 -2
  49. package/dist/esm/agentkit/Agent.mjs +3 -2
  50. package/dist/esm/agentkit/index.d.mts +10 -10
  51. package/dist/esm/agentkit/index.mjs +4 -4
  52. package/dist/esm/agentkit/preview/client.d.mts +5 -17
  53. package/dist/esm/agentkit/preview/client.mjs +18 -84
  54. package/dist/esm/agentkit/preview/gemini-tts.d.mts +31 -0
  55. package/dist/esm/agentkit/preview/gemini-tts.mjs +28 -0
  56. package/dist/esm/agentkit/preview/index.d.mts +6 -2
  57. package/dist/esm/agentkit/preview/index.mjs +3 -1
  58. package/dist/esm/agentkit/preview/vendors.d.mts +8 -104
  59. package/dist/esm/agentkit/preview/vendors.mjs +5 -112
  60. package/dist/esm/agentkit/types.d.mts +12 -5
  61. package/dist/esm/agentkit/vendors/base.d.mts +15 -4
  62. package/dist/esm/agentkit/vendors/base.mjs +16 -5
  63. package/dist/esm/agentkit/vendors/cn.mjs +2 -2
  64. package/dist/esm/agentkit/vendors/llm.mjs +2 -2
  65. package/dist/esm/agentkit/vendors/mllm.d.mts +92 -10
  66. package/dist/esm/agentkit/vendors/mllm.mjs +111 -16
  67. package/dist/esm/agentkit/vendors/stt.d.mts +41 -0
  68. package/dist/esm/agentkit/vendors/stt.mjs +16 -0
  69. package/dist/esm/agentkit/vendors/tts.d.mts +27 -0
  70. package/dist/esm/agentkit/vendors/tts.mjs +14 -0
  71. package/dist/esm/api/resources/agents/client/requests/StartAgentsRequest.d.mts +11 -5
  72. package/dist/esm/api/resources/agents/client/requests/StartAgentsRequest.mjs +3 -1
  73. package/dist/esm/api/types/AnamAvatarParams.d.mts +42 -0
  74. package/dist/esm/api/types/AnamAvatarParams.mjs +15 -0
  75. package/dist/esm/api/types/Asr.d.mts +4 -1
  76. package/dist/esm/api/types/LlmTool.d.mts +7 -0
  77. package/dist/esm/api/types/McpServer.d.mts +24 -0
  78. package/dist/esm/api/types/McpServer.mjs +2 -0
  79. package/dist/esm/api/types/Mllm.d.mts +14 -0
  80. package/dist/esm/api/types/SmallestAiAsr.d.mts +11 -0
  81. package/dist/esm/api/types/SmallestAiAsr.mjs +2 -0
  82. package/dist/esm/api/types/SmallestAiAsrParams.d.mts +49 -0
  83. package/dist/esm/api/types/SmallestAiAsrParams.mjs +2 -0
  84. package/dist/esm/api/types/SmallestAiTts.d.mts +9 -0
  85. package/dist/esm/api/types/SmallestAiTts.mjs +2 -0
  86. package/dist/esm/api/types/SmallestAiTtsParams.d.mts +31 -0
  87. package/dist/esm/api/types/SmallestAiTtsParams.mjs +2 -0
  88. package/dist/esm/api/types/Tts.d.mts +4 -1
  89. package/dist/esm/api/types/index.d.mts +6 -0
  90. package/dist/esm/api/types/index.mjs +6 -0
  91. package/dist/esm/index.d.mts +4 -2
  92. package/dist/esm/index.mjs +3 -2
  93. package/dist/esm/version.d.mts +1 -1
  94. package/dist/esm/version.mjs +1 -1
  95. package/package.json +1 -1
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Smallest AI ASR configuration parameters.
3
+ */
4
+ export interface SmallestAiAsrParams {
5
+ /** Language code for speech recognition. This takes precedence over the top-level `asr.language` value. */
6
+ language?: string;
7
+ /** WebSocket endpoint for the Smallest AI streaming STT API. */
8
+ url?: string;
9
+ /** Smallest AI API key. */
10
+ api_key: string;
11
+ /** Input audio sample rate in Hz. */
12
+ sample_rate?: number;
13
+ /** Input audio encoding. */
14
+ encoding?: string;
15
+ /** Whether to include word-level timestamps. */
16
+ word_timestamps?: string;
17
+ /** Whether to include sentence-level timestamps. */
18
+ sentence_timestamps?: string;
19
+ /** Whether to enable speaker diarization. */
20
+ diarize?: string;
21
+ /** Whether to return voice activity detection events. */
22
+ vad_events?: string;
23
+ /** Whether to enable endpoint detection. */
24
+ endpointing?: string;
25
+ /** End-of-utterance timeout in milliseconds. */
26
+ eou_timeout_ms?: number;
27
+ /** Whether to format the transcript. */
28
+ format?: string;
29
+ /** Whether to finalize results based on recognized words. */
30
+ finalize_on_words?: string;
31
+ /** Maximum number of words per result. */
32
+ max_words?: string;
33
+ /** Whether to add punctuation. */
34
+ punctuate?: string;
35
+ /** Whether to capitalize transcript text. */
36
+ capitalize?: string;
37
+ /** Whether to enable inverse text normalization. */
38
+ itn_normalize?: string;
39
+ /** Whether to return the full transcript. */
40
+ full_transcript?: string;
41
+ /** Comma-separated keyword boosts in `keyword:weight` format. */
42
+ keywords?: string;
43
+ /** Whether to redact personally identifiable information. */
44
+ redact_pii?: string;
45
+ /** Whether to redact payment card information. */
46
+ redact_pci?: string;
47
+ /** Accepts any additional properties */
48
+ [key: string]: any;
49
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import type * as Agora from "../index.js";
2
+ /**
3
+ * Smallest AI Text-to-Speech configuration.
4
+ */
5
+ export interface SmallestAiTts {
6
+ params: Agora.SmallestAiTtsParams;
7
+ /** Controls whether the TTS module skips bracketed content when reading LLM response text. */
8
+ skip_patterns?: number[];
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Smallest AI TTS configuration parameters.
3
+ */
4
+ export interface SmallestAiTtsParams {
5
+ /** HTTP endpoint for the Smallest AI streaming TTS API. */
6
+ url?: string;
7
+ /** Smallest AI API key. */
8
+ api_key: string;
9
+ /** Smallest AI TTS model name. */
10
+ model?: string;
11
+ /** Smallest AI voice identifier. */
12
+ voice_id?: string;
13
+ /** Output audio sample rate in Hz. */
14
+ sample_rate?: number;
15
+ /** Speech rate multiplier. */
16
+ speed?: number;
17
+ /** Language code for speech synthesis. */
18
+ language?: string;
19
+ /** Language used to pronounce numbers. */
20
+ number_pronunciation_language?: string;
21
+ /** Whether to verbalize mathematical notation. */
22
+ math_notation?: boolean;
23
+ /** Pronunciation dictionaries applied during synthesis. */
24
+ pronunciation_dicts?: string[];
25
+ /** Client-provided session identifier. */
26
+ session_id?: string;
27
+ /** Client-provided request identifier. */
28
+ request_id?: string;
29
+ /** Accepts any additional properties */
30
+ [key: string]: any;
31
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 | Agora.Tts.Typecast;
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 | Agora.Tts.Smallestai;
3
3
  export declare namespace Tts {
4
4
  interface Tencent extends Agora.TencentTts {
5
5
  vendor: "tencent";
@@ -70,4 +70,7 @@ export declare namespace Tts {
70
70
  interface Typecast extends Agora.TypecastTts {
71
71
  vendor: "typecast";
72
72
  }
73
+ interface Smallestai extends Agora.SmallestAiTts {
74
+ vendor: "smallestai";
75
+ }
73
76
  }
@@ -3,6 +3,7 @@ export * from "./AmazonAsr.js";
3
3
  export * from "./AmazonAsrParams.js";
4
4
  export * from "./AmazonTts.js";
5
5
  export * from "./AmazonTtsParams.js";
6
+ export * from "./AnamAvatarParams.js";
6
7
  export * from "./AresAsr.js";
7
8
  export * from "./AresAsrParams.js";
8
9
  export * from "./Asr.js";
@@ -49,6 +50,7 @@ export * from "./LlmTool.js";
49
50
  export * from "./LlmToolExecution.js";
50
51
  export * from "./LlmToolFunction.js";
51
52
  export * from "./LlmToolServer.js";
53
+ export * from "./McpServer.js";
52
54
  export * from "./MicrosoftAsr.js";
53
55
  export * from "./MicrosoftAsrParams.js";
54
56
  export * from "./MicrosoftTts.js";
@@ -76,6 +78,10 @@ export * from "./SarvamAsrParams.js";
76
78
  export * from "./SarvamTts.js";
77
79
  export * from "./SarvamTtsParams.js";
78
80
  export * from "./SensetimeAvatarParams.js";
81
+ export * from "./SmallestAiAsr.js";
82
+ export * from "./SmallestAiAsrParams.js";
83
+ export * from "./SmallestAiTts.js";
84
+ export * from "./SmallestAiTtsParams.js";
79
85
  export * from "./SpatiusAvatarParams.js";
80
86
  export * from "./SpeechmaticsAsr.js";
81
87
  export * from "./SpeechmaticsAsrParams.js";
@@ -19,6 +19,7 @@ __exportStar(require("./AmazonAsr.js"), exports);
19
19
  __exportStar(require("./AmazonAsrParams.js"), exports);
20
20
  __exportStar(require("./AmazonTts.js"), exports);
21
21
  __exportStar(require("./AmazonTtsParams.js"), exports);
22
+ __exportStar(require("./AnamAvatarParams.js"), exports);
22
23
  __exportStar(require("./AresAsr.js"), exports);
23
24
  __exportStar(require("./AresAsrParams.js"), exports);
24
25
  __exportStar(require("./Asr.js"), exports);
@@ -65,6 +66,7 @@ __exportStar(require("./LlmTool.js"), exports);
65
66
  __exportStar(require("./LlmToolExecution.js"), exports);
66
67
  __exportStar(require("./LlmToolFunction.js"), exports);
67
68
  __exportStar(require("./LlmToolServer.js"), exports);
69
+ __exportStar(require("./McpServer.js"), exports);
68
70
  __exportStar(require("./MicrosoftAsr.js"), exports);
69
71
  __exportStar(require("./MicrosoftAsrParams.js"), exports);
70
72
  __exportStar(require("./MicrosoftTts.js"), exports);
@@ -92,6 +94,10 @@ __exportStar(require("./SarvamAsrParams.js"), exports);
92
94
  __exportStar(require("./SarvamTts.js"), exports);
93
95
  __exportStar(require("./SarvamTtsParams.js"), exports);
94
96
  __exportStar(require("./SensetimeAvatarParams.js"), exports);
97
+ __exportStar(require("./SmallestAiAsr.js"), exports);
98
+ __exportStar(require("./SmallestAiAsrParams.js"), exports);
99
+ __exportStar(require("./SmallestAiTts.js"), exports);
100
+ __exportStar(require("./SmallestAiTtsParams.js"), exports);
95
101
  __exportStar(require("./SpatiusAvatarParams.js"), exports);
96
102
  __exportStar(require("./SpeechmaticsAsr.js"), exports);
97
103
  __exportStar(require("./SpeechmaticsAsrParams.js"), exports);
@@ -1,8 +1,10 @@
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, FillerWordsContentGeneratedConfig, FillerWordsContentSelectionRule, FillerWordsContentStaticConfig, FillerWordsGeneratedLlmProvider, FillerWordsTrigger, FillerWordsTriggerFixedTimeConfig, FishAudioTTSOptions, FishAudioTts, FishAudioTtsParams, GeminiAsrParams, GeminiLiveModel, GeminiLiveOptions, GeminiOptions, GeminiPreviewVoice, GeminiSTTModel, GeminiSTTOptions, GeminiThinkingLevel, 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_MLLM_DEFAULT_MODEL, GEMINI_PREVIEW_MLLM_URL, Gemini, GeminiLive, GeminiLiveModels, GeminiSTT, GeminiSTTModels, GeminiThinkingLevels, 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";
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, BaseMllmOptions, 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, GeminiLiveModel, GeminiLiveOptions, GeminiLiveVoice, GeminiOptions, GeminiPreviewVoice, GeminiSTTModel, GeminiSTTOptions, GeminiThinkingLevel, 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, McpServer, 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, SmallestAISTTOptions, SmallestAITTSOptions, SmallestAiAsr, SmallestAiAsrParams, SmallestAiTts, SmallestAiTtsParams, 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_MLLM_DEFAULT_MODEL, GEMINI_MLLM_URL, GEMINI_PREVIEW_MLLM_URL, Gemini, GeminiLive, GeminiLiveModels, GeminiSTT, GeminiSTTModels, GeminiThinkingLevels, 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, SmallestAISTT, SmallestAITTS, 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
+ export type { GeminiTTSConfig, GeminiTTSModel, GeminiTTSOptions } from "./agentkit/preview/gemini-tts.js";
7
+ export { GeminiTTS, GeminiTTSModels } from "./agentkit/preview/gemini-tts.js";
6
8
  export * as Agora from "./api/index.js";
7
9
  export type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
8
10
  export { Area } from "./core/domain/index.js";
package/dist/cjs/index.js CHANGED
@@ -36,9 +36,10 @@ 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.GeminiSTT = exports.GeminiLiveModels = exports.GeminiLive = exports.Gemini = exports.GEMINI_PREVIEW_MLLM_URL = exports.GEMINI_MLLM_DEFAULT_MODEL = 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.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 = exports.GenericAvatar = exports.GeminiTranscriptionMode = exports.GeminiThinkingLevels = exports.GeminiSTTModels = 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 = exports.REDACTED = exports.QwenOmni = exports.previewRequestHeaders = exports.PreviewFeatures = void 0;
39
+ exports.GeminiLiveModels = exports.GeminiLive = exports.Gemini = exports.GEMINI_PREVIEW_MLLM_URL = exports.GEMINI_MLLM_URL = exports.GEMINI_MLLM_DEFAULT_MODEL = 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.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 = exports.GenericAvatar = exports.GeminiTranscriptionMode = exports.GeminiThinkingLevels = exports.GeminiSTTModels = exports.GeminiSTT = void 0;
41
+ exports.AgoraEnvironment = exports.Area = exports.Agora = exports.GeminiTTSModels = exports.GeminiTTS = 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.SmallestAITTS = exports.SmallestAISTT = exports.SilenceActionValues = exports.SensetimeAvatar = exports.SarvamTTS = exports.SarvamSTT = exports.SalModeValues = exports.redactSecrets = exports.redactHeadersForDebug = exports.RimeTTS = exports.REDACTED = exports.QwenOmni = exports.previewRequestHeaders = exports.PreviewFeatures = exports.PREVIEW_FEATURE_HEADER = void 0;
42
+ exports.AgoraTimeoutError = exports.AgoraError = void 0;
42
43
  var AgoraPoolClient_js_1 = require("./AgoraPoolClient.js");
43
44
  Object.defineProperty(exports, "AgoraClient", { enumerable: true, get: function () { return AgoraPoolClient_js_1.AgoraClient; } });
44
45
  // Agentkit layer exports - clean, ergonomic API
@@ -89,6 +90,7 @@ Object.defineProperty(exports, "FengmingSTT", { enumerable: true, get: function
89
90
  Object.defineProperty(exports, "FillerWordsSelectionRule", { enumerable: true, get: function () { return index_js_1.FillerWordsSelectionRule; } });
90
91
  Object.defineProperty(exports, "FishAudioTTS", { enumerable: true, get: function () { return index_js_1.FishAudioTTS; } });
91
92
  Object.defineProperty(exports, "GEMINI_MLLM_DEFAULT_MODEL", { enumerable: true, get: function () { return index_js_1.GEMINI_MLLM_DEFAULT_MODEL; } });
93
+ Object.defineProperty(exports, "GEMINI_MLLM_URL", { enumerable: true, get: function () { return index_js_1.GEMINI_MLLM_URL; } });
92
94
  Object.defineProperty(exports, "GEMINI_PREVIEW_MLLM_URL", { enumerable: true, get: function () { return index_js_1.GEMINI_PREVIEW_MLLM_URL; } });
93
95
  Object.defineProperty(exports, "Gemini", { enumerable: true, get: function () { return index_js_1.Gemini; } });
94
96
  Object.defineProperty(exports, "GeminiLive", { enumerable: true, get: function () { return index_js_1.GeminiLive; } });
@@ -159,6 +161,8 @@ Object.defineProperty(exports, "SarvamSTT", { enumerable: true, get: function ()
159
161
  Object.defineProperty(exports, "SarvamTTS", { enumerable: true, get: function () { return index_js_1.SarvamTTS; } });
160
162
  Object.defineProperty(exports, "SensetimeAvatar", { enumerable: true, get: function () { return index_js_1.SensetimeAvatar; } });
161
163
  Object.defineProperty(exports, "SilenceActionValues", { enumerable: true, get: function () { return index_js_1.SilenceActionValues; } });
164
+ Object.defineProperty(exports, "SmallestAISTT", { enumerable: true, get: function () { return index_js_1.SmallestAISTT; } });
165
+ Object.defineProperty(exports, "SmallestAITTS", { enumerable: true, get: function () { return index_js_1.SmallestAITTS; } });
162
166
  Object.defineProperty(exports, "SpatiusAvatar", { enumerable: true, get: function () { return index_js_1.SpatiusAvatar; } });
163
167
  Object.defineProperty(exports, "SpeakPriorityAppend", { enumerable: true, get: function () { return index_js_1.SpeakPriorityAppend; } });
164
168
  Object.defineProperty(exports, "SpeakPriorityIgnore", { enumerable: true, get: function () { return index_js_1.SpeakPriorityIgnore; } });
@@ -190,6 +194,9 @@ Object.defineProperty(exports, "XaiGrok", { enumerable: true, get: function () {
190
194
  Object.defineProperty(exports, "XfyunBigModelSTT", { enumerable: true, get: function () { return index_js_1.XfyunBigModelSTT; } });
191
195
  Object.defineProperty(exports, "XfyunDialectSTT", { enumerable: true, get: function () { return index_js_1.XfyunDialectSTT; } });
192
196
  Object.defineProperty(exports, "XfyunSTT", { enumerable: true, get: function () { return index_js_1.XfyunSTT; } });
197
+ var gemini_tts_js_1 = require("./agentkit/preview/gemini-tts.js");
198
+ Object.defineProperty(exports, "GeminiTTS", { enumerable: true, get: function () { return gemini_tts_js_1.GeminiTTS; } });
199
+ Object.defineProperty(exports, "GeminiTTSModels", { enumerable: true, get: function () { return gemini_tts_js_1.GeminiTTSModels; } });
193
200
  exports.Agora = __importStar(require("./api/index.js"));
194
201
  var index_js_2 = require("./core/domain/index.js");
195
202
  Object.defineProperty(exports, "Area", { enumerable: true, get: function () { return index_js_2.Area; } });
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v2.9.0";
1
+ export declare const SDK_VERSION = "v2.11.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "v2.9.0";
4
+ exports.SDK_VERSION = "v2.11.0";
@@ -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.0",
9
- "User-Agent": "agora-agents/v2.9.0",
8
+ "X-Fern-SDK-Version": "v2.11.0",
9
+ "User-Agent": "agora-agents/v2.11.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);
@@ -8,11 +8,11 @@
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";
12
11
  import { generateConvoAIToken } from "./token.mjs";
12
+ import { isOpenAIGPTLiveConfig } from "./vendors/mllm.mjs";
13
13
  const DEFAULT_TURN_DETECTION_LANGUAGE = "en-US";
14
14
  function toGeneratedMllm(config) {
15
- // The preview vendor predates its generated schema enum. Keep the assertion at
15
+ // GPT Live is not yet present in the generated schema enum. Keep the assertion at
16
16
  // this wire boundary so the public and builder APIs remain accurately typed.
17
17
  return config;
18
18
  }
@@ -693,6 +693,7 @@ export class Agent {
693
693
  const asrConfig = this._stt !== undefined || !allowMissingAsr
694
694
  ? this._resolveAsrConfig(turnDetectionConfig)
695
695
  : undefined;
696
+ // Preview TTS extends the production schema; narrow only at the generated wire boundary.
696
697
  const ttsConfig = this._tts;
697
698
  return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, base), { turn_detection: turnDetectionConfig }), (llmConfig && { llm: llmConfig })), (ttsConfig && { tts: ttsConfig })), (asrConfig && { asr: asrConfig }));
698
699
  }
@@ -31,23 +31,23 @@ export type { AgentPreset, AsrPreset, DeepgramPresetModel, LlmPreset, MiniMaxPre
31
31
  export { AgentPresets, normalizePresetInput } from "./presets.mjs";
32
32
  export type { PreviewFeature, PreviewRoute } from "./preview/client.mjs";
33
33
  export { createPreviewRoute, PREVIEW_API_BASE_URL, PREVIEW_FEATURE_HEADER, PreviewFeatures, previewRequestHeaders, requiredPreviewFeatures, } from "./preview/client.mjs";
34
- export type { GeminiLiveModel, GeminiPreviewVoice, GeminiThinkingLevel, OpenAIGPTLiveOptions, } from "./preview/vendors.mjs";
35
- export { GEMINI_MLLM_DEFAULT_MODEL, GEMINI_PREVIEW_MLLM_URL, GeminiLiveModels, GeminiThinkingLevels, OpenAIGPTLive, } from "./preview/vendors.mjs";
34
+ export type { GeminiTTSConfig, GeminiTTSModel, GeminiTTSOptions } from "./preview/gemini-tts.mjs";
35
+ export { GeminiTTS, GeminiTTSModels } from "./preview/gemini-tts.mjs";
36
36
  export type { AvatarVendor, CNAvatarVendor, CNLlmVendor, CNMllmVendor, CNSttVendor, CNTtsVendor, GlobalAvatarVendor, GlobalLlmVendor, GlobalMllmVendor, GlobalSttVendor, GlobalTtsVendor, LlmVendor, SttVendor, TtsVendor, } from "./region-vendors.mjs";
37
37
  export type { GenerateConvoAITokenOptions, GenerateTokenOptions, } from "./token.mjs";
38
38
  export { ExpiresIn, generateConvoAIToken, generateRtcToken, MAX_EXPIRY_SECONDS, } from "./token.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";
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, McpServer, 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, SmallestAiAsr, SmallestAiAsrParams, SmallestAiTts, SmallestAiTtsParams, 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";
40
40
  export type { AkoolAvatarOptions, AnamAvatarOptions, GenericAvatarOptions, HeyGenAvatarOptions, LiveAvatarAvatarOptions, } from "./vendors/avatar.mjs";
41
41
  export { AkoolAvatar, AnamAvatar, GenericAvatar, HeyGenAvatar, LiveAvatarAvatar, } from "./vendors/avatar.mjs";
42
42
  export type { AkoolSampleRate, CartesiaSampleRate, ElevenLabsSampleRate, HeyGenSampleRate, LiveAvatarSampleRate, MicrosoftSampleRate, SampleRate, } from "./vendors/base.mjs";
43
- export { BaseAvatar, BaseCNAvatar, BaseCNLLM, BaseCNMLLM, BaseCNSTT, BaseCNTTS, BaseLLM, type BaseLlmOptions, BaseMLLM, BaseSTT, BaseTTS, type GoogleTTSSampleRate, } from "./vendors/base.mjs";
43
+ export { BaseAvatar, BaseCNAvatar, BaseCNLLM, BaseCNMLLM, BaseCNSTT, BaseCNTTS, BaseLLM, type BaseLlmOptions, BaseMLLM, type BaseMllmOptions, BaseSTT, BaseTTS, type GoogleTTSSampleRate, } from "./vendors/base.mjs";
44
44
  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";
45
45
  export { AliyunLLM, BytedanceDuplexTTS, BytedanceLLM, BytedanceTTS, CosyVoiceTTS, DeepSeekLLM, FengmingSTT, MicrosoftCNSTT, MicrosoftCNTTS, MiniMaxCNTTS, SensetimeAvatar, SpatiusAvatar, StepFunTTS, TencentLLM, TencentSTT, TencentTTS, XfyunBigModelSTT, XfyunDialectSTT, XfyunSTT, } from "./vendors/cn.mjs";
46
46
  export type { AmazonBedrockOptions, AnthropicOptions, AzureOpenAIOptions, CustomLLMOptions, DifyOptions, GeminiOptions, GroqOptions, OpenAIOptions, VertexAILLMOptions, } from "./vendors/llm.mjs";
47
47
  export { AmazonBedrock, Anthropic, AzureOpenAI, CustomLLM, Dify, Gemini, Groq, OpenAI, VertexAILLM, } from "./vendors/llm.mjs";
48
- export type { AzureOpenAIRealtimeOptions, AzureOpenAIRealtimeParams, GeminiLiveOptions, OpenAIRealtimeOptions, QwenOmniOptions, VertexAIOptions, XaiGrokOptions, } from "./vendors/mllm.mjs";
49
- export { AzureOpenAIRealtime, GeminiLive, OpenAIRealtime, QwenOmni, VertexAI, XaiGrok, } from "./vendors/mllm.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";
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";
53
- export { AmazonTTS, CartesiaTTS, DeepgramTTS, ElevenLabsTTS, FishAudioTTS, GenericTTS, GoogleTTS, GradiumTTS, HumeAITTS, MicrosoftTTS, MiniMaxTTS, MistralTTS, MurfTTS, OpenAITTS, RimeTTS, SarvamTTS, TypecastTTS, XAiTTS, } from "./vendors/tts.mjs";
48
+ export type { AzureOpenAIRealtimeOptions, AzureOpenAIRealtimeParams, GeminiLiveModel, GeminiLiveOptions, GeminiLiveVoice, GeminiPreviewVoice, GeminiThinkingLevel, OpenAIGPTLiveOptions, OpenAIRealtimeOptions, QwenOmniOptions, VertexAIOptions, XaiGrokOptions, } from "./vendors/mllm.mjs";
49
+ export { AzureOpenAIRealtime, GEMINI_MLLM_DEFAULT_MODEL, GEMINI_MLLM_URL, GEMINI_PREVIEW_MLLM_URL, GeminiLive, GeminiLiveModels, GeminiThinkingLevels, OpenAIGPTLive, OpenAIRealtime, QwenOmni, VertexAI, XaiGrok, } from "./vendors/mllm.mjs";
50
+ export type { AmazonSTTOptions, AresSTTOptions, AssemblyAISTTOptions, DeepgramSTTOptions, GeminiSTTModel, GeminiSTTOptions, GoogleSTTOptions, MicrosoftSTTOptions, OpenAISTTOptions, SarvamSTTOptions, SmallestAISTTOptions, SpeechmaticsSTTOptions, XAiSTTOptions, } from "./vendors/stt.mjs";
51
+ export { AmazonSTT, AresSTT, AssemblyAISTT, DeepgramSTT, GeminiSTT, GeminiSTTModels, GeminiTranscriptionMode, GoogleSTT, MicrosoftSTT, OpenAISTT, SarvamSTT, SmallestAISTT, SpeechmaticsSTT, XAiSTT, } from "./vendors/stt.mjs";
52
+ export type { AmazonTTSOptions, CartesiaTTSOptions, DeepgramTTSOptions, ElevenLabsTTSOptions, FishAudioTTSOptions, GenericTTSOptions, GoogleTTSOptions, GradiumTTSOptions, HumeAITTSOptions, MicrosoftTTSOptions, MiniMaxTTSOptions, MistralTTSOptions, MurfTTSOptions, OpenAITTSOptions, RimeTTSOptions, SarvamTTSOptions, SmallestAITTSOptions, TypecastTTSOptions, XAiTTSOptions, } from "./vendors/tts.mjs";
53
+ export { AmazonTTS, CartesiaTTS, DeepgramTTS, ElevenLabsTTS, FishAudioTTS, GenericTTS, GoogleTTS, GradiumTTS, HumeAITTS, MicrosoftTTS, MiniMaxTTS, MistralTTS, MurfTTS, OpenAITTS, RimeTTS, SarvamTTS, SmallestAITTS, TypecastTTS, XAiTTS, } from "./vendors/tts.mjs";
@@ -27,7 +27,7 @@ export { AudioScenario, CredentialMode, DataChannel, FillerWordsSelectionRule, G
27
27
  export { REDACTED, redactHeadersForDebug, redactSecrets } from "./debug.mjs";
28
28
  export { AgentPresets, normalizePresetInput } from "./presets.mjs";
29
29
  export { createPreviewRoute, PREVIEW_API_BASE_URL, PREVIEW_FEATURE_HEADER, PreviewFeatures, previewRequestHeaders, requiredPreviewFeatures, } from "./preview/client.mjs";
30
- export { GEMINI_MLLM_DEFAULT_MODEL, GEMINI_PREVIEW_MLLM_URL, GeminiLiveModels, GeminiThinkingLevels, OpenAIGPTLive, } from "./preview/vendors.mjs";
30
+ export { GeminiTTS, GeminiTTSModels } from "./preview/gemini-tts.mjs";
31
31
  // Token generation
32
32
  export { ExpiresIn, generateConvoAIToken, generateRtcToken, MAX_EXPIRY_SECONDS, } from "./token.mjs";
33
33
  // Avatar vendor classes
@@ -38,8 +38,8 @@ export { AliyunLLM, BytedanceDuplexTTS, BytedanceLLM, BytedanceTTS, CosyVoiceTTS
38
38
  // LLM vendor classes
39
39
  export { AmazonBedrock, Anthropic, AzureOpenAI, CustomLLM, Dify, Gemini, Groq, OpenAI, VertexAILLM, } from "./vendors/llm.mjs";
40
40
  // MLLM vendor classes
41
- export { AzureOpenAIRealtime, GeminiLive, OpenAIRealtime, QwenOmni, VertexAI, XaiGrok, } from "./vendors/mllm.mjs";
41
+ export { AzureOpenAIRealtime, GEMINI_MLLM_DEFAULT_MODEL, GEMINI_MLLM_URL, GEMINI_PREVIEW_MLLM_URL, GeminiLive, GeminiLiveModels, GeminiThinkingLevels, OpenAIGPTLive, OpenAIRealtime, QwenOmni, VertexAI, XaiGrok, } from "./vendors/mllm.mjs";
42
42
  // STT vendor classes
43
- export { AmazonSTT, AresSTT, AssemblyAISTT, DeepgramSTT, GeminiSTT, GeminiSTTModels, GeminiTranscriptionMode, GoogleSTT, MicrosoftSTT, OpenAISTT, SarvamSTT, SpeechmaticsSTT, XAiSTT, } from "./vendors/stt.mjs";
43
+ export { AmazonSTT, AresSTT, AssemblyAISTT, DeepgramSTT, GeminiSTT, GeminiSTTModels, GeminiTranscriptionMode, GoogleSTT, MicrosoftSTT, OpenAISTT, SarvamSTT, SmallestAISTT, SpeechmaticsSTT, XAiSTT, } from "./vendors/stt.mjs";
44
44
  // TTS vendor classes
45
- export { AmazonTTS, CartesiaTTS, DeepgramTTS, ElevenLabsTTS, FishAudioTTS, GenericTTS, GoogleTTS, GradiumTTS, HumeAITTS, MicrosoftTTS, MiniMaxTTS, MistralTTS, MurfTTS, OpenAITTS, RimeTTS, SarvamTTS, TypecastTTS, XAiTTS, } from "./vendors/tts.mjs";
45
+ export { AmazonTTS, CartesiaTTS, DeepgramTTS, ElevenLabsTTS, FishAudioTTS, GenericTTS, GoogleTTS, GradiumTTS, HumeAITTS, MicrosoftTTS, MiniMaxTTS, MistralTTS, MurfTTS, OpenAITTS, RimeTTS, SarvamTTS, SmallestAITTS, TypecastTTS, XAiTTS, } from "./vendors/tts.mjs";
@@ -31,8 +31,9 @@ export declare const PREVIEW_FEATURE_HEADER = "agora-feature";
31
31
  * preview endpoint.
32
32
  */
33
33
  export declare const PreviewFeatures: {
34
- /** Gemini preview MLLM gate; Gemini ASR uses the production endpoint. */
34
+ /** Gemini TTS preview gate; Gemini ASR and Live use production. */
35
35
  readonly GeminiLive: "gemini-live";
36
+ /** @deprecated GPT Live now uses the production endpoint. */
36
37
  readonly LiveModels: "live-models";
37
38
  };
38
39
  /** A preview provider family gate value. */
@@ -53,21 +54,8 @@ export declare function previewRequestHeaders(features: readonly PreviewFeature[
53
54
  export declare function createPreviewRoute(client: AgoraClient, features: readonly PreviewFeature[]): PreviewRoute;
54
55
  export declare function requiredPreviewFeatures(properties: Agora.StartAgentsRequest.Properties): PreviewFeature[];
55
56
  /**
56
- * Retargets MLLM fields that the shared builder wrote using production
57
- * spellings, so a preview config follows the preview route's structure.
58
- *
59
- * `Agent` fills `mllm.greeting_message` from an agent-level `greeting` whenever
60
- * the vendor has not set that key — correct for every GA vendor, but the
61
- * preview Gemini models read `greeting`, so the value would land in a field
62
- * they ignore and the agent would silently never greet.
63
- *
64
- * Rather than teach the shared builder about preview providers, the translation
65
- * lives here and disappears with this directory at GA. The vendor's own value
66
- * wins; the production-spelled one is the fallback, which also migrates a
67
- * hand-written `greeting_message` onto the preview key so an existing config
68
- * keeps working after only swapping the model.
69
- *
70
- * Mutates `properties.mllm` in place. Safe because every SDK hands this a fresh
71
- * copy of the MLLM config rather than the Agent's stored one.
57
+ * Normalizes the historical Gemini preview greeting field for production.
58
+ * Kept under its old name so callers importing this compatibility helper do
59
+ * not need to change code when moving an existing request to production.
72
60
  */
73
61
  export declare function applyPreviewShape(properties: Agora.StartAgentsRequest.Properties): void;
@@ -22,7 +22,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  };
23
23
  import { AgentManagementClient } from "../../api/resources/agentManagement/client/Client.mjs";
24
24
  import { AgentsClient } from "../../api/resources/agents/client/Client.mjs";
25
- import { GEMINI_PREVIEW_MLLM_URL, isOpenAIGPTLiveConfig } from "./vendors.mjs";
26
25
  /** Base URL that serves the preview providers. */
27
26
  export const PREVIEW_API_BASE_URL = "https://partner.ai.agora.io/preview/api/conversational-ai-agent";
28
27
  /**
@@ -39,8 +38,9 @@ export const PREVIEW_FEATURE_HEADER = "agora-feature";
39
38
  * preview endpoint.
40
39
  */
41
40
  export const PreviewFeatures = {
42
- /** Gemini preview MLLM gate; Gemini ASR uses the production endpoint. */
41
+ /** Gemini TTS preview gate; Gemini ASR and Live use production. */
43
42
  GeminiLive: "gemini-live",
43
+ /** @deprecated GPT Live now uses the production endpoint. */
44
44
  LiveModels: "live-models",
45
45
  };
46
46
  /**
@@ -67,96 +67,30 @@ export function createPreviewRoute(client, features) {
67
67
  features: [...features],
68
68
  };
69
69
  }
70
- /** ASR vendor served only by the preview endpoint. */
71
- const PREVIEW_ASR_VENDORS = new Set();
72
- /**
73
- * Returns the preview features a start request needs, derived from the request
74
- * body rather than from the vendor classes — so hand-written configs are
75
- * covered too.
76
- */
77
- const PREVIEW_MLLM_MODELS = new Set([
78
- "models/gemini-3.8-live",
79
- "models/gemini-3.8-live-extended-thinking",
80
- ]);
81
- /**
82
- * Whether a config carries the envelope the preview MLLM vendor classes emit:
83
- * a top-level `mllm.api_key`, and a `url` on the Gemini Developer API host.
84
- * GeminiLive configurations for older model IDs use a different URL: `""` or
85
- * a WebSocket endpoint.
86
- *
87
- * This is the second recognition path, and it exists because keying only off
88
- * {@link PREVIEW_MLLM_MODELS} makes an unrecognised model name fail silently:
89
- * {@link applyPreviewShape} would stop retargeting `greeting_message`, the
90
- * greeting would land in a field these models ignore, and the agent would
91
- * simply never greet. A model name we have not listed yet is reachable by
92
- * following this SDK's own advice to override `model` when Google renames one
93
- * ahead of a release, so the failure has to not be silent.
94
- */
95
- function hasPreviewMllmEnvelope(mllm) {
96
- return (typeof mllm.api_key === "string" && typeof mllm.url === "string" && mllm.url.startsWith(GEMINI_PREVIEW_MLLM_URL));
97
- }
98
- /**
99
- * Whether an MLLM config targets a preview model — by name, or by the wire
100
- * envelope only the preview vendor classes produce.
101
- */
102
- function isPreviewMllm(mllm) {
103
- var _a;
104
- if (!mllm || mllm.vendor !== "gemini") {
105
- return false;
106
- }
107
- const model = (_a = mllm.params) === null || _a === void 0 ? void 0 : _a.model;
108
- if (typeof model === "string" && PREVIEW_MLLM_MODELS.has(model)) {
109
- return true;
110
- }
111
- return hasPreviewMllmEnvelope(mllm);
112
- }
113
70
  export function requiredPreviewFeatures(properties) {
114
71
  var _a;
115
- const features = new Set();
116
- const asrVendor = (_a = properties.asr) === null || _a === void 0 ? void 0 : _a.vendor;
117
- if (asrVendor !== undefined && PREVIEW_ASR_VENDORS.has(asrVendor)) {
118
- features.add(PreviewFeatures.GeminiLive);
119
- }
120
- if (isOpenAIGPTLiveConfig(properties.mllm)) {
121
- features.add(PreviewFeatures.LiveModels);
122
- }
123
- if (isPreviewMllm(properties.mllm)) {
124
- features.add(PreviewFeatures.GeminiLive);
125
- }
126
- return [...features];
72
+ return ((_a = properties.tts) === null || _a === void 0 ? void 0 : _a.vendor) === "gemini" ? [PreviewFeatures.GeminiLive] : [];
127
73
  }
128
- const PREVIEW_MLLM_FIELD_RENAMES = new Map([["greeting_message", "greeting"]]);
74
+ const PRODUCTION_GEMINI_MLLM_MODELS = new Set([
75
+ "models/gemini-3.8-live",
76
+ "models/gemini-3.8-live-extended-thinking",
77
+ ]);
129
78
  /**
130
- * Retargets MLLM fields that the shared builder wrote using production
131
- * spellings, so a preview config follows the preview route's structure.
132
- *
133
- * `Agent` fills `mllm.greeting_message` from an agent-level `greeting` whenever
134
- * the vendor has not set that key — correct for every GA vendor, but the
135
- * preview Gemini models read `greeting`, so the value would land in a field
136
- * they ignore and the agent would silently never greet.
137
- *
138
- * Rather than teach the shared builder about preview providers, the translation
139
- * lives here and disappears with this directory at GA. The vendor's own value
140
- * wins; the production-spelled one is the fallback, which also migrates a
141
- * hand-written `greeting_message` onto the preview key so an existing config
142
- * keeps working after only swapping the model.
143
- *
144
- * Mutates `properties.mllm` in place. Safe because every SDK hands this a fresh
145
- * copy of the MLLM config rather than the Agent's stored one.
79
+ * Normalizes the historical Gemini preview greeting field for production.
80
+ * Kept under its old name so callers importing this compatibility helper do
81
+ * not need to change code when moving an existing request to production.
146
82
  */
147
83
  export function applyPreviewShape(properties) {
84
+ var _a;
148
85
  const mllm = properties.mllm;
149
- if (!mllm || !isPreviewMllm(mllm)) {
86
+ if (!mllm ||
87
+ mllm.vendor !== "gemini" ||
88
+ typeof ((_a = mllm.params) === null || _a === void 0 ? void 0 : _a.model) !== "string" ||
89
+ !PRODUCTION_GEMINI_MLLM_MODELS.has(mllm.params.model)) {
150
90
  return;
151
91
  }
152
- for (const [production, preview] of PREVIEW_MLLM_FIELD_RENAMES) {
153
- const value = mllm[production];
154
- if (value === undefined) {
155
- continue;
156
- }
157
- if (mllm[preview] === undefined) {
158
- mllm[preview] = value;
159
- }
160
- delete mllm[production];
92
+ if (mllm.greeting_message === undefined && mllm.greeting !== undefined) {
93
+ mllm.greeting_message = mllm.greeting;
161
94
  }
95
+ delete mllm.greeting;
162
96
  }
@@ -0,0 +1,31 @@
1
+ import { BaseTTS } from "../vendors/base.mjs";
2
+ /** Gemini 3.8 Flash TTS preview model. */
3
+ export declare const GeminiTTSModels: {
4
+ readonly Flash38: "gemini-3.8-flash-tts";
5
+ };
6
+ export type GeminiTTSModel = (typeof GeminiTTSModels)[keyof typeof GeminiTTSModels] | (string & {});
7
+ export interface GeminiTTSOptions {
8
+ apiKey: string;
9
+ /** Sent verbatim; defaults to Gemini 3.8 Flash TTS. */
10
+ model?: GeminiTTSModel;
11
+ /** Defaults to Puck. */
12
+ voice?: string;
13
+ /** Natural-language speaking instructions. Omitted unless supplied. */
14
+ style?: string;
15
+ }
16
+ /** Preview wire shape, kept separate from the generated production schema. */
17
+ export interface GeminiTTSConfig {
18
+ vendor: "gemini";
19
+ params: {
20
+ api_key: string;
21
+ model: string;
22
+ voice: string;
23
+ style?: string;
24
+ };
25
+ }
26
+ /** Preview-only TTS. AgentSession selects the gemini-live gate automatically. */
27
+ export declare class GeminiTTS extends BaseTTS {
28
+ private readonly options;
29
+ constructor(options: GeminiTTSOptions);
30
+ toConfig(): GeminiTTSConfig;
31
+ }