agora-agents 2.3.1 → 2.5.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 (143) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.js +8 -16
  3. package/dist/cjs/agentkit/Agent.js +6 -5
  4. package/dist/cjs/agentkit/AgentSession.js +2 -0
  5. package/dist/cjs/agentkit/__tests__/area-aware-vendors.test.js +4 -0
  6. package/dist/cjs/agentkit/avatar-types.d.ts +18 -5
  7. package/dist/cjs/agentkit/avatar-types.js +31 -3
  8. package/dist/cjs/agentkit/constants.d.ts +6 -0
  9. package/dist/cjs/agentkit/constants.js +6 -1
  10. package/dist/cjs/agentkit/index.d.ts +10 -10
  11. package/dist/cjs/agentkit/index.js +11 -3
  12. package/dist/cjs/agentkit/region-vendors.d.ts +2 -1
  13. package/dist/cjs/agentkit/types.d.ts +26 -5
  14. package/dist/cjs/agentkit/vendors/avatar.d.ts +3 -3
  15. package/dist/cjs/agentkit/vendors/avatar.js +3 -3
  16. package/dist/cjs/agentkit/vendors/base.d.ts +4 -0
  17. package/dist/cjs/agentkit/vendors/base.js +4 -0
  18. package/dist/cjs/agentkit/vendors/cn.d.ts +19 -1
  19. package/dist/cjs/agentkit/vendors/cn.js +23 -3
  20. package/dist/cjs/agentkit/vendors/llm.d.ts +1 -1
  21. package/dist/cjs/agentkit/vendors/llm.js +13 -3
  22. package/dist/cjs/agentkit/vendors/mllm.d.ts +1 -1
  23. package/dist/cjs/agentkit/vendors/mllm.js +3 -3
  24. package/dist/cjs/agentkit/vendors/stt.d.ts +31 -0
  25. package/dist/cjs/agentkit/vendors/stt.js +26 -1
  26. package/dist/cjs/agentkit/vendors/tts.d.ts +137 -5
  27. package/dist/cjs/agentkit/vendors/tts.js +104 -5
  28. package/dist/cjs/api/resources/agents/client/requests/ListAgentsRequest.d.ts +2 -3
  29. package/dist/cjs/api/resources/agents/client/requests/StartAgentsRequest.d.ts +18 -1
  30. package/dist/cjs/api/resources/agents/client/requests/StartAgentsRequest.js +8 -0
  31. package/dist/cjs/api/resources/agents/types/GetHistoryAgentsResponse.d.ts +6 -0
  32. package/dist/cjs/api/resources/agents/types/index.d.ts +0 -1
  33. package/dist/cjs/api/resources/agents/types/index.js +0 -1
  34. package/dist/cjs/api/types/Asr.d.ts +4 -1
  35. package/dist/cjs/api/types/GenericHttpTts.d.ts +13 -0
  36. package/dist/cjs/api/types/GenericHttpTts.js +3 -0
  37. package/dist/cjs/api/types/GenericHttpTtsParams.d.ts +21 -0
  38. package/dist/cjs/api/types/GenericHttpTtsParams.js +3 -0
  39. package/dist/cjs/api/types/GradiumTts.d.ts +9 -0
  40. package/dist/cjs/api/types/GradiumTts.js +3 -0
  41. package/dist/cjs/api/types/GradiumTtsParams.d.ts +17 -0
  42. package/dist/cjs/api/types/GradiumTtsParams.js +3 -0
  43. package/dist/cjs/api/types/Llm.d.ts +24 -1
  44. package/dist/cjs/api/types/Llm.js +8 -0
  45. package/dist/cjs/api/types/MistralTts.d.ts +9 -0
  46. package/dist/cjs/api/types/MistralTts.js +3 -0
  47. package/dist/cjs/api/types/MistralTtsParams.d.ts +13 -0
  48. package/dist/cjs/api/types/MistralTtsParams.js +3 -0
  49. package/dist/cjs/api/types/RimeTts.d.ts +10 -0
  50. package/dist/cjs/api/types/RimeTts.js +9 -0
  51. package/dist/cjs/api/types/RimeTtsParams.d.ts +2 -2
  52. package/dist/cjs/api/types/SpatiusAvatarParams.d.ts +23 -0
  53. package/dist/cjs/api/types/SpatiusAvatarParams.js +3 -0
  54. package/dist/cjs/api/types/Tts.d.ts +13 -1
  55. package/dist/cjs/api/types/XAiAsr.d.ts +10 -0
  56. package/dist/cjs/api/types/XAiAsr.js +3 -0
  57. package/dist/cjs/api/types/XAiAsrParams.d.ts +15 -0
  58. package/dist/cjs/api/types/XAiAsrParams.js +3 -0
  59. package/dist/cjs/api/types/XAiTts.d.ts +9 -0
  60. package/dist/cjs/api/types/XAiTts.js +3 -0
  61. package/dist/cjs/api/types/XAiTtsParams.d.ts +15 -0
  62. package/dist/cjs/api/types/XAiTtsParams.js +3 -0
  63. package/dist/cjs/api/types/index.d.ts +11 -0
  64. package/dist/cjs/api/types/index.js +11 -0
  65. package/dist/cjs/core/base64.js +1 -5
  66. package/dist/cjs/index.d.ts +2 -2
  67. package/dist/cjs/index.js +11 -3
  68. package/dist/cjs/version.d.ts +1 -1
  69. package/dist/cjs/version.js +1 -1
  70. package/dist/esm/BaseClient.mjs +2 -2
  71. package/dist/esm/Client.mjs +8 -16
  72. package/dist/esm/agentkit/Agent.mjs +6 -5
  73. package/dist/esm/agentkit/AgentSession.mjs +3 -1
  74. package/dist/esm/agentkit/__tests__/area-aware-vendors.test.mjs +5 -1
  75. package/dist/esm/agentkit/avatar-types.d.mts +18 -5
  76. package/dist/esm/agentkit/avatar-types.mjs +30 -3
  77. package/dist/esm/agentkit/constants.d.mts +6 -0
  78. package/dist/esm/agentkit/constants.mjs +5 -0
  79. package/dist/esm/agentkit/index.d.mts +10 -10
  80. package/dist/esm/agentkit/index.mjs +5 -5
  81. package/dist/esm/agentkit/region-vendors.d.mts +2 -1
  82. package/dist/esm/agentkit/types.d.mts +26 -5
  83. package/dist/esm/agentkit/vendors/avatar.d.mts +3 -3
  84. package/dist/esm/agentkit/vendors/avatar.mjs +3 -3
  85. package/dist/esm/agentkit/vendors/base.d.mts +4 -0
  86. package/dist/esm/agentkit/vendors/base.mjs +4 -0
  87. package/dist/esm/agentkit/vendors/cn.d.mts +19 -1
  88. package/dist/esm/agentkit/vendors/cn.mjs +21 -2
  89. package/dist/esm/agentkit/vendors/llm.d.mts +1 -1
  90. package/dist/esm/agentkit/vendors/llm.mjs +13 -3
  91. package/dist/esm/agentkit/vendors/mllm.d.mts +1 -1
  92. package/dist/esm/agentkit/vendors/mllm.mjs +3 -3
  93. package/dist/esm/agentkit/vendors/stt.d.mts +31 -0
  94. package/dist/esm/agentkit/vendors/stt.mjs +24 -0
  95. package/dist/esm/agentkit/vendors/tts.d.mts +137 -5
  96. package/dist/esm/agentkit/vendors/tts.mjs +99 -4
  97. package/dist/esm/api/resources/agents/client/requests/ListAgentsRequest.d.mts +2 -3
  98. package/dist/esm/api/resources/agents/client/requests/StartAgentsRequest.d.mts +18 -1
  99. package/dist/esm/api/resources/agents/client/requests/StartAgentsRequest.mjs +8 -0
  100. package/dist/esm/api/resources/agents/types/GetHistoryAgentsResponse.d.mts +6 -0
  101. package/dist/esm/api/resources/agents/types/index.d.mts +0 -1
  102. package/dist/esm/api/resources/agents/types/index.mjs +0 -1
  103. package/dist/esm/api/types/Asr.d.mts +4 -1
  104. package/dist/esm/api/types/GenericHttpTts.d.mts +13 -0
  105. package/dist/esm/api/types/GenericHttpTts.mjs +2 -0
  106. package/dist/esm/api/types/GenericHttpTtsParams.d.mts +21 -0
  107. package/dist/esm/api/types/GenericHttpTtsParams.mjs +2 -0
  108. package/dist/esm/api/types/GradiumTts.d.mts +9 -0
  109. package/dist/esm/api/types/GradiumTts.mjs +2 -0
  110. package/dist/esm/api/types/GradiumTtsParams.d.mts +17 -0
  111. package/dist/esm/api/types/GradiumTtsParams.mjs +2 -0
  112. package/dist/esm/api/types/Llm.d.mts +24 -1
  113. package/dist/esm/api/types/Llm.mjs +8 -0
  114. package/dist/esm/api/types/MistralTts.d.mts +9 -0
  115. package/dist/esm/api/types/MistralTts.mjs +2 -0
  116. package/dist/esm/api/types/MistralTtsParams.d.mts +13 -0
  117. package/dist/esm/api/types/MistralTtsParams.mjs +2 -0
  118. package/dist/esm/api/types/RimeTts.d.mts +10 -0
  119. package/dist/esm/api/types/RimeTts.mjs +8 -1
  120. package/dist/esm/api/types/RimeTtsParams.d.mts +2 -2
  121. package/dist/esm/api/types/SpatiusAvatarParams.d.mts +23 -0
  122. package/dist/esm/api/types/SpatiusAvatarParams.mjs +2 -0
  123. package/dist/esm/api/types/Tts.d.mts +13 -1
  124. package/dist/esm/api/types/XAiAsr.d.mts +10 -0
  125. package/dist/esm/api/types/XAiAsr.mjs +2 -0
  126. package/dist/esm/api/types/XAiAsrParams.d.mts +15 -0
  127. package/dist/esm/api/types/XAiAsrParams.mjs +2 -0
  128. package/dist/esm/api/types/XAiTts.d.mts +9 -0
  129. package/dist/esm/api/types/XAiTts.mjs +2 -0
  130. package/dist/esm/api/types/XAiTtsParams.d.mts +15 -0
  131. package/dist/esm/api/types/XAiTtsParams.mjs +2 -0
  132. package/dist/esm/api/types/index.d.mts +11 -0
  133. package/dist/esm/api/types/index.mjs +11 -0
  134. package/dist/esm/core/base64.mjs +1 -5
  135. package/dist/esm/index.d.mts +2 -2
  136. package/dist/esm/index.mjs +5 -5
  137. package/dist/esm/version.d.mts +1 -1
  138. package/dist/esm/version.mjs +1 -1
  139. package/package.json +1 -1
  140. package/dist/cjs/api/resources/agents/types/ListAgentsRequestState.d.ts +0 -10
  141. package/dist/cjs/api/resources/agents/types/ListAgentsRequestState.js +0 -13
  142. package/dist/esm/api/resources/agents/types/ListAgentsRequestState.d.mts +0 -10
  143. package/dist/esm/api/resources/agents/types/ListAgentsRequestState.mjs +0 -10
@@ -0,0 +1,15 @@
1
+ /**
2
+ * xAI ASR configuration parameters.
3
+ */
4
+ export interface XAiAsrParams {
5
+ /** xAI API key */
6
+ api_key: string;
7
+ /** WebSocket endpoint URL for the xAI streaming STT API. Defaults to `wss://api.x.ai/v1/stt`. */
8
+ base_url?: string | null;
9
+ /** Audio sample rate in Hz. */
10
+ sample_rate?: number | null;
11
+ /** Language code for speech recognition. */
12
+ language?: string | null;
13
+ /** Accepts any additional properties */
14
+ [key: string]: any;
15
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,9 @@
1
+ import type * as Agora from "../index.mjs";
2
+ /**
3
+ * xAI Text-to-Speech configuration.
4
+ */
5
+ export interface XAiTts {
6
+ params: Agora.XAiTtsParams;
7
+ /** Controls whether the TTS module skips bracketed content when reading LLM response text. */
8
+ skip_patterns?: number[];
9
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,15 @@
1
+ /**
2
+ * xAI TTS configuration parameters.
3
+ */
4
+ export interface XAiTtsParams {
5
+ /** xAI API key. */
6
+ api_key: string;
7
+ /** xAI voice identifier. */
8
+ voice_id?: string | null;
9
+ /** BCP-47 language code for speech synthesis. */
10
+ language: string;
11
+ /** Audio sample rate in Hz. */
12
+ sample_rate?: number | null;
13
+ /** Accepts any additional properties */
14
+ [key: string]: any;
15
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -28,12 +28,16 @@ export * from "./ElevenLabsTtsParams.mjs";
28
28
  export * from "./FengmingAsr.mjs";
29
29
  export * from "./FishAudioTts.mjs";
30
30
  export * from "./FishAudioTtsParams.mjs";
31
+ export * from "./GenericHttpTts.mjs";
32
+ export * from "./GenericHttpTtsParams.mjs";
31
33
  export * from "./GoogleAsr.mjs";
32
34
  export * from "./GoogleAsrParams.mjs";
33
35
  export * from "./GoogleTts.mjs";
34
36
  export * from "./GoogleTtsAudioConfig.mjs";
35
37
  export * from "./GoogleTtsParams.mjs";
36
38
  export * from "./GoogleTtsVoiceSelectionParams.mjs";
39
+ export * from "./GradiumTts.mjs";
40
+ export * from "./GradiumTtsParams.mjs";
37
41
  export * from "./HumeAiTts.mjs";
38
42
  export * from "./HumeAiTtsParams.mjs";
39
43
  export * from "./Llm.mjs";
@@ -44,6 +48,8 @@ export * from "./MicrosoftTts.mjs";
44
48
  export * from "./MicrosoftTtsParams.mjs";
45
49
  export * from "./MinimaxTts.mjs";
46
50
  export * from "./MinimaxTtsParams.mjs";
51
+ export * from "./MistralTts.mjs";
52
+ export * from "./MistralTtsParams.mjs";
47
53
  export * from "./Mllm.mjs";
48
54
  export * from "./MllmHttpOptions.mjs";
49
55
  export * from "./MllmInputAudioTranscription.mjs";
@@ -63,6 +69,7 @@ export * from "./SarvamAsrParams.mjs";
63
69
  export * from "./SarvamTts.mjs";
64
70
  export * from "./SarvamTtsParams.mjs";
65
71
  export * from "./SensetimeAvatarParams.mjs";
72
+ export * from "./SpatiusAvatarParams.mjs";
66
73
  export * from "./SpeechmaticsAsr.mjs";
67
74
  export * from "./SpeechmaticsAsrParams.mjs";
68
75
  export * from "./StepfunTts.mjs";
@@ -73,6 +80,10 @@ export * from "./TencentAsrParams.mjs";
73
80
  export * from "./TencentTts.mjs";
74
81
  export * from "./TencentTtsParams.mjs";
75
82
  export * from "./Tts.mjs";
83
+ export * from "./XAiAsr.mjs";
84
+ export * from "./XAiAsrParams.mjs";
85
+ export * from "./XAiTts.mjs";
86
+ export * from "./XAiTtsParams.mjs";
76
87
  export * from "./XfyunAsr.mjs";
77
88
  export * from "./XfyunAsrParams.mjs";
78
89
  export * from "./XfyunBigmodelAsr.mjs";
@@ -28,12 +28,16 @@ export * from "./ElevenLabsTtsParams.mjs";
28
28
  export * from "./FengmingAsr.mjs";
29
29
  export * from "./FishAudioTts.mjs";
30
30
  export * from "./FishAudioTtsParams.mjs";
31
+ export * from "./GenericHttpTts.mjs";
32
+ export * from "./GenericHttpTtsParams.mjs";
31
33
  export * from "./GoogleAsr.mjs";
32
34
  export * from "./GoogleAsrParams.mjs";
33
35
  export * from "./GoogleTts.mjs";
34
36
  export * from "./GoogleTtsAudioConfig.mjs";
35
37
  export * from "./GoogleTtsParams.mjs";
36
38
  export * from "./GoogleTtsVoiceSelectionParams.mjs";
39
+ export * from "./GradiumTts.mjs";
40
+ export * from "./GradiumTtsParams.mjs";
37
41
  export * from "./HumeAiTts.mjs";
38
42
  export * from "./HumeAiTtsParams.mjs";
39
43
  export * from "./Llm.mjs";
@@ -44,6 +48,8 @@ export * from "./MicrosoftTts.mjs";
44
48
  export * from "./MicrosoftTtsParams.mjs";
45
49
  export * from "./MinimaxTts.mjs";
46
50
  export * from "./MinimaxTtsParams.mjs";
51
+ export * from "./MistralTts.mjs";
52
+ export * from "./MistralTtsParams.mjs";
47
53
  export * from "./Mllm.mjs";
48
54
  export * from "./MllmHttpOptions.mjs";
49
55
  export * from "./MllmInputAudioTranscription.mjs";
@@ -63,6 +69,7 @@ export * from "./SarvamAsrParams.mjs";
63
69
  export * from "./SarvamTts.mjs";
64
70
  export * from "./SarvamTtsParams.mjs";
65
71
  export * from "./SensetimeAvatarParams.mjs";
72
+ export * from "./SpatiusAvatarParams.mjs";
66
73
  export * from "./SpeechmaticsAsr.mjs";
67
74
  export * from "./SpeechmaticsAsrParams.mjs";
68
75
  export * from "./StepfunTts.mjs";
@@ -73,6 +80,10 @@ export * from "./TencentAsrParams.mjs";
73
80
  export * from "./TencentTts.mjs";
74
81
  export * from "./TencentTtsParams.mjs";
75
82
  export * from "./Tts.mjs";
83
+ export * from "./XAiAsr.mjs";
84
+ export * from "./XAiAsrParams.mjs";
85
+ export * from "./XAiTts.mjs";
86
+ export * from "./XAiTtsParams.mjs";
76
87
  export * from "./XfyunAsr.mjs";
77
88
  export * from "./XfyunAsrParams.mjs";
78
89
  export * from "./XfyunBigmodelAsr.mjs";
@@ -1,10 +1,6 @@
1
1
  function base64ToBytes(base64) {
2
2
  const binString = atob(base64);
3
- const bytes = new Uint8Array(binString.length);
4
- for (let i = 0; i < binString.length; i++) {
5
- bytes[i] = binString.charCodeAt(i);
6
- }
7
- return bytes;
3
+ return Uint8Array.from(binString, (m) => m.codePointAt(0));
8
4
  }
9
5
  function bytesToBase64(bytes) {
10
6
  const binString = String.fromCodePoint(...bytes);
@@ -1,8 +1,8 @@
1
1
  export type { AgoraAuthMode } from "./AgoraPoolClient.mjs";
2
2
  export { AgoraClient } from "./AgoraPoolClient.mjs";
3
3
  export type { AgoraArea, AreaScope, GlobalArea } from "./agentkit/area.mjs";
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, 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, 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, XaiGrokOptions, XfyunBigModelSTTOptions, XfyunDialectSTTOptions, XfyunSTTOptions, } from "./agentkit/index.mjs";
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, Geofence, GoogleSTT, GoogleTTS, Groq, generateConvoAIToken, generateRtcToken, HeyGenAvatar, HumeAITTS, InterruptionDisabledStrategy, InterruptionDisabledStrategyAppend, InterruptionDisabledStrategyIgnore, InterruptionModeKeywords, InterruptionModeStartOfSpeech, InterruptionModeValues, isAkoolAvatar, isAnamAvatar, isAvatarTokenManaged, isGenericAvatar, isHeyGenAvatar, isLiveAvatarAvatar, isSensetimeAvatar, 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, SpeakPriorityAppend, SpeakPriorityIgnore, SpeakPriorityInterrupt, SpeakPriorityValues, SpeechmaticsSTT, StepFunTTS, TencentLLM, TencentSTT, TencentTTS, ThinkOnListeningActionIgnore, ThinkOnListeningActionInject, ThinkOnListeningActionInterrupt, ThinkOnSpeakingActionIgnore, ThinkOnSpeakingActionInterrupt, ThinkOnThinkingActionIgnore, ThinkOnThinkingActionInterrupt, TurnDetectionTypeValues, toBaseAvatarConfig, VertexAI, VertexAILLM, validateAvatarConfig, validateTtsSampleRate, XaiGrok, XfyunBigModelSTT, XfyunDialectSTT, XfyunSTT, } from "./agentkit/index.mjs";
4
+ export type { AdvancedFeatures, AgentConfig, AgentConfigUpdate, AgentOptions, AgentPreset, AgentSessionEvent, AgentSessionEventHandler, AgentSessionOptions, AgentsClient, AkoolAvatarConfig, AkoolAvatarOptions, AkoolSampleRate, AliyunLLMOptions, AmazonBedrockOptions, AmazonSTTOptions, AmazonTTSOptions, AmazonTts, AmazonTtsParams, AnamAvatarConfig, AnamAvatarOptions, AnthropicOptions, AresSTTOptions, AsrConfig, AsrPreset, AsrVendorName, AssemblyAISTTOptions, AvatarConfig, AvatarVendor, AvatarWireVendor, AzureOpenAIOptions, BytedanceDuplexTTSOptions, BytedanceLLMOptions, BytedanceTTSOptions, CartesiaSampleRate, CartesiaTTSOptions, CartesiaTts, CartesiaTtsParams, CNAvatarVendor, CNLlmVendor, CNSttVendor, CNTtsVendor, ConversationHistory, ConversationRole, ConversationSessionTurn, ConversationTurn, ConversationTurns, CustomLLMOptions, DeepgramSTTOptions, DeepgramTTSOptions, DeepSeekLLMOptions, DifyOptions, Eagerness, ElevenLabsSampleRate, ElevenLabsTTSOptions, ElevenLabsTts, ElevenLabsTtsParams, EndOfSpeechConfig, EndOfSpeechMode, EndOfSpeechSemanticConfig, EndOfSpeechVadConfig, FarewellConfig, FillerWordsConfig, FillerWordsContent, FillerWordsContentSelectionRule, FillerWordsContentStaticConfig, FillerWordsTrigger, FillerWordsTriggerFixedTimeConfig, FishAudioTTSOptions, FishAudioTts, FishAudioTtsParams, GeminiLiveOptions, GeminiOptions, GenerateConvoAITokenOptions, GenerateTokenOptions, GenericAvatarConfig, GenericAvatarOptions, GenericTTSOptions, GenericTts, GenericTtsParams, GeofenceArea, GeofenceConfig, GeofenceExcludeArea, GetTurnsOptions, GlobalAvatarVendor, GlobalLlmVendor, GlobalSttVendor, GlobalTtsVendor, GoogleSTTOptions, GoogleTTSOptions, GoogleTts, GoogleTtsParams, GradiumTTSOptions, GradiumTts, GradiumTtsParams, GroqOptions, HeyGenAvatarConfig, HeyGenAvatarOptions, HeyGenSampleRate, HumeAITTSOptions, HumeAiTts, HumeAiTtsParams, InterruptionConfig, InterruptionMode, InterruptMode, Labels, LiveAvatarAvatarConfig, LiveAvatarAvatarOptions, LiveAvatarSampleRate, LlmConfig, LlmGreetingConfigs, LlmGreetingConfigsMode, LlmPreset, LlmStyle, LlmVendor, McpServersItem, MicrosoftCNSampleRate, MicrosoftCNSTTOptions, MicrosoftCNTTSOptions, MicrosoftSampleRate, MicrosoftSTTOptions, MicrosoftTTSOptions, MicrosoftTts, MicrosoftTtsParams, MiniMaxCNTTSOptions, MiniMaxTTSOptions, MinimaxTts, MinimaxTtsParams, MistralTTSOptions, MistralTts, MistralTtsParams, MllmConfig, MllmTurnDetectionConfig, MllmTurnDetectionMode, MllmVendor, MurfTTSOptions, MurfTts, MurfTtsParams, OpenAIOptions, OpenAIRealtimeOptions, OpenAISTTOptions, OpenAITTSOptions, OpenAiTts, OpenAiTtsParams, ParametersAudioScenario, ParametersDataChannel, PresetCategory, PresetInput, RimeTTSOptions, RimeTts, RimeTtsParams, RtcConfig, SalConfig, SalMode, SampleRate, SarvamSTTOptions, SarvamTTSOptions, SarvamTts, SarvamTtsParams, SayOptions, SensetimeAvatarConfig, SensetimeAvatarOptions, SessionInfo, SessionListResponse, SessionOptions, SessionParams, SessionParamsInput, SessionStatus, SessionSummary, SilenceAction, SilenceConfig, SpatiusAvatarConfig, SpatiusAvatarOptions, SpatiusAvatarParams, SpeakPriority, SpeechmaticsSTTOptions, StartOfSpeechConfig, StartOfSpeechDisabledConfig, StartOfSpeechDisabledConfigStrategy, StartOfSpeechKeywordsConfig, StartOfSpeechMode, StartOfSpeechVadConfig, StepFunTTSOptions, StrictAvatarConfig, SttConfig, SttVendor, TencentLLMOptions, TencentSTTOptions, TencentTTSOptions, ThinkOnListeningAction, ThinkOnSpeakingAction, ThinkOnThinkingAction, ThinkOptions, ThinkResponse, TtsConfig, TtsPreset, TtsVendor, TurnDetectionConfig, TurnDetectionLanguage, TurnDetectionNestedConfig, TurnDetectionType, VertexAILLMOptions, VertexAIOptions, XAiAsr, XAiAsrParams, XAiSTTOptions, XAiTTSOptions, XAiTts, XAiTtsParams, XaiGrokOptions, XfyunBigModelSTTOptions, XfyunDialectSTTOptions, XfyunSTTOptions, } from "./agentkit/index.mjs";
5
+ export { Agent, AgentPresets, AgentSession, AkoolAvatar, AliyunLLM, AmazonBedrock, AmazonSTT, AmazonTTS, AnamAvatar, Anthropic, AresSTT, AssemblyAISTT, AudioScenario, AzureOpenAI, BaseAvatar, BaseCNAvatar, BaseCNLLM, BaseCNSTT, BaseCNTTS, BaseLLM, BaseMLLM, BaseSTT, BaseTTS, BytedanceDuplexTTS, BytedanceLLM, BytedanceTTS, CartesiaTTS, CosyVoiceTTS, CredentialMode, CustomLLM, DataChannel, DeepgramSTT, DeepgramTTS, DeepSeekLLM, Dify, ElevenLabsTTS, ExpiresIn, FengmingSTT, FillerWordsSelectionRule, FishAudioTTS, Gemini, GeminiLive, GenericAvatar, GenericTTS, Geofence, GoogleSTT, GoogleTTS, GradiumTTS, Groq, generateConvoAIToken, generateRtcToken, HeyGenAvatar, HumeAITTS, InterruptionDisabledStrategy, InterruptionDisabledStrategyAppend, InterruptionDisabledStrategyIgnore, InterruptionModeKeywords, InterruptionModeStartOfSpeech, InterruptionModeValues, isAkoolAvatar, isAnamAvatar, isAvatarTokenManaged, isGenericAvatar, isHeyGenAvatar, isLiveAvatarAvatar, isSensetimeAvatar, isSpatiusAvatar, LiveAvatarAvatar, MAX_EXPIRY_SECONDS, MicrosoftCNSTT, MicrosoftCNTTS, MicrosoftSTT, MicrosoftTTS, MiniMaxCNTTS, MiniMaxTTS, MistralTTS, MllmTurnDetectionModeAgoraVad, MllmTurnDetectionModeSemanticVad, MllmTurnDetectionModeServerVad, MllmTurnDetectionModeValues, MurfTTS, normalizePresetInput, OpenAI, OpenAIRealtime, OpenAISTT, OpenAITTS, RimeTTS, SalModeValues, SarvamSTT, SarvamTTS, SensetimeAvatar, SilenceActionValues, SpatiusAvatar, SpeakPriorityAppend, SpeakPriorityIgnore, SpeakPriorityInterrupt, SpeakPriorityValues, SpeechmaticsSTT, StepFunTTS, TencentLLM, TencentSTT, TencentTTS, ThinkOnListeningActionIgnore, ThinkOnListeningActionInject, ThinkOnListeningActionInterrupt, ThinkOnSpeakingActionIgnore, ThinkOnSpeakingActionInterrupt, ThinkOnThinkingActionIgnore, ThinkOnThinkingActionInterrupt, TurnDetectionTypeValues, toBaseAvatarConfig, VertexAI, VertexAILLM, validateAvatarConfig, validateTtsSampleRate, XAiSTT, XAiTTS, XaiGrok, XfyunBigModelSTT, XfyunDialectSTT, XfyunSTT, } from "./agentkit/index.mjs";
6
6
  export * as Agora from "./api/index.mjs";
7
7
  export type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
8
8
  export { Area } from "./core/domain/index.mjs";
@@ -2,17 +2,17 @@ export { AgoraClient } from "./AgoraPoolClient.mjs";
2
2
  // Agentkit layer exports - clean, ergonomic API
3
3
  export { Agent, AgentPresets, AgentSession, AkoolAvatar, AliyunLLM, AmazonBedrock, AmazonSTT, AmazonTTS, AnamAvatar, Anthropic, AresSTT, AssemblyAISTT, AudioScenario, AzureOpenAI, BaseAvatar, BaseCNAvatar, BaseCNLLM, BaseCNSTT, BaseCNTTS,
4
4
  // Base vendor classes
5
- BaseLLM, BaseMLLM, BaseSTT, BaseTTS, BytedanceDuplexTTS, BytedanceLLM, BytedanceTTS, CartesiaTTS, CosyVoiceTTS, CustomLLM, DataChannel, DeepgramSTT, DeepgramTTS, DeepSeekLLM, Dify,
5
+ BaseLLM, BaseMLLM, BaseSTT, BaseTTS, BytedanceDuplexTTS, BytedanceLLM, BytedanceTTS, CartesiaTTS, CosyVoiceTTS, CredentialMode, CustomLLM, DataChannel, DeepgramSTT, DeepgramTTS, DeepSeekLLM, Dify,
6
6
  // TTS vendors
7
- ElevenLabsTTS, ExpiresIn, FengmingSTT, FillerWordsSelectionRule, FishAudioTTS, Gemini, GeminiLive, GenericAvatar, Geofence, GoogleSTT, GoogleTTS, Groq, generateConvoAIToken, generateRtcToken,
7
+ ElevenLabsTTS, ExpiresIn, FengmingSTT, FillerWordsSelectionRule, FishAudioTTS, Gemini, GeminiLive, GenericAvatar, GenericTTS, Geofence, GoogleSTT, GoogleTTS, GradiumTTS, Groq, generateConvoAIToken, generateRtcToken,
8
8
  // Avatar vendors
9
- HeyGenAvatar, HumeAITTS, InterruptionDisabledStrategy, InterruptionDisabledStrategyAppend, InterruptionDisabledStrategyIgnore, InterruptionModeKeywords, InterruptionModeStartOfSpeech, InterruptionModeValues, isAkoolAvatar, isAnamAvatar, isAvatarTokenManaged, isGenericAvatar, isHeyGenAvatar, isLiveAvatarAvatar, isSensetimeAvatar, LiveAvatarAvatar, MAX_EXPIRY_SECONDS, MicrosoftCNSTT, MicrosoftCNTTS, MicrosoftSTT, MicrosoftTTS, MiniMaxCNTTS, MiniMaxTTS, MllmTurnDetectionModeAgoraVad, MllmTurnDetectionModeSemanticVad, MllmTurnDetectionModeServerVad, MllmTurnDetectionModeValues, MurfTTS, normalizePresetInput,
9
+ 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,
10
10
  // LLM vendors
11
11
  OpenAI,
12
12
  // MLLM vendors
13
- OpenAIRealtime, OpenAISTT, OpenAITTS, RimeTTS, SalModeValues, SarvamSTT, SarvamTTS, SensetimeAvatar, SilenceActionValues, SpeakPriorityAppend, SpeakPriorityIgnore, SpeakPriorityInterrupt, SpeakPriorityValues,
13
+ OpenAIRealtime, OpenAISTT, OpenAITTS, RimeTTS, SalModeValues, SarvamSTT, SarvamTTS, SensetimeAvatar, SilenceActionValues, SpatiusAvatar, SpeakPriorityAppend, SpeakPriorityIgnore, SpeakPriorityInterrupt, SpeakPriorityValues,
14
14
  // STT vendors
15
- SpeechmaticsSTT, StepFunTTS, TencentLLM, TencentSTT, TencentTTS, ThinkOnListeningActionIgnore, ThinkOnListeningActionInject, ThinkOnListeningActionInterrupt, ThinkOnSpeakingActionIgnore, ThinkOnSpeakingActionInterrupt, ThinkOnThinkingActionIgnore, ThinkOnThinkingActionInterrupt, TurnDetectionTypeValues, toBaseAvatarConfig, VertexAI, VertexAILLM, validateAvatarConfig, validateTtsSampleRate, XaiGrok, XfyunBigModelSTT, XfyunDialectSTT, XfyunSTT, } from "./agentkit/index.mjs";
15
+ 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.mjs";
16
16
  export * as Agora from "./api/index.mjs";
17
17
  export { Area } from "./core/domain/index.mjs";
18
18
  export { AgoraEnvironment } from "./environments.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v2.2.0";
1
+ export declare const SDK_VERSION = "v2.5.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "v2.2.0";
1
+ export const SDK_VERSION = "v2.5.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agora-agents",
3
- "version": "2.3.1",
3
+ "version": "2.5.0",
4
4
  "private": false,
5
5
  "repository": "github:AgoraIO/agora-agents-ts",
6
6
  "type": "commonjs",
@@ -1,10 +0,0 @@
1
- export declare const ListAgentsRequestState: {
2
- readonly Zero: "0";
3
- readonly One: "1";
4
- readonly Two: "2";
5
- readonly Three: "3";
6
- readonly Four: "4";
7
- readonly Five: "5";
8
- readonly Six: "6";
9
- };
10
- export type ListAgentsRequestState = (typeof ListAgentsRequestState)[keyof typeof ListAgentsRequestState];
@@ -1,13 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.ListAgentsRequestState = void 0;
5
- exports.ListAgentsRequestState = {
6
- Zero: "0",
7
- One: "1",
8
- Two: "2",
9
- Three: "3",
10
- Four: "4",
11
- Five: "5",
12
- Six: "6",
13
- };
@@ -1,10 +0,0 @@
1
- export declare const ListAgentsRequestState: {
2
- readonly Zero: "0";
3
- readonly One: "1";
4
- readonly Two: "2";
5
- readonly Three: "3";
6
- readonly Four: "4";
7
- readonly Five: "5";
8
- readonly Six: "6";
9
- };
10
- export type ListAgentsRequestState = (typeof ListAgentsRequestState)[keyof typeof ListAgentsRequestState];
@@ -1,10 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export const ListAgentsRequestState = {
3
- Zero: "0",
4
- One: "1",
5
- Two: "2",
6
- Three: "3",
7
- Four: "4",
8
- Five: "5",
9
- Six: "6",
10
- };