agora-agents 2.3.1 → 2.4.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 (111) 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/avatar-types.d.ts +18 -5
  6. package/dist/cjs/agentkit/avatar-types.js +31 -3
  7. package/dist/cjs/agentkit/index.d.ts +9 -9
  8. package/dist/cjs/agentkit/index.js +8 -3
  9. package/dist/cjs/agentkit/types.d.ts +22 -5
  10. package/dist/cjs/agentkit/vendors/avatar.d.ts +3 -3
  11. package/dist/cjs/agentkit/vendors/avatar.js +3 -3
  12. package/dist/cjs/agentkit/vendors/base.d.ts +4 -0
  13. package/dist/cjs/agentkit/vendors/base.js +4 -0
  14. package/dist/cjs/agentkit/vendors/cn.d.ts +19 -1
  15. package/dist/cjs/agentkit/vendors/cn.js +23 -3
  16. package/dist/cjs/agentkit/vendors/llm.d.ts +1 -1
  17. package/dist/cjs/agentkit/vendors/llm.js +13 -3
  18. package/dist/cjs/agentkit/vendors/mllm.js +2 -2
  19. package/dist/cjs/agentkit/vendors/stt.d.ts +31 -0
  20. package/dist/cjs/agentkit/vendors/stt.js +26 -1
  21. package/dist/cjs/agentkit/vendors/tts.d.ts +60 -0
  22. package/dist/cjs/agentkit/vendors/tts.js +42 -1
  23. package/dist/cjs/api/resources/agents/client/requests/ListAgentsRequest.d.ts +2 -3
  24. package/dist/cjs/api/resources/agents/client/requests/StartAgentsRequest.d.ts +18 -1
  25. package/dist/cjs/api/resources/agents/client/requests/StartAgentsRequest.js +8 -0
  26. package/dist/cjs/api/resources/agents/types/GetHistoryAgentsResponse.d.ts +6 -0
  27. package/dist/cjs/api/resources/agents/types/index.d.ts +0 -1
  28. package/dist/cjs/api/resources/agents/types/index.js +0 -1
  29. package/dist/cjs/api/types/Asr.d.ts +4 -1
  30. package/dist/cjs/api/types/GenericTts.d.ts +13 -0
  31. package/dist/cjs/api/types/GenericTts.js +3 -0
  32. package/dist/cjs/api/types/GenericTtsParams.d.ts +21 -0
  33. package/dist/cjs/api/types/GenericTtsParams.js +3 -0
  34. package/dist/cjs/api/types/Llm.d.ts +24 -1
  35. package/dist/cjs/api/types/Llm.js +8 -0
  36. package/dist/cjs/api/types/SpatiusAvatarParams.d.ts +23 -0
  37. package/dist/cjs/api/types/SpatiusAvatarParams.js +3 -0
  38. package/dist/cjs/api/types/Tts.d.ts +7 -1
  39. package/dist/cjs/api/types/XAiAsr.d.ts +10 -0
  40. package/dist/cjs/api/types/XAiAsr.js +3 -0
  41. package/dist/cjs/api/types/XAiAsrParams.d.ts +15 -0
  42. package/dist/cjs/api/types/XAiAsrParams.js +3 -0
  43. package/dist/cjs/api/types/XAiTts.d.ts +9 -0
  44. package/dist/cjs/api/types/XAiTts.js +3 -0
  45. package/dist/cjs/api/types/XAiTtsParams.d.ts +15 -0
  46. package/dist/cjs/api/types/XAiTtsParams.js +3 -0
  47. package/dist/cjs/api/types/index.d.ts +7 -0
  48. package/dist/cjs/api/types/index.js +7 -0
  49. package/dist/cjs/core/base64.js +1 -5
  50. package/dist/cjs/index.d.ts +2 -2
  51. package/dist/cjs/index.js +8 -3
  52. package/dist/cjs/version.d.ts +1 -1
  53. package/dist/cjs/version.js +1 -1
  54. package/dist/esm/BaseClient.mjs +2 -2
  55. package/dist/esm/Client.mjs +8 -16
  56. package/dist/esm/agentkit/Agent.mjs +6 -5
  57. package/dist/esm/agentkit/AgentSession.mjs +3 -1
  58. package/dist/esm/agentkit/avatar-types.d.mts +18 -5
  59. package/dist/esm/agentkit/avatar-types.mjs +30 -3
  60. package/dist/esm/agentkit/index.d.mts +9 -9
  61. package/dist/esm/agentkit/index.mjs +4 -4
  62. package/dist/esm/agentkit/types.d.mts +22 -5
  63. package/dist/esm/agentkit/vendors/avatar.d.mts +3 -3
  64. package/dist/esm/agentkit/vendors/avatar.mjs +3 -3
  65. package/dist/esm/agentkit/vendors/base.d.mts +4 -0
  66. package/dist/esm/agentkit/vendors/base.mjs +4 -0
  67. package/dist/esm/agentkit/vendors/cn.d.mts +19 -1
  68. package/dist/esm/agentkit/vendors/cn.mjs +21 -2
  69. package/dist/esm/agentkit/vendors/llm.d.mts +1 -1
  70. package/dist/esm/agentkit/vendors/llm.mjs +13 -3
  71. package/dist/esm/agentkit/vendors/mllm.mjs +2 -2
  72. package/dist/esm/agentkit/vendors/stt.d.mts +31 -0
  73. package/dist/esm/agentkit/vendors/stt.mjs +24 -0
  74. package/dist/esm/agentkit/vendors/tts.d.mts +60 -0
  75. package/dist/esm/agentkit/vendors/tts.mjs +39 -0
  76. package/dist/esm/api/resources/agents/client/requests/ListAgentsRequest.d.mts +2 -3
  77. package/dist/esm/api/resources/agents/client/requests/StartAgentsRequest.d.mts +18 -1
  78. package/dist/esm/api/resources/agents/client/requests/StartAgentsRequest.mjs +8 -0
  79. package/dist/esm/api/resources/agents/types/GetHistoryAgentsResponse.d.mts +6 -0
  80. package/dist/esm/api/resources/agents/types/index.d.mts +0 -1
  81. package/dist/esm/api/resources/agents/types/index.mjs +0 -1
  82. package/dist/esm/api/types/Asr.d.mts +4 -1
  83. package/dist/esm/api/types/GenericTts.d.mts +13 -0
  84. package/dist/esm/api/types/GenericTts.mjs +2 -0
  85. package/dist/esm/api/types/GenericTtsParams.d.mts +21 -0
  86. package/dist/esm/api/types/GenericTtsParams.mjs +2 -0
  87. package/dist/esm/api/types/Llm.d.mts +24 -1
  88. package/dist/esm/api/types/Llm.mjs +8 -0
  89. package/dist/esm/api/types/SpatiusAvatarParams.d.mts +23 -0
  90. package/dist/esm/api/types/SpatiusAvatarParams.mjs +2 -0
  91. package/dist/esm/api/types/Tts.d.mts +7 -1
  92. package/dist/esm/api/types/XAiAsr.d.mts +10 -0
  93. package/dist/esm/api/types/XAiAsr.mjs +2 -0
  94. package/dist/esm/api/types/XAiAsrParams.d.mts +15 -0
  95. package/dist/esm/api/types/XAiAsrParams.mjs +2 -0
  96. package/dist/esm/api/types/XAiTts.d.mts +9 -0
  97. package/dist/esm/api/types/XAiTts.mjs +2 -0
  98. package/dist/esm/api/types/XAiTtsParams.d.mts +15 -0
  99. package/dist/esm/api/types/XAiTtsParams.mjs +2 -0
  100. package/dist/esm/api/types/index.d.mts +7 -0
  101. package/dist/esm/api/types/index.mjs +7 -0
  102. package/dist/esm/core/base64.mjs +1 -5
  103. package/dist/esm/index.d.mts +2 -2
  104. package/dist/esm/index.mjs +4 -4
  105. package/dist/esm/version.d.mts +1 -1
  106. package/dist/esm/version.mjs +1 -1
  107. package/package.json +1 -1
  108. package/dist/cjs/api/resources/agents/types/ListAgentsRequestState.d.ts +0 -10
  109. package/dist/cjs/api/resources/agents/types/ListAgentsRequestState.js +0 -13
  110. package/dist/esm/api/resources/agents/types/ListAgentsRequestState.d.mts +0 -10
  111. package/dist/esm/api/resources/agents/types/ListAgentsRequestState.mjs +0 -10
@@ -85,7 +85,7 @@ export declare namespace StartAgentsRequest {
85
85
  * - `false`: Both agent and subscriber user IDs must be integers.
86
86
  */
87
87
  enable_string_uid?: boolean;
88
- /** Sets the timeout after all the users specified in `remote_rtc_uids` are detected to have left the channel. When the timeout value is exceeded, the agent automatically stops and exits the channel. A value of `0` means that the agent does not exit until it is stopped manually. */
88
+ /** Sets the timeout after all the users specified in `remote_rtc_uids` are detected to have left the channel. When the timeout value is exceeded, the agent automatically stops and exits the channel. A value of `0` disables exit due to channel idle timeout only; it does not allow the agent to run indefinitely. Regardless of this value, the maximum runtime of a single task is 72 hours, after which the agent automatically exits. */
89
89
  idle_timeout?: number;
90
90
  /** Regional access restriction configuration. Use this to limit which Agora servers the Conversational AI Engine can access based on geographic regions. */
91
91
  geofence?: Properties.Geofence;
@@ -173,6 +173,7 @@ export declare namespace StartAgentsRequest {
173
173
  * - `anam`: Anam (Beta)
174
174
  * - `generic`: Generic (Beta)
175
175
  * - `sensetime`: SenseTime Avatar
176
+ * - `spatius`: Spatius Avatar
176
177
  */
177
178
  vendor?: Avatar.Vendor;
178
179
  /** The configuration parameters for the avatar vendor. See [AI Avatar Overview](https://docs.agora.io/en/conversational-ai/models/avatar/overview) for details. */
@@ -186,6 +187,7 @@ export declare namespace StartAgentsRequest {
186
187
  * - `anam`: Anam (Beta)
187
188
  * - `generic`: Generic (Beta)
188
189
  * - `sensetime`: SenseTime Avatar
190
+ * - `spatius`: Spatius Avatar
189
191
  */
190
192
  const Vendor: {
191
193
  readonly Akool: "akool";
@@ -199,6 +201,9 @@ export declare namespace StartAgentsRequest {
199
201
  /**
200
202
  * SenseTime Avatar */
201
203
  readonly Sensetime: "sensetime";
204
+ /**
205
+ * Spatius Avatar */
206
+ readonly Spatius: "spatius";
202
207
  /**
203
208
  * Deprecated: HeyGen has renamed to LiveAvatar. Use `liveavatar` instead. */
204
209
  readonly Heygen: "heygen";
@@ -279,6 +284,7 @@ export declare namespace StartAgentsRequest {
279
284
  * - `vad`: Based on VAD (Voice Activity Detection). Uses audio signal detection.
280
285
  * - `keywords`: Deprecated. Use `interruption.mode = "keywords"` instead.
281
286
  * - `disabled`: Deprecated. Use `interruption.enable = false` with `interruption.disabled_config.strategy` to configure the handling strategy.
287
+ * - `manual`: The client explicitly submits the start of the user turn through signaling.
282
288
  */
283
289
  mode: StartOfSpeech.Mode;
284
290
  /** VAD configuration. Used when `mode` is `vad`. */
@@ -294,11 +300,13 @@ export declare namespace StartAgentsRequest {
294
300
  * - `vad`: Based on VAD (Voice Activity Detection). Uses audio signal detection.
295
301
  * - `keywords`: Deprecated. Use `interruption.mode = "keywords"` instead.
296
302
  * - `disabled`: Deprecated. Use `interruption.enable = false` with `interruption.disabled_config.strategy` to configure the handling strategy.
303
+ * - `manual`: The client explicitly submits the start of the user turn through signaling.
297
304
  */
298
305
  const Mode: {
299
306
  readonly Vad: "vad";
300
307
  readonly Keywords: "keywords";
301
308
  readonly Disabled: "disabled";
309
+ readonly Manual: "manual";
302
310
  };
303
311
  type Mode = (typeof Mode)[keyof typeof Mode];
304
312
  /**
@@ -349,6 +357,7 @@ export declare namespace StartAgentsRequest {
349
357
  * End of speech detection mode:
350
358
  * - `vad`: Based on VAD (Voice Activity Detection). Detects silence duration.
351
359
  * - `semantic`: Based on semantic triggering. Uses semantic understanding to determine when conversation ends.
360
+ * - `manual`: The client explicitly submits the end of the user turn through signaling.
352
361
  */
353
362
  mode?: EndOfSpeech.Mode;
354
363
  /** VAD configuration. Used when `mode` is `vad`. */
@@ -361,10 +370,12 @@ export declare namespace StartAgentsRequest {
361
370
  * End of speech detection mode:
362
371
  * - `vad`: Based on VAD (Voice Activity Detection). Detects silence duration.
363
372
  * - `semantic`: Based on semantic triggering. Uses semantic understanding to determine when conversation ends.
373
+ * - `manual`: The client explicitly submits the end of the user turn through signaling.
364
374
  */
365
375
  const Mode: {
366
376
  readonly Vad: "vad";
367
377
  readonly Semantic: "semantic";
378
+ readonly Manual: "manual";
368
379
  };
369
380
  type Mode = (typeof Mode)[keyof typeof Mode];
370
381
  /**
@@ -655,6 +666,12 @@ export declare namespace StartAgentsRequest {
655
666
  * - `aiserver`: Optimized for interactions between the user and the conversational AI agent in terms of latency and network resilience.
656
667
  */
657
668
  audio_scenario?: Parameters.AudioScenario;
669
+ /**
670
+ * Whether to disable data retention for the current session:
671
+ * - `false`: Default. Session data retention remains enabled.
672
+ * - `true`: Disables session data retention. When disabled, historical session content cannot be used for troubleshooting, effectiveness review, or agent optimization.
673
+ */
674
+ opt_out?: boolean;
658
675
  }
659
676
  namespace Parameters {
660
677
  /**
@@ -32,6 +32,7 @@ export var StartAgentsRequest;
32
32
  * - `anam`: Anam (Beta)
33
33
  * - `generic`: Generic (Beta)
34
34
  * - `sensetime`: SenseTime Avatar
35
+ * - `spatius`: Spatius Avatar
35
36
  */
36
37
  Avatar.Vendor = {
37
38
  Akool: "akool",
@@ -45,6 +46,9 @@ export var StartAgentsRequest;
45
46
  /**
46
47
  * SenseTime Avatar */
47
48
  Sensetime: "sensetime",
49
+ /**
50
+ * Spatius Avatar */
51
+ Spatius: "spatius",
48
52
  /**
49
53
  * Deprecated: HeyGen has renamed to LiveAvatar. Use `liveavatar` instead. */
50
54
  Heygen: "heygen",
@@ -61,11 +65,13 @@ export var StartAgentsRequest;
61
65
  * - `vad`: Based on VAD (Voice Activity Detection). Uses audio signal detection.
62
66
  * - `keywords`: Deprecated. Use `interruption.mode = "keywords"` instead.
63
67
  * - `disabled`: Deprecated. Use `interruption.enable = false` with `interruption.disabled_config.strategy` to configure the handling strategy.
68
+ * - `manual`: The client explicitly submits the start of the user turn through signaling.
64
69
  */
65
70
  StartOfSpeech.Mode = {
66
71
  Vad: "vad",
67
72
  Keywords: "keywords",
68
73
  Disabled: "disabled",
74
+ Manual: "manual",
69
75
  };
70
76
  let DisabledConfig;
71
77
  (function (DisabledConfig) {
@@ -86,10 +92,12 @@ export var StartAgentsRequest;
86
92
  * End of speech detection mode:
87
93
  * - `vad`: Based on VAD (Voice Activity Detection). Detects silence duration.
88
94
  * - `semantic`: Based on semantic triggering. Uses semantic understanding to determine when conversation ends.
95
+ * - `manual`: The client explicitly submits the end of the user turn through signaling.
89
96
  */
90
97
  EndOfSpeech.Mode = {
91
98
  Vad: "vad",
92
99
  Semantic: "semantic",
100
+ Manual: "manual",
93
101
  };
94
102
  })(EndOfSpeech = Config.EndOfSpeech || (Config.EndOfSpeech = {}));
95
103
  })(Config = TurnDetection.Config || (TurnDetection.Config = {}));
@@ -20,6 +20,12 @@ export declare namespace GetHistoryAgentsResponse {
20
20
  role?: Item.Role;
21
21
  /** Message content. */
22
22
  content?: string;
23
+ /** The start timestamp of the speech segment in milliseconds, relative to the beginning of the current session. Returned only when `llm.vendor='custom'`. */
24
+ speech_start_ms?: number;
25
+ /** The end timestamp of the speech segment in milliseconds, relative to the beginning of the current session. Returned only when `llm.vendor='custom'`. */
26
+ speech_end_ms?: number;
27
+ /** The total delay in milliseconds introduced by audio processing algorithms, including noise reduction, background voice suppression, and voiceprint locking, after audio is captured from the user's microphone. Use this value to align timestamps with cloud recording audio. Returned only when `llm.vendor='custom'`, `contents[].role='user'`, and actual voice input is present. */
28
+ speech_algorithmic_delay?: number;
23
29
  }
24
30
  namespace Item {
25
31
  /**
@@ -2,7 +2,6 @@ export * from "./GetAgentsResponse.mjs";
2
2
  export * from "./GetHistoryAgentsResponse.mjs";
3
3
  export * from "./GetTurnsAgentsResponse.mjs";
4
4
  export * from "./InterruptAgentsResponse.mjs";
5
- export * from "./ListAgentsRequestState.mjs";
6
5
  export * from "./ListAgentsResponse.mjs";
7
6
  export * from "./SpeakAgentsResponse.mjs";
8
7
  export * from "./StartAgentsResponse.mjs";
@@ -2,7 +2,6 @@ export * from "./GetAgentsResponse.mjs";
2
2
  export * from "./GetHistoryAgentsResponse.mjs";
3
3
  export * from "./GetTurnsAgentsResponse.mjs";
4
4
  export * from "./InterruptAgentsResponse.mjs";
5
- export * from "./ListAgentsRequestState.mjs";
6
5
  export * from "./ListAgentsResponse.mjs";
7
6
  export * from "./SpeakAgentsResponse.mjs";
8
7
  export * from "./StartAgentsResponse.mjs";
@@ -1,5 +1,5 @@
1
1
  import type * as Agora from "../index.mjs";
2
- export type Asr = Agora.Asr.Ares | Agora.Asr.Fengming | Agora.Asr.Tencent | Agora.Asr.Microsoft | Agora.Asr.Deepgram | Agora.Asr.Openai | Agora.Asr.Google | Agora.Asr.Amazon | Agora.Asr.Assemblyai | Agora.Asr.Speechmatics | Agora.Asr.Sarvam | Agora.Asr.Xfyun | Agora.Asr.XfyunBigmodel | Agora.Asr.XfyunDialect;
2
+ export type Asr = Agora.Asr.Ares | Agora.Asr.Fengming | Agora.Asr.Tencent | Agora.Asr.Microsoft | Agora.Asr.Deepgram | Agora.Asr.Openai | Agora.Asr.Google | Agora.Asr.Amazon | Agora.Asr.Assemblyai | Agora.Asr.Speechmatics | Agora.Asr.Sarvam | Agora.Asr.Xai | Agora.Asr.Xfyun | Agora.Asr.XfyunBigmodel | Agora.Asr.XfyunDialect;
3
3
  export declare namespace Asr {
4
4
  interface Ares extends Agora.AresAsr {
5
5
  vendor: "ares";
@@ -34,6 +34,9 @@ export declare namespace Asr {
34
34
  interface Sarvam extends Agora.SarvamAsr {
35
35
  vendor: "sarvam";
36
36
  }
37
+ interface Xai extends Agora.XAiAsr {
38
+ vendor: "xai";
39
+ }
37
40
  interface Xfyun extends Agora.XfyunAsr {
38
41
  vendor: "xfyun";
39
42
  }
@@ -0,0 +1,13 @@
1
+ import type * as Agora from "../index.mjs";
2
+ /**
3
+ * Generic OpenAI-compatible Text-to-Speech configuration.
4
+ */
5
+ export interface GenericTts {
6
+ /** Callback address of the generic TTS service. */
7
+ url: string;
8
+ /** Custom headers to include in requests to the generic TTS service. */
9
+ headers: Record<string, string>;
10
+ params: Agora.GenericTtsParams;
11
+ /** Controls whether the TTS module skips bracketed content when reading LLM response text. */
12
+ skip_patterns?: number[];
13
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Generic TTS configuration parameters.
3
+ */
4
+ export interface GenericTtsParams {
5
+ /** API key for the generic TTS service. */
6
+ api_key?: string;
7
+ /** TTS model name. */
8
+ model: string;
9
+ /** Voice name. */
10
+ voice: string;
11
+ /** Speech rate. */
12
+ speed?: number;
13
+ /** Output audio sample rate in Hz. */
14
+ sample_rate?: number;
15
+ /** Output audio format. ConvoAI currently supports `pcm` only. */
16
+ response_format?: "pcm";
17
+ /** Additional voice style control instruction. */
18
+ instruction?: string;
19
+ /** Accepts any additional properties */
20
+ [key: string]: any;
21
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -26,6 +26,8 @@ export interface Llm {
26
26
  output_modalities?: string[];
27
27
  /** Agent greeting. */
28
28
  greeting_message?: string;
29
+ /** Publicly accessible greeting audio URL. */
30
+ greeting_audio_url?: string;
29
31
  /** Prompt for agent activation failure. */
30
32
  failure_message?: string;
31
33
  /** LLM provider identifier. */
@@ -35,7 +37,7 @@ export interface Llm {
35
37
  /** Whether to handle empty Gemini responses. */
36
38
  ignore_empty?: boolean | null;
37
39
  /** Agent greeting broadcast configuration. */
38
- greeting_configs?: Record<string, unknown>;
40
+ greeting_configs?: Llm.GreetingConfigs;
39
41
  /** Template parameter configuration. */
40
42
  template_variables?: Record<string, string>;
41
43
  /** MCP server configuration. */
@@ -55,4 +57,25 @@ export declare namespace Llm {
55
57
  readonly Bedrock: "bedrock";
56
58
  };
57
59
  type Style = (typeof Style)[keyof typeof Style];
60
+ /**
61
+ * Agent greeting broadcast configuration.
62
+ */
63
+ interface GreetingConfigs {
64
+ /** Timeout in milliseconds for downloading greeting audio. */
65
+ audio_download_timeout_ms?: number | null;
66
+ /** Sample rate in Hz for PCM greeting audio. */
67
+ audio_pcm_sample_rate?: number | null;
68
+ /** Policy for handling ASR text during uninterruptible greeting playback. */
69
+ uninterruptible_asr_policy?: GreetingConfigs.UninterruptibleAsrPolicy | null;
70
+ /** Accepts any additional properties */
71
+ [key: string]: any;
72
+ }
73
+ namespace GreetingConfigs {
74
+ /** Policy for handling ASR text during uninterruptible greeting playback. */
75
+ const UninterruptibleAsrPolicy: {
76
+ readonly MergeReply: "merge_reply";
77
+ readonly Context: "context";
78
+ };
79
+ type UninterruptibleAsrPolicy = (typeof UninterruptibleAsrPolicy)[keyof typeof UninterruptibleAsrPolicy];
80
+ }
58
81
  }
@@ -9,4 +9,12 @@ export var Llm;
9
9
  Dify: "dify",
10
10
  Bedrock: "bedrock",
11
11
  };
12
+ let GreetingConfigs;
13
+ (function (GreetingConfigs) {
14
+ /** Policy for handling ASR text during uninterruptible greeting playback. */
15
+ GreetingConfigs.UninterruptibleAsrPolicy = {
16
+ MergeReply: "merge_reply",
17
+ Context: "context",
18
+ };
19
+ })(GreetingConfigs = Llm.GreetingConfigs || (Llm.GreetingConfigs = {}));
12
20
  })(Llm || (Llm = {}));
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Spatius Avatar configuration parameters.
3
+ */
4
+ export interface SpatiusAvatarParams {
5
+ /** Spatius API key. */
6
+ spatius_api_key: string;
7
+ /** Spatius application ID. */
8
+ spatius_app_id: string;
9
+ /** Spatius avatar ID. */
10
+ spatius_avatar_id: string;
11
+ /** Agora UID used by the avatar service. */
12
+ agora_uid: string;
13
+ /** RTC token generated for `agora_uid` in the target channel. */
14
+ agora_token?: string | null;
15
+ /** Spatius service region, for example `cn-beijing`. */
16
+ region?: string | null;
17
+ /** Audio sample rate in Hz. Recommended to match the TTS sample rate. */
18
+ sample_rate?: number | null;
19
+ /** Spatius session validity duration in minutes. Defaults to 30. */
20
+ session_expire_minutes?: number | null;
21
+ /** Accepts any additional properties */
22
+ [key: string]: any;
23
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,5 +1,5 @@
1
1
  import type * as Agora from "../index.mjs";
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.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.Generic | Agora.Tts.Xai | Agora.Tts.Deepgram | Agora.Tts.Cosyvoice | Agora.Tts.BytedanceDuplex | Agora.Tts.Stepfun;
3
3
  export declare namespace Tts {
4
4
  interface Tencent extends Agora.TencentTts {
5
5
  vendor: "tencent";
@@ -43,6 +43,12 @@ 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";
48
+ }
49
+ interface Xai extends Agora.XAiTts {
50
+ vendor: "xai";
51
+ }
46
52
  interface Deepgram extends Agora.DeepgramTts {
47
53
  vendor: "deepgram";
48
54
  }
@@ -0,0 +1,10 @@
1
+ import type * as Agora from "../index.mjs";
2
+ /**
3
+ * xAI ASR configuration.
4
+ */
5
+ export interface XAiAsr {
6
+ language?: Agora.AsrLanguage;
7
+ params: Agora.XAiAsrParams;
8
+ /** Accepts any additional properties */
9
+ [key: string]: any;
10
+ }
@@ -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 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,6 +28,8 @@ 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 "./GenericTts.mjs";
32
+ export * from "./GenericTtsParams.mjs";
31
33
  export * from "./GoogleAsr.mjs";
32
34
  export * from "./GoogleAsrParams.mjs";
33
35
  export * from "./GoogleTts.mjs";
@@ -63,6 +65,7 @@ export * from "./SarvamAsrParams.mjs";
63
65
  export * from "./SarvamTts.mjs";
64
66
  export * from "./SarvamTtsParams.mjs";
65
67
  export * from "./SensetimeAvatarParams.mjs";
68
+ export * from "./SpatiusAvatarParams.mjs";
66
69
  export * from "./SpeechmaticsAsr.mjs";
67
70
  export * from "./SpeechmaticsAsrParams.mjs";
68
71
  export * from "./StepfunTts.mjs";
@@ -73,6 +76,10 @@ export * from "./TencentAsrParams.mjs";
73
76
  export * from "./TencentTts.mjs";
74
77
  export * from "./TencentTtsParams.mjs";
75
78
  export * from "./Tts.mjs";
79
+ export * from "./XAiAsr.mjs";
80
+ export * from "./XAiAsrParams.mjs";
81
+ export * from "./XAiTts.mjs";
82
+ export * from "./XAiTtsParams.mjs";
76
83
  export * from "./XfyunAsr.mjs";
77
84
  export * from "./XfyunAsrParams.mjs";
78
85
  export * from "./XfyunBigmodelAsr.mjs";
@@ -28,6 +28,8 @@ 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 "./GenericTts.mjs";
32
+ export * from "./GenericTtsParams.mjs";
31
33
  export * from "./GoogleAsr.mjs";
32
34
  export * from "./GoogleAsrParams.mjs";
33
35
  export * from "./GoogleTts.mjs";
@@ -63,6 +65,7 @@ export * from "./SarvamAsrParams.mjs";
63
65
  export * from "./SarvamTts.mjs";
64
66
  export * from "./SarvamTtsParams.mjs";
65
67
  export * from "./SensetimeAvatarParams.mjs";
68
+ export * from "./SpatiusAvatarParams.mjs";
66
69
  export * from "./SpeechmaticsAsr.mjs";
67
70
  export * from "./SpeechmaticsAsrParams.mjs";
68
71
  export * from "./StepfunTts.mjs";
@@ -73,6 +76,10 @@ export * from "./TencentAsrParams.mjs";
73
76
  export * from "./TencentTts.mjs";
74
77
  export * from "./TencentTtsParams.mjs";
75
78
  export * from "./Tts.mjs";
79
+ export * from "./XAiAsr.mjs";
80
+ export * from "./XAiAsrParams.mjs";
81
+ export * from "./XAiTts.mjs";
82
+ export * from "./XAiTtsParams.mjs";
76
83
  export * from "./XfyunAsr.mjs";
77
84
  export * from "./XfyunAsrParams.mjs";
78
85
  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, 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.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, 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.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";
@@ -4,15 +4,15 @@ export { Agent, AgentPresets, AgentSession, AkoolAvatar, AliyunLLM, AmazonBedroc
4
4
  // Base vendor classes
5
5
  BaseLLM, BaseMLLM, BaseSTT, BaseTTS, BytedanceDuplexTTS, BytedanceLLM, BytedanceTTS, CartesiaTTS, CosyVoiceTTS, 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, 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, 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.3.2";
@@ -1 +1 @@
1
- export const SDK_VERSION = "v2.2.0";
1
+ export const SDK_VERSION = "v2.3.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agora-agents",
3
- "version": "2.3.1",
3
+ "version": "2.4.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
- };