agora-agents 2.4.0 → 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 (69) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/agentkit/__tests__/area-aware-vendors.test.js +4 -0
  3. package/dist/cjs/agentkit/constants.d.ts +6 -0
  4. package/dist/cjs/agentkit/constants.js +6 -1
  5. package/dist/cjs/agentkit/index.d.ts +4 -4
  6. package/dist/cjs/agentkit/index.js +6 -3
  7. package/dist/cjs/agentkit/region-vendors.d.ts +2 -1
  8. package/dist/cjs/agentkit/types.d.ts +5 -1
  9. package/dist/cjs/agentkit/vendors/mllm.d.ts +1 -1
  10. package/dist/cjs/agentkit/vendors/mllm.js +1 -1
  11. package/dist/cjs/agentkit/vendors/tts.d.ts +81 -9
  12. package/dist/cjs/agentkit/vendors/tts.js +70 -12
  13. package/dist/cjs/api/types/{GenericTts.d.ts → GenericHttpTts.d.ts} +3 -3
  14. package/dist/cjs/api/types/{GenericTtsParams.d.ts → GenericHttpTtsParams.d.ts} +3 -3
  15. package/dist/cjs/api/types/GradiumTts.d.ts +9 -0
  16. package/dist/cjs/api/types/GradiumTts.js +3 -0
  17. package/dist/cjs/api/types/GradiumTtsParams.d.ts +17 -0
  18. package/dist/cjs/api/types/GradiumTtsParams.js +3 -0
  19. package/dist/cjs/api/types/MistralTts.d.ts +9 -0
  20. package/dist/cjs/api/types/MistralTts.js +3 -0
  21. package/dist/cjs/api/types/MistralTtsParams.d.ts +13 -0
  22. package/dist/cjs/api/types/MistralTtsParams.js +3 -0
  23. package/dist/cjs/api/types/RimeTts.d.ts +10 -0
  24. package/dist/cjs/api/types/RimeTts.js +9 -0
  25. package/dist/cjs/api/types/RimeTtsParams.d.ts +2 -2
  26. package/dist/cjs/api/types/Tts.d.ts +9 -3
  27. package/dist/cjs/api/types/index.d.ts +6 -2
  28. package/dist/cjs/api/types/index.js +6 -2
  29. package/dist/cjs/index.d.ts +2 -2
  30. package/dist/cjs/index.js +6 -3
  31. package/dist/cjs/version.d.ts +1 -1
  32. package/dist/cjs/version.js +1 -1
  33. package/dist/esm/BaseClient.mjs +2 -2
  34. package/dist/esm/agentkit/__tests__/area-aware-vendors.test.mjs +5 -1
  35. package/dist/esm/agentkit/constants.d.mts +6 -0
  36. package/dist/esm/agentkit/constants.mjs +5 -0
  37. package/dist/esm/agentkit/index.d.mts +4 -4
  38. package/dist/esm/agentkit/index.mjs +2 -2
  39. package/dist/esm/agentkit/region-vendors.d.mts +2 -1
  40. package/dist/esm/agentkit/types.d.mts +5 -1
  41. package/dist/esm/agentkit/vendors/mllm.d.mts +1 -1
  42. package/dist/esm/agentkit/vendors/mllm.mjs +1 -1
  43. package/dist/esm/agentkit/vendors/tts.d.mts +81 -9
  44. package/dist/esm/agentkit/vendors/tts.mjs +67 -11
  45. package/dist/esm/api/types/{GenericTts.d.mts → GenericHttpTts.d.mts} +3 -3
  46. package/dist/esm/api/types/{GenericTtsParams.d.mts → GenericHttpTtsParams.d.mts} +3 -3
  47. package/dist/esm/api/types/GradiumTts.d.mts +9 -0
  48. package/dist/esm/api/types/GradiumTts.mjs +2 -0
  49. package/dist/esm/api/types/GradiumTtsParams.d.mts +17 -0
  50. package/dist/esm/api/types/GradiumTtsParams.mjs +2 -0
  51. package/dist/esm/api/types/MistralTts.d.mts +9 -0
  52. package/dist/esm/api/types/MistralTts.mjs +2 -0
  53. package/dist/esm/api/types/MistralTtsParams.d.mts +13 -0
  54. package/dist/esm/api/types/MistralTtsParams.mjs +2 -0
  55. package/dist/esm/api/types/RimeTts.d.mts +10 -0
  56. package/dist/esm/api/types/RimeTts.mjs +8 -1
  57. package/dist/esm/api/types/RimeTtsParams.d.mts +2 -2
  58. package/dist/esm/api/types/Tts.d.mts +9 -3
  59. package/dist/esm/api/types/index.d.mts +6 -2
  60. package/dist/esm/api/types/index.mjs +6 -2
  61. package/dist/esm/index.d.mts +2 -2
  62. package/dist/esm/index.mjs +3 -3
  63. package/dist/esm/version.d.mts +1 -1
  64. package/dist/esm/version.mjs +1 -1
  65. package/package.json +1 -1
  66. /package/dist/cjs/api/types/{GenericTts.js → GenericHttpTts.js} +0 -0
  67. /package/dist/cjs/api/types/{GenericTtsParams.js → GenericHttpTtsParams.js} +0 -0
  68. /package/dist/esm/api/types/{GenericTts.mjs → GenericHttpTts.mjs} +0 -0
  69. /package/dist/esm/api/types/{GenericTtsParams.mjs → GenericHttpTtsParams.mjs} +0 -0
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * Type-safe TTS (Text-to-Speech) vendor classes.
3
3
  */
4
+ import { CredentialMode } from "../constants.mjs";
4
5
  import { MiniMaxPresetModels, OpenAITtsPresetModels, } from "../presets.mjs";
5
6
  import { BaseTTS } from "./base.mjs";
6
7
  function requireString(value, field, vendor) {
@@ -186,6 +187,30 @@ export class DeepgramTTS extends BaseTTS {
186
187
  return Object.assign({ vendor: "deepgram", params: Object.assign(Object.assign(Object.assign({ api_key: apiKey, model }, additionalParams), (baseUrl && { base_url: baseUrl })), (sampleRate !== undefined && { sample_rate: sampleRate })) }, (skipPatterns && { skip_patterns: skipPatterns }));
187
188
  }
188
189
  }
190
+ /** Gradium TTS vendor. */
191
+ export class GradiumTTS extends BaseTTS {
192
+ constructor(options) {
193
+ super();
194
+ requireString(options.apiKey, "apiKey", "GradiumTTS");
195
+ this.options = options;
196
+ }
197
+ toConfig() {
198
+ const { apiKey, url, modelName, voiceId, sampleRate, additionalParams, skipPatterns } = this.options;
199
+ return Object.assign({ vendor: "gradium", params: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, additionalParams), { api_key: apiKey }), (url !== undefined && { url })), (modelName !== undefined && { model_name: modelName })), (voiceId !== undefined && { voice_id: voiceId })), (sampleRate !== undefined && { sample_rate: sampleRate })) }, (skipPatterns && { skip_patterns: skipPatterns }));
200
+ }
201
+ }
202
+ /** Mistral TTS vendor. */
203
+ export class MistralTTS extends BaseTTS {
204
+ constructor(options) {
205
+ super();
206
+ requireString(options.apiKey, "apiKey", "MistralTTS");
207
+ this.options = options;
208
+ }
209
+ toConfig() {
210
+ const { apiKey, model, voice, additionalParams, skipPatterns } = this.options;
211
+ return Object.assign({ vendor: "mistral", params: Object.assign(Object.assign(Object.assign(Object.assign({}, additionalParams), { api_key: apiKey }), (model !== undefined && { model })), (voice !== undefined && { voice })) }, (skipPatterns && { skip_patterns: skipPatterns }));
212
+ }
213
+ }
189
214
  /**
190
215
  * Hume AI TTS vendor.
191
216
  *
@@ -212,8 +237,19 @@ export class HumeAITTS extends BaseTTS {
212
237
  * Rime TTS vendor.
213
238
  *
214
239
  * @example
240
+ * Agora-managed credentials:
215
241
  * ```typescript
216
- * const tts = new RimeTTS({
242
+ * const managedTts = new RimeTTS({
243
+ * credentialMode: CredentialMode.Managed,
244
+ * baseUrl: 'wss://users.rime.ai/ws',
245
+ * modelId: 'mist',
246
+ * });
247
+ * ```
248
+ *
249
+ * @example
250
+ * Bring your own credentials (the default mode):
251
+ * ```typescript
252
+ * const byokTts = new RimeTTS({
217
253
  * key: process.env.RIME_API_KEY,
218
254
  * speaker: 'speaker-id',
219
255
  * modelId: 'mist',
@@ -223,12 +259,23 @@ export class HumeAITTS extends BaseTTS {
223
259
  export class RimeTTS extends BaseTTS {
224
260
  constructor(options) {
225
261
  super();
262
+ requireString(options.modelId, "modelId", "RimeTTS");
263
+ if (options.credentialMode === CredentialMode.Managed) {
264
+ requireString(options.baseUrl, "baseUrl", "RimeTTS");
265
+ }
266
+ else {
267
+ requireString(options.key, "key", "RimeTTS");
268
+ requireString(options.speaker, "speaker", "RimeTTS");
269
+ }
226
270
  this.options = options;
227
271
  }
228
272
  toConfig() {
229
- const { key, speaker, modelId, baseUrl, skipPatterns } = this.options;
230
- return Object.assign({ vendor: "rime", params: Object.assign({ api_key: key, speaker,
231
- modelId }, (baseUrl && { base_url: baseUrl })) }, (skipPatterns && { skip_patterns: skipPatterns }));
273
+ const { key, speaker, modelId, baseUrl, skipPatterns, credentialMode } = this.options;
274
+ if (credentialMode === CredentialMode.Managed) {
275
+ return Object.assign({ vendor: "rime", credential_mode: CredentialMode.Managed, params: Object.assign(Object.assign({ modelId, base_url: baseUrl }, (key !== undefined && { api_key: key })), (speaker !== undefined && { speaker })) }, (skipPatterns && { skip_patterns: skipPatterns }));
276
+ }
277
+ return Object.assign(Object.assign(Object.assign({ vendor: "rime" }, (credentialMode !== undefined && { credential_mode: credentialMode })), { params: Object.assign({ api_key: key, speaker,
278
+ modelId }, (baseUrl && { base_url: baseUrl })) }), (skipPatterns && { skip_patterns: skipPatterns }));
232
279
  }
233
280
  }
234
281
  /**
@@ -333,23 +380,32 @@ export class MurfTTS extends BaseTTS {
333
380
  return Object.assign({ vendor: "murf", params: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ api_key: key }, (baseUrl && { base_url: baseUrl })), (voiceId && { voiceId })), (locale && { locale })), (rate !== undefined && { rate })), (pitch !== undefined && { pitch })), (model && { model })), (sampleRate !== undefined && { sample_rate: sampleRate })) }, (skipPatterns && { skip_patterns: skipPatterns }));
334
381
  }
335
382
  }
383
+ function requireGenericTtsHttpUrl(url) {
384
+ requireString(url, "url", "GenericTTS");
385
+ let protocol;
386
+ try {
387
+ protocol = new URL(url).protocol;
388
+ }
389
+ catch (_a) {
390
+ throw new Error("GenericTTS requires url to be a valid absolute URL");
391
+ }
392
+ if (protocol === "http:" || protocol === "https:") {
393
+ return;
394
+ }
395
+ throw new Error(`GenericTTS does not support the ${protocol} protocol`);
396
+ }
336
397
  /**
337
398
  * Generic OpenAI-compatible TTS vendor.
338
399
  */
339
400
  export class GenericTTS extends BaseTTS {
340
401
  constructor(options) {
341
402
  super();
342
- requireString(options.url, "url", "GenericTTS");
343
- requireRecord(options.headers, "headers", "GenericTTS");
344
- requireString(options.model, "model", "GenericTTS");
345
- requireString(options.voice, "voice", "GenericTTS");
403
+ requireGenericTtsHttpUrl(options.url);
346
404
  this.options = options;
347
405
  }
348
406
  toConfig() {
349
407
  const { url, headers, apiKey, model, voice, speed, sampleRate, responseFormat, instruction, additionalParams, skipPatterns, } = this.options;
350
- return Object.assign({ vendor: "generic", url,
351
- headers, params: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, additionalParams), (apiKey !== undefined && { api_key: apiKey })), { model,
352
- voice }), (speed !== undefined && { speed })), (sampleRate !== undefined && { sample_rate: sampleRate })), (responseFormat !== undefined && { response_format: responseFormat })), (instruction !== undefined && { instruction })) }, (skipPatterns && { skip_patterns: skipPatterns }));
408
+ return Object.assign(Object.assign(Object.assign({ vendor: "generic_http", url }, (headers && { headers })), { params: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, additionalParams), (apiKey !== undefined && { api_key: apiKey })), (model !== undefined && { model })), (voice !== undefined && { voice })), (speed !== undefined && { speed })), (sampleRate !== undefined && { sample_rate: sampleRate })), (responseFormat !== undefined && { response_format: responseFormat })), (instruction !== undefined && { instruction })) }), (skipPatterns && { skip_patterns: skipPatterns }));
353
409
  }
354
410
  }
355
411
  /**
@@ -2,12 +2,12 @@ import type * as Agora from "../index.mjs";
2
2
  /**
3
3
  * Generic OpenAI-compatible Text-to-Speech configuration.
4
4
  */
5
- export interface GenericTts {
5
+ export interface GenericHttpTts {
6
6
  /** Callback address of the generic TTS service. */
7
7
  url: string;
8
8
  /** Custom headers to include in requests to the generic TTS service. */
9
- headers: Record<string, string>;
10
- params: Agora.GenericTtsParams;
9
+ headers?: Record<string, string>;
10
+ params: Agora.GenericHttpTtsParams;
11
11
  /** Controls whether the TTS module skips bracketed content when reading LLM response text. */
12
12
  skip_patterns?: number[];
13
13
  }
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * Generic TTS configuration parameters.
3
3
  */
4
- export interface GenericTtsParams {
4
+ export interface GenericHttpTtsParams {
5
5
  /** API key for the generic TTS service. */
6
6
  api_key?: string;
7
7
  /** TTS model name. */
8
- model: string;
8
+ model?: string;
9
9
  /** Voice name. */
10
- voice: string;
10
+ voice?: string;
11
11
  /** Speech rate. */
12
12
  speed?: number;
13
13
  /** Output audio sample rate in Hz. */
@@ -0,0 +1,9 @@
1
+ import type * as Agora from "../index.mjs";
2
+ /**
3
+ * Gradium Text-to-Speech configuration.
4
+ */
5
+ export interface GradiumTts {
6
+ params: Agora.GradiumTtsParams;
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,17 @@
1
+ /**
2
+ * Gradium TTS configuration parameters.
3
+ */
4
+ export interface GradiumTtsParams {
5
+ /** Gradium API key. */
6
+ api_key: string;
7
+ /** WebSocket endpoint for streaming TTS output (for example, "wss://api.gradium.ai/api/speech/tts"). */
8
+ url?: string;
9
+ /** Gradium TTS model name (for example, "default"). */
10
+ model_name?: string;
11
+ /** Gradium voice identifier. */
12
+ voice_id?: string;
13
+ /** Audio sample rate in Hz (for example, 16000). */
14
+ sample_rate?: number;
15
+ /** Accepts any additional properties */
16
+ [key: string]: any;
17
+ }
@@ -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
+ * Mistral Text-to-Speech configuration.
4
+ */
5
+ export interface MistralTts {
6
+ params: Agora.MistralTtsParams;
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,13 @@
1
+ /**
2
+ * Mistral TTS configuration parameters.
3
+ */
4
+ export interface MistralTtsParams {
5
+ /** Mistral API key. */
6
+ api_key: string;
7
+ /** Mistral TTS model name (for example, "voxtral-mini-tts-2603"). */
8
+ model?: string;
9
+ /** Mistral voice identifier. */
10
+ voice?: string;
11
+ /** Accepts any additional properties */
12
+ [key: string]: any;
13
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -3,7 +3,17 @@ import type * as Agora from "../index.mjs";
3
3
  * Rime Text-to-Speech configuration (Beta).
4
4
  */
5
5
  export interface RimeTts {
6
+ /** Credential mode. When provided, must be "managed" (Agora managed mode) or "byok" (BYOK mode). */
7
+ credential_mode?: RimeTts.CredentialMode;
6
8
  params: Agora.RimeTtsParams;
7
9
  /** Controls whether the TTS module skips bracketed content when reading LLM response text. */
8
10
  skip_patterns?: number[];
9
11
  }
12
+ export declare namespace RimeTts {
13
+ /** Credential mode. When provided, must be "managed" (Agora managed mode) or "byok" (BYOK mode). */
14
+ const CredentialMode: {
15
+ readonly Managed: "managed";
16
+ readonly Byok: "byok";
17
+ };
18
+ type CredentialMode = (typeof CredentialMode)[keyof typeof CredentialMode];
19
+ }
@@ -1,2 +1,9 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- export {};
2
+ export var RimeTts;
3
+ (function (RimeTts) {
4
+ /** Credential mode. When provided, must be "managed" (Agora managed mode) or "byok" (BYOK mode). */
5
+ RimeTts.CredentialMode = {
6
+ Managed: "managed",
7
+ Byok: "byok",
8
+ };
9
+ })(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.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.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;
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,10 @@ 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
+ }
64
70
  }
@@ -28,14 +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 "./GenericTts.mjs";
32
- export * from "./GenericTtsParams.mjs";
31
+ export * from "./GenericHttpTts.mjs";
32
+ export * from "./GenericHttpTtsParams.mjs";
33
33
  export * from "./GoogleAsr.mjs";
34
34
  export * from "./GoogleAsrParams.mjs";
35
35
  export * from "./GoogleTts.mjs";
36
36
  export * from "./GoogleTtsAudioConfig.mjs";
37
37
  export * from "./GoogleTtsParams.mjs";
38
38
  export * from "./GoogleTtsVoiceSelectionParams.mjs";
39
+ export * from "./GradiumTts.mjs";
40
+ export * from "./GradiumTtsParams.mjs";
39
41
  export * from "./HumeAiTts.mjs";
40
42
  export * from "./HumeAiTtsParams.mjs";
41
43
  export * from "./Llm.mjs";
@@ -46,6 +48,8 @@ export * from "./MicrosoftTts.mjs";
46
48
  export * from "./MicrosoftTtsParams.mjs";
47
49
  export * from "./MinimaxTts.mjs";
48
50
  export * from "./MinimaxTtsParams.mjs";
51
+ export * from "./MistralTts.mjs";
52
+ export * from "./MistralTtsParams.mjs";
49
53
  export * from "./Mllm.mjs";
50
54
  export * from "./MllmHttpOptions.mjs";
51
55
  export * from "./MllmInputAudioTranscription.mjs";
@@ -28,14 +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 "./GenericTts.mjs";
32
- export * from "./GenericTtsParams.mjs";
31
+ export * from "./GenericHttpTts.mjs";
32
+ export * from "./GenericHttpTtsParams.mjs";
33
33
  export * from "./GoogleAsr.mjs";
34
34
  export * from "./GoogleAsrParams.mjs";
35
35
  export * from "./GoogleTts.mjs";
36
36
  export * from "./GoogleTtsAudioConfig.mjs";
37
37
  export * from "./GoogleTtsParams.mjs";
38
38
  export * from "./GoogleTtsVoiceSelectionParams.mjs";
39
+ export * from "./GradiumTts.mjs";
40
+ export * from "./GradiumTtsParams.mjs";
39
41
  export * from "./HumeAiTts.mjs";
40
42
  export * from "./HumeAiTtsParams.mjs";
41
43
  export * from "./Llm.mjs";
@@ -46,6 +48,8 @@ export * from "./MicrosoftTts.mjs";
46
48
  export * from "./MicrosoftTtsParams.mjs";
47
49
  export * from "./MinimaxTts.mjs";
48
50
  export * from "./MinimaxTtsParams.mjs";
51
+ export * from "./MistralTts.mjs";
52
+ export * from "./MistralTtsParams.mjs";
49
53
  export * from "./Mllm.mjs";
50
54
  export * from "./MllmHttpOptions.mjs";
51
55
  export * from "./MllmInputAudioTranscription.mjs";
@@ -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, 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";
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,11 +2,11 @@ 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, GenericTTS, 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, isSpatiusAvatar, 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
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v2.3.2";
1
+ export declare const SDK_VERSION = "v2.5.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "v2.3.2";
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.4.0",
3
+ "version": "2.5.0",
4
4
  "private": false,
5
5
  "repository": "github:AgoraIO/agora-agents-ts",
6
6
  "type": "commonjs",