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