agora-agents 2.9.0 → 2.10.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 (91) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/agentkit/Agent.js +3 -3
  3. package/dist/cjs/agentkit/index.d.ts +8 -10
  4. package/dist/cjs/agentkit/index.js +10 -8
  5. package/dist/cjs/agentkit/preview/client.d.ts +6 -18
  6. package/dist/cjs/agentkit/preview/client.js +17 -84
  7. package/dist/cjs/agentkit/preview/index.d.ts +4 -2
  8. package/dist/cjs/agentkit/preview/index.js +4 -2
  9. package/dist/cjs/agentkit/preview/vendors.d.ts +8 -104
  10. package/dist/cjs/agentkit/preview/vendors.js +14 -115
  11. package/dist/cjs/agentkit/types.d.ts +10 -4
  12. package/dist/cjs/agentkit/vendors/base.d.ts +15 -4
  13. package/dist/cjs/agentkit/vendors/base.js +16 -5
  14. package/dist/cjs/agentkit/vendors/cn.js +2 -2
  15. package/dist/cjs/agentkit/vendors/llm.js +2 -2
  16. package/dist/cjs/agentkit/vendors/mllm.d.ts +92 -10
  17. package/dist/cjs/agentkit/vendors/mllm.js +115 -18
  18. package/dist/cjs/agentkit/vendors/stt.d.ts +41 -0
  19. package/dist/cjs/agentkit/vendors/stt.js +18 -1
  20. package/dist/cjs/agentkit/vendors/tts.d.ts +27 -0
  21. package/dist/cjs/agentkit/vendors/tts.js +16 -1
  22. package/dist/cjs/api/resources/agents/client/requests/StartAgentsRequest.d.ts +11 -5
  23. package/dist/cjs/api/resources/agents/client/requests/StartAgentsRequest.js +3 -1
  24. package/dist/cjs/api/types/AnamAvatarParams.d.ts +42 -0
  25. package/dist/cjs/api/types/AnamAvatarParams.js +18 -0
  26. package/dist/cjs/api/types/Asr.d.ts +4 -1
  27. package/dist/cjs/api/types/LlmTool.d.ts +7 -0
  28. package/dist/cjs/api/types/McpServer.d.ts +24 -0
  29. package/dist/cjs/api/types/McpServer.js +3 -0
  30. package/dist/cjs/api/types/Mllm.d.ts +14 -0
  31. package/dist/cjs/api/types/SmallestAiAsr.d.ts +11 -0
  32. package/dist/cjs/api/types/SmallestAiAsr.js +3 -0
  33. package/dist/cjs/api/types/SmallestAiAsrParams.d.ts +49 -0
  34. package/dist/cjs/api/types/SmallestAiAsrParams.js +3 -0
  35. package/dist/cjs/api/types/SmallestAiTts.d.ts +9 -0
  36. package/dist/cjs/api/types/SmallestAiTts.js +3 -0
  37. package/dist/cjs/api/types/SmallestAiTtsParams.d.ts +31 -0
  38. package/dist/cjs/api/types/SmallestAiTtsParams.js +3 -0
  39. package/dist/cjs/api/types/Tts.d.ts +4 -1
  40. package/dist/cjs/api/types/index.d.ts +6 -0
  41. package/dist/cjs/api/types/index.js +6 -0
  42. package/dist/cjs/index.d.ts +2 -2
  43. package/dist/cjs/index.js +6 -3
  44. package/dist/cjs/version.d.ts +1 -1
  45. package/dist/cjs/version.js +1 -1
  46. package/dist/esm/BaseClient.mjs +2 -2
  47. package/dist/esm/agentkit/Agent.mjs +2 -2
  48. package/dist/esm/agentkit/index.d.mts +8 -10
  49. package/dist/esm/agentkit/index.mjs +3 -4
  50. package/dist/esm/agentkit/preview/client.d.mts +6 -18
  51. package/dist/esm/agentkit/preview/client.mjs +17 -84
  52. package/dist/esm/agentkit/preview/index.d.mts +4 -2
  53. package/dist/esm/agentkit/preview/index.mjs +2 -1
  54. package/dist/esm/agentkit/preview/vendors.d.mts +8 -104
  55. package/dist/esm/agentkit/preview/vendors.mjs +5 -112
  56. package/dist/esm/agentkit/types.d.mts +10 -4
  57. package/dist/esm/agentkit/vendors/base.d.mts +15 -4
  58. package/dist/esm/agentkit/vendors/base.mjs +16 -5
  59. package/dist/esm/agentkit/vendors/cn.mjs +2 -2
  60. package/dist/esm/agentkit/vendors/llm.mjs +2 -2
  61. package/dist/esm/agentkit/vendors/mllm.d.mts +92 -10
  62. package/dist/esm/agentkit/vendors/mllm.mjs +111 -16
  63. package/dist/esm/agentkit/vendors/stt.d.mts +41 -0
  64. package/dist/esm/agentkit/vendors/stt.mjs +16 -0
  65. package/dist/esm/agentkit/vendors/tts.d.mts +27 -0
  66. package/dist/esm/agentkit/vendors/tts.mjs +14 -0
  67. package/dist/esm/api/resources/agents/client/requests/StartAgentsRequest.d.mts +11 -5
  68. package/dist/esm/api/resources/agents/client/requests/StartAgentsRequest.mjs +3 -1
  69. package/dist/esm/api/types/AnamAvatarParams.d.mts +42 -0
  70. package/dist/esm/api/types/AnamAvatarParams.mjs +15 -0
  71. package/dist/esm/api/types/Asr.d.mts +4 -1
  72. package/dist/esm/api/types/LlmTool.d.mts +7 -0
  73. package/dist/esm/api/types/McpServer.d.mts +24 -0
  74. package/dist/esm/api/types/McpServer.mjs +2 -0
  75. package/dist/esm/api/types/Mllm.d.mts +14 -0
  76. package/dist/esm/api/types/SmallestAiAsr.d.mts +11 -0
  77. package/dist/esm/api/types/SmallestAiAsr.mjs +2 -0
  78. package/dist/esm/api/types/SmallestAiAsrParams.d.mts +49 -0
  79. package/dist/esm/api/types/SmallestAiAsrParams.mjs +2 -0
  80. package/dist/esm/api/types/SmallestAiTts.d.mts +9 -0
  81. package/dist/esm/api/types/SmallestAiTts.mjs +2 -0
  82. package/dist/esm/api/types/SmallestAiTtsParams.d.mts +31 -0
  83. package/dist/esm/api/types/SmallestAiTtsParams.mjs +2 -0
  84. package/dist/esm/api/types/Tts.d.mts +4 -1
  85. package/dist/esm/api/types/index.d.mts +6 -0
  86. package/dist/esm/api/types/index.mjs +6 -0
  87. package/dist/esm/index.d.mts +2 -2
  88. package/dist/esm/index.mjs +2 -2
  89. package/dist/esm/version.d.mts +1 -1
  90. package/dist/esm/version.mjs +1 -1
  91. package/package.json +1 -1
@@ -3,7 +3,7 @@
3
3
  * Type-safe STT (Speech-to-Text) vendor classes.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.XAiSTT = exports.SarvamSTT = exports.AresSTT = exports.AssemblyAISTT = exports.AmazonSTT = exports.GoogleSTT = exports.OpenAISTT = exports.MicrosoftSTT = exports.DeepgramSTT = exports.SpeechmaticsSTT = exports.GeminiSTT = exports.GeminiTranscriptionMode = exports.GeminiSTTModels = void 0;
6
+ exports.SmallestAISTT = exports.XAiSTT = exports.SarvamSTT = exports.AresSTT = exports.AssemblyAISTT = exports.AmazonSTT = exports.GoogleSTT = exports.OpenAISTT = exports.MicrosoftSTT = exports.DeepgramSTT = exports.SpeechmaticsSTT = exports.GeminiSTT = exports.GeminiTranscriptionMode = exports.GeminiSTTModels = void 0;
7
7
  const presets_js_1 = require("../presets.js");
8
8
  const base_js_1 = require("./base.js");
9
9
  function _requireString(value, field, vendor) {
@@ -329,3 +329,20 @@ class XAiSTT extends base_js_1.BaseSTT {
329
329
  }
330
330
  }
331
331
  exports.XAiSTT = XAiSTT;
332
+ /** Smallest AI streaming STT vendor. */
333
+ class SmallestAISTT extends base_js_1.BaseSTT {
334
+ constructor(options) {
335
+ super();
336
+ this.options = options;
337
+ if (!options.apiKey)
338
+ throw new Error("SmallestAISTT requires apiKey");
339
+ }
340
+ toConfig() {
341
+ const o = this.options;
342
+ return {
343
+ vendor: "smallestai",
344
+ params: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, o.additionalParams), { api_key: o.apiKey }), (o.language !== undefined && { language: o.language })), (o.url !== undefined && { url: o.url })), (o.sampleRate !== undefined && { sample_rate: o.sampleRate })), (o.encoding !== undefined && { encoding: o.encoding })), (o.wordTimestamps !== undefined && { word_timestamps: String(o.wordTimestamps) })), (o.sentenceTimestamps !== undefined && { sentence_timestamps: String(o.sentenceTimestamps) })), (o.diarize !== undefined && { diarize: String(o.diarize) })), (o.vadEvents !== undefined && { vad_events: String(o.vadEvents) })), (o.endpointing !== undefined && { endpointing: String(o.endpointing) })), (o.eouTimeoutMs !== undefined && { eou_timeout_ms: o.eouTimeoutMs })), (o.format !== undefined && { format: String(o.format) })), (o.finalizeOnWords !== undefined && { finalize_on_words: String(o.finalizeOnWords) })), (o.maxWords !== undefined && { max_words: o.maxWords })), (o.punctuate !== undefined && { punctuate: String(o.punctuate) })), (o.capitalize !== undefined && { capitalize: String(o.capitalize) })), (o.itnNormalize !== undefined && { itn_normalize: String(o.itnNormalize) })), (o.fullTranscript !== undefined && { full_transcript: String(o.fullTranscript) })), (o.keywords !== undefined && { keywords: o.keywords })), (o.redactPii !== undefined && { redact_pii: String(o.redactPii) })), (o.redactPci !== undefined && { redact_pci: String(o.redactPci) })),
345
+ };
346
+ }
347
+ }
348
+ exports.SmallestAISTT = SmallestAISTT;
@@ -652,4 +652,31 @@ export declare class XAiTTS extends BaseTTS {
652
652
  constructor(options: XAiTTSOptions);
653
653
  toConfig(): TtsConfig;
654
654
  }
655
+ /** Constructor options for Smallest AI TTS. */
656
+ export interface SmallestAITTSOptions {
657
+ /** Smallest AI API key. */
658
+ apiKey: string;
659
+ /** HTTP endpoint for the Smallest AI streaming TTS API. */
660
+ url?: string;
661
+ model?: string;
662
+ voiceId?: string;
663
+ sampleRate?: number;
664
+ speed?: number;
665
+ language?: string;
666
+ numberPronunciationLanguage?: string;
667
+ mathNotation?: boolean;
668
+ pronunciationDicts?: string[];
669
+ sessionId?: string;
670
+ requestId?: string;
671
+ /** Additional Smallest AI parameters. Explicit options take precedence. */
672
+ additionalParams?: Partial<import("../types.js").SmallestAiTtsParams>;
673
+ /** Skip patterns for bracketed content. */
674
+ skipPatterns?: number[];
675
+ }
676
+ /** Smallest AI streaming TTS vendor. */
677
+ export declare class SmallestAITTS extends BaseTTS {
678
+ private readonly options;
679
+ constructor(options: SmallestAITTSOptions);
680
+ toConfig(): TtsConfig;
681
+ }
655
682
  export {};
@@ -3,7 +3,7 @@
3
3
  * Type-safe TTS (Text-to-Speech) vendor classes.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.XAiTTS = exports.GenericTTS = exports.MurfTTS = exports.SarvamTTS = exports.MiniMaxTTS = exports.FishAudioTTS = exports.RimeTTS = exports.HumeAITTS = exports.TypecastTTS = exports.MistralTTS = exports.GradiumTTS = exports.DeepgramTTS = exports.AmazonTTS = exports.GoogleTTS = exports.CartesiaTTS = exports.OpenAITTS = exports.MicrosoftTTS = exports.ElevenLabsTTS = void 0;
6
+ exports.SmallestAITTS = exports.XAiTTS = exports.GenericTTS = exports.MurfTTS = exports.SarvamTTS = exports.MiniMaxTTS = exports.FishAudioTTS = exports.RimeTTS = exports.HumeAITTS = exports.TypecastTTS = exports.MistralTTS = exports.GradiumTTS = exports.DeepgramTTS = exports.AmazonTTS = exports.GoogleTTS = exports.CartesiaTTS = exports.OpenAITTS = exports.MicrosoftTTS = exports.ElevenLabsTTS = void 0;
7
7
  const constants_js_1 = require("../constants.js");
8
8
  const presets_js_1 = require("../presets.js");
9
9
  const base_js_1 = require("./base.js");
@@ -458,3 +458,18 @@ class XAiTTS extends base_js_1.BaseTTS {
458
458
  }
459
459
  }
460
460
  exports.XAiTTS = XAiTTS;
461
+ /** Smallest AI streaming TTS vendor. */
462
+ class SmallestAITTS extends base_js_1.BaseTTS {
463
+ constructor(options) {
464
+ super();
465
+ this.options = options;
466
+ requireString(options.apiKey, "apiKey", "SmallestAITTS");
467
+ }
468
+ toConfig() {
469
+ const o = this.options;
470
+ return Object.assign({ vendor: "smallestai", params: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, o.additionalParams), { api_key: o.apiKey }), (o.url !== undefined && { url: o.url })), (o.model !== undefined && { model: o.model })), (o.voiceId !== undefined && { voice_id: o.voiceId })), (o.sampleRate !== undefined && { sample_rate: o.sampleRate })), (o.speed !== undefined && { speed: o.speed })), (o.language !== undefined && { language: o.language })), (o.numberPronunciationLanguage !== undefined && {
471
+ number_pronunciation_language: o.numberPronunciationLanguage,
472
+ })), (o.mathNotation !== undefined && { math_notation: o.mathNotation })), (o.pronunciationDicts !== undefined && { pronunciation_dicts: o.pronunciationDicts })), (o.sessionId !== undefined && { session_id: o.sessionId })), (o.requestId !== undefined && { request_id: o.requestId })) }, (o.skipPatterns !== undefined && { skip_patterns: o.skipPatterns }));
473
+ }
474
+ }
475
+ exports.SmallestAITTS = SmallestAITTS;
@@ -194,6 +194,8 @@ export declare namespace StartAgentsRequest {
194
194
  /**
195
195
  * LiveAvatar (Beta) — formerly HeyGen */
196
196
  readonly Liveavatar: "liveavatar";
197
+ /**
198
+ * Anam Avatar (Beta) */
197
199
  readonly Anam: "anam";
198
200
  /**
199
201
  * Generic avatar (Beta) */
@@ -608,7 +610,7 @@ export declare namespace StartAgentsRequest {
608
610
  /**
609
611
  * Filler word content mode:
610
612
  * - `static`: Static filler words. Uses a predefined list of filler words.
611
- * - `generated`: LLM-generated filler words based on the last user message.
613
+ * - `generated`: LLM-generated filler words based on recent conversation context.
612
614
  */
613
615
  mode?: Content.Mode;
614
616
  /** Static filler word configuration. Required when `mode` is `static`. */
@@ -620,7 +622,7 @@ export declare namespace StartAgentsRequest {
620
622
  /**
621
623
  * Filler word content mode:
622
624
  * - `static`: Static filler words. Uses a predefined list of filler words.
623
- * - `generated`: LLM-generated filler words based on the last user message.
625
+ * - `generated`: LLM-generated filler words based on recent conversation context.
624
626
  */
625
627
  const Mode: {
626
628
  readonly Static: "static";
@@ -656,16 +658,20 @@ export declare namespace StartAgentsRequest {
656
658
  * Optional configuration for generated filler words. When omitted, the service uses its default generator settings.
657
659
  */
658
660
  interface GeneratedConfig {
659
- /** OpenAI-compatible LLM provider used to generate filler words. Runs in parallel with the main business LLM and only uses the last user message as input. */
661
+ /** OpenAI-compatible LLM provider used to generate filler words. Runs in parallel with the main business LLM. */
660
662
  llm_provider?: GeneratedConfig.LlmProvider;
661
- /** System prompt used to generate a short filler phrase based on the last user message. The generated text should be conversational and must not answer the user's question. */
663
+ /** System prompt used to generate a short filler phrase based on recent conversation context. The generated text should be conversational and must not answer the user's question. */
662
664
  prompt?: string;
663
665
  /** Fallback strategy when generated filler text is not ready, fails, or returns empty text. Phase 1 only supports `static`. */
664
666
  fallback_strategy?: "static";
667
+ /** Maximum number of recent conversation messages used to generate a filler word. */
668
+ context_message_limit?: number;
669
+ /** Maximum number of characters from conversation history used to generate a filler word. */
670
+ history_character_limit?: number;
665
671
  }
666
672
  namespace GeneratedConfig {
667
673
  /**
668
- * OpenAI-compatible LLM provider used to generate filler words. Runs in parallel with the main business LLM and only uses the last user message as input.
674
+ * OpenAI-compatible LLM provider used to generate filler words. Runs in parallel with the main business LLM.
669
675
  */
670
676
  interface LlmProvider {
671
677
  /** URL of the OpenAI-compatible chat completions endpoint. If the URL does not end with `/chat/completions`, the engine appends it automatically. */
@@ -42,6 +42,8 @@ var StartAgentsRequest;
42
42
  /**
43
43
  * LiveAvatar (Beta) — formerly HeyGen */
44
44
  Liveavatar: "liveavatar",
45
+ /**
46
+ * Anam Avatar (Beta) */
45
47
  Anam: "anam",
46
48
  /**
47
49
  * Generic avatar (Beta) */
@@ -190,7 +192,7 @@ var StartAgentsRequest;
190
192
  /**
191
193
  * Filler word content mode:
192
194
  * - `static`: Static filler words. Uses a predefined list of filler words.
193
- * - `generated`: LLM-generated filler words based on the last user message.
195
+ * - `generated`: LLM-generated filler words based on recent conversation context.
194
196
  */
195
197
  Content.Mode = {
196
198
  Static: "static",
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Anam Avatar configuration parameters.
3
+ */
4
+ export interface AnamAvatarParams {
5
+ /** Anam API key. */
6
+ api_key: string;
7
+ /** The unique identifier for the Anam avatar you want to use. */
8
+ avatar_id: string;
9
+ /** The unique identifier for the avatar's RTC connection. This must be different from other participants in the channel. */
10
+ agora_uid: string;
11
+ /** The RTC token that authorizes the avatar to join the video channel. */
12
+ agora_token: string;
13
+ /** The audio sample rate in Hz. */
14
+ sample_rate?: number;
15
+ /** The video quality level. */
16
+ quality?: AnamAvatarParams.Quality;
17
+ /** The video encoding format. */
18
+ video_encoding?: AnamAvatarParams.VideoEncoding;
19
+ /** Anam avatar model, such as `cara_mk4` for Cara 4 portrait mode. */
20
+ avatar_model?: string;
21
+ /** Anam output video width in pixels. Set together with `video_height`; omit both to use the model default resolution. */
22
+ video_width?: number;
23
+ /** Anam output video height in pixels. Set together with `video_width`; omit both to use the model default resolution. */
24
+ video_height?: number;
25
+ /** Accepts any additional properties */
26
+ [key: string]: any;
27
+ }
28
+ export declare namespace AnamAvatarParams {
29
+ /** The video quality level. */
30
+ const Quality: {
31
+ readonly High: "high";
32
+ readonly Medium: "medium";
33
+ readonly Low: "low";
34
+ };
35
+ type Quality = (typeof Quality)[keyof typeof Quality];
36
+ /** The video encoding format. */
37
+ const VideoEncoding: {
38
+ readonly H264: "H264";
39
+ readonly Av1: "AV1";
40
+ };
41
+ type VideoEncoding = (typeof VideoEncoding)[keyof typeof VideoEncoding];
42
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.AnamAvatarParams = void 0;
5
+ var AnamAvatarParams;
6
+ (function (AnamAvatarParams) {
7
+ /** The video quality level. */
8
+ AnamAvatarParams.Quality = {
9
+ High: "high",
10
+ Medium: "medium",
11
+ Low: "low",
12
+ };
13
+ /** The video encoding format. */
14
+ AnamAvatarParams.VideoEncoding = {
15
+ H264: "H264",
16
+ Av1: "AV1",
17
+ };
18
+ })(AnamAvatarParams || (exports.AnamAvatarParams = AnamAvatarParams = {}));
@@ -1,5 +1,5 @@
1
1
  import type * as Agora from "../index.js";
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.Gemini | Agora.Asr.Amazon | Agora.Asr.Assemblyai | Agora.Asr.Speechmatics | Agora.Asr.Sarvam | Agora.Asr.Xai | 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.Gemini | Agora.Asr.Amazon | Agora.Asr.Assemblyai | Agora.Asr.Speechmatics | Agora.Asr.Sarvam | Agora.Asr.Xai | Agora.Asr.Xfyun | Agora.Asr.XfyunBigmodel | Agora.Asr.XfyunDialect | Agora.Asr.Smallestai;
3
3
  export declare namespace Asr {
4
4
  interface Ares extends Agora.AresAsr {
5
5
  vendor: "ares";
@@ -49,4 +49,7 @@ export declare namespace Asr {
49
49
  interface XfyunDialect extends Agora.XfyunDialectAsr {
50
50
  vendor: "xfyun_dialect";
51
51
  }
52
+ interface Smallestai extends Agora.SmallestAiAsr {
53
+ vendor: "smallestai";
54
+ }
52
55
  }
@@ -6,8 +6,15 @@ import type * as Agora from "../index.js";
6
6
  export interface LlmTool {
7
7
  /** Tool type. Must be `function`. */
8
8
  type: "function";
9
+ /** Tool interface exposed to the model. `parameters` is the JSON Schema for LLM arguments, not the HTTP request shape. */
9
10
  function: Agora.LlmToolFunction;
11
+ /** Tool execution configuration. Defaults to `{"mode": "sync"}`. Phase 1a only allows `sync`. */
10
12
  execution?: Agora.LlmToolExecution;
13
+ /**
14
+ * Actual HTTP request configuration for this REST tool.
15
+ * Does not use top-level `parameters`, `path_params`, standalone `query`,
16
+ * `response`, `json_path`, or `max_chars`.
17
+ */
11
18
  server: Agora.LlmToolServer;
12
19
  /** Accepts any additional properties */
13
20
  [key: string]: any;
@@ -0,0 +1,24 @@
1
+ export interface McpServer {
2
+ /** A unique identifier for the MCP server. Maximum 48 characters. Accepts only English letters and numbers. */
3
+ name: string;
4
+ /** The endpoint address of the MCP server. The agent uses this to communicate with the MCP server. */
5
+ endpoint: string;
6
+ /**
7
+ * Transport protocol type.
8
+ * - `streamable_http`: Streaming HTTP protocol
9
+ */
10
+ transport?: "streamable_http";
11
+ /** HTTP header information to include when requesting the MCP server, such as authentication information. */
12
+ headers?: Record<string, string>;
13
+ /**
14
+ * A list of tools that the agent is allowed to invoke. The agent can only use tools on this list.
15
+ * - Empty or omitted: All tools are enabled.
16
+ * - Empty array `[]`: No tools are enabled.
17
+ * - `["*"]`: All tools are enabled.
18
+ * - Specific tools `["aa", "bb"]`: Only listed tools are enabled.
19
+ * - Mix with wildcard `["aa", "*"]`: All tools are enabled (wildcard takes precedence).
20
+ */
21
+ allowed_tools?: string[];
22
+ /** The MCP server request timeout in milliseconds. After timeout, the agent stops waiting for the MCP server's response and continues executing subsequent logic. */
23
+ timeout_ms?: number;
24
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -28,6 +28,20 @@ export interface Mllm {
28
28
  greeting_message?: string;
29
29
  /** Agent failure message. */
30
30
  failure_message?: string;
31
+ /**
32
+ * Inline REST (pass-through sync) tool definitions for standard text LLM function calling.
33
+ * Required fields per tool: `type`, `function.name`, `function.parameters`
34
+ * (`type: object` with `properties`), `server.method` (`GET` or `POST`), and `server.url`.
35
+ * The combination of `type: function` and `server` identifies a REST tool.
36
+ * Phase 1a supports GET and POST only; `execution.mode` defaults to and only accepts `sync`.
37
+ * Template rules:
38
+ * - Values must be a constant, or exactly one single-level placeholder.
39
+ * - `{{args.<name>}}`: `server.url` and `server.body` only; not allowed in headers.
40
+ * - `{{template_variables.<name>}}` and `{{tool_call_id}}`: `server.url`, `server.headers`, and `server.body`.
41
+ */
42
+ tools?: Agora.LlmTool[];
43
+ /** MCP server configuration. */
44
+ mcp_servers?: Agora.McpServer[];
31
45
  /** MLLM provider. */
32
46
  vendor?: Mllm.Vendor;
33
47
  turn_detection?: Agora.MllmTurnDetection | null;
@@ -0,0 +1,11 @@
1
+ import type * as Agora from "../index.js";
2
+ /**
3
+ * Smallest AI ASR configuration.
4
+ */
5
+ export interface SmallestAiAsr {
6
+ /** Language code for speech recognition. */
7
+ language?: string;
8
+ params: Agora.SmallestAiAsrParams;
9
+ /** Accepts any additional properties */
10
+ [key: string]: any;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Smallest AI ASR configuration parameters.
3
+ */
4
+ export interface SmallestAiAsrParams {
5
+ /** Language code for speech recognition. This takes precedence over the top-level `asr.language` value. */
6
+ language?: string;
7
+ /** WebSocket endpoint for the Smallest AI streaming STT API. */
8
+ url?: string;
9
+ /** Smallest AI API key. */
10
+ api_key: string;
11
+ /** Input audio sample rate in Hz. */
12
+ sample_rate?: number;
13
+ /** Input audio encoding. */
14
+ encoding?: string;
15
+ /** Whether to include word-level timestamps. */
16
+ word_timestamps?: string;
17
+ /** Whether to include sentence-level timestamps. */
18
+ sentence_timestamps?: string;
19
+ /** Whether to enable speaker diarization. */
20
+ diarize?: string;
21
+ /** Whether to return voice activity detection events. */
22
+ vad_events?: string;
23
+ /** Whether to enable endpoint detection. */
24
+ endpointing?: string;
25
+ /** End-of-utterance timeout in milliseconds. */
26
+ eou_timeout_ms?: number;
27
+ /** Whether to format the transcript. */
28
+ format?: string;
29
+ /** Whether to finalize results based on recognized words. */
30
+ finalize_on_words?: string;
31
+ /** Maximum number of words per result. */
32
+ max_words?: string;
33
+ /** Whether to add punctuation. */
34
+ punctuate?: string;
35
+ /** Whether to capitalize transcript text. */
36
+ capitalize?: string;
37
+ /** Whether to enable inverse text normalization. */
38
+ itn_normalize?: string;
39
+ /** Whether to return the full transcript. */
40
+ full_transcript?: string;
41
+ /** Comma-separated keyword boosts in `keyword:weight` format. */
42
+ keywords?: string;
43
+ /** Whether to redact personally identifiable information. */
44
+ redact_pii?: string;
45
+ /** Whether to redact payment card information. */
46
+ redact_pci?: string;
47
+ /** Accepts any additional properties */
48
+ [key: string]: any;
49
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import type * as Agora from "../index.js";
2
+ /**
3
+ * Smallest AI Text-to-Speech configuration.
4
+ */
5
+ export interface SmallestAiTts {
6
+ params: Agora.SmallestAiTtsParams;
7
+ /** Controls whether the TTS module skips bracketed content when reading LLM response text. */
8
+ skip_patterns?: number[];
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Smallest AI TTS configuration parameters.
3
+ */
4
+ export interface SmallestAiTtsParams {
5
+ /** HTTP endpoint for the Smallest AI streaming TTS API. */
6
+ url?: string;
7
+ /** Smallest AI API key. */
8
+ api_key: string;
9
+ /** Smallest AI TTS model name. */
10
+ model?: string;
11
+ /** Smallest AI voice identifier. */
12
+ voice_id?: string;
13
+ /** Output audio sample rate in Hz. */
14
+ sample_rate?: number;
15
+ /** Speech rate multiplier. */
16
+ speed?: number;
17
+ /** Language code for speech synthesis. */
18
+ language?: string;
19
+ /** Language used to pronounce numbers. */
20
+ number_pronunciation_language?: string;
21
+ /** Whether to verbalize mathematical notation. */
22
+ math_notation?: boolean;
23
+ /** Pronunciation dictionaries applied during synthesis. */
24
+ pronunciation_dicts?: string[];
25
+ /** Client-provided session identifier. */
26
+ session_id?: string;
27
+ /** Client-provided request identifier. */
28
+ request_id?: string;
29
+ /** Accepts any additional properties */
30
+ [key: string]: any;
31
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,5 @@
1
1
  import type * as Agora from "../index.js";
2
- export type Tts = Agora.Tts.Tencent | Agora.Tts.Bytedance | Agora.Tts.Microsoft | Agora.Tts.Elevenlabs | Agora.Tts.Minimax | Agora.Tts.Murf | Agora.Tts.Cartesia | Agora.Tts.Openai | Agora.Tts.Humeai | Agora.Tts.Rime | Agora.Tts.Fishaudio | Agora.Tts.Google | Agora.Tts.Amazon | Agora.Tts.Sarvam | Agora.Tts.GenericHttp | Agora.Tts.Xai | Agora.Tts.Deepgram | Agora.Tts.Cosyvoice | Agora.Tts.BytedanceDuplex | Agora.Tts.Stepfun | Agora.Tts.Gradium | Agora.Tts.Mistral | Agora.Tts.Typecast;
2
+ export type Tts = Agora.Tts.Tencent | Agora.Tts.Bytedance | Agora.Tts.Microsoft | Agora.Tts.Elevenlabs | Agora.Tts.Minimax | Agora.Tts.Murf | Agora.Tts.Cartesia | Agora.Tts.Openai | Agora.Tts.Humeai | Agora.Tts.Rime | Agora.Tts.Fishaudio | Agora.Tts.Google | Agora.Tts.Amazon | Agora.Tts.Sarvam | Agora.Tts.GenericHttp | Agora.Tts.Xai | Agora.Tts.Deepgram | Agora.Tts.Cosyvoice | Agora.Tts.BytedanceDuplex | Agora.Tts.Stepfun | Agora.Tts.Gradium | Agora.Tts.Mistral | Agora.Tts.Typecast | Agora.Tts.Smallestai;
3
3
  export declare namespace Tts {
4
4
  interface Tencent extends Agora.TencentTts {
5
5
  vendor: "tencent";
@@ -70,4 +70,7 @@ export declare namespace Tts {
70
70
  interface Typecast extends Agora.TypecastTts {
71
71
  vendor: "typecast";
72
72
  }
73
+ interface Smallestai extends Agora.SmallestAiTts {
74
+ vendor: "smallestai";
75
+ }
73
76
  }
@@ -3,6 +3,7 @@ export * from "./AmazonAsr.js";
3
3
  export * from "./AmazonAsrParams.js";
4
4
  export * from "./AmazonTts.js";
5
5
  export * from "./AmazonTtsParams.js";
6
+ export * from "./AnamAvatarParams.js";
6
7
  export * from "./AresAsr.js";
7
8
  export * from "./AresAsrParams.js";
8
9
  export * from "./Asr.js";
@@ -49,6 +50,7 @@ export * from "./LlmTool.js";
49
50
  export * from "./LlmToolExecution.js";
50
51
  export * from "./LlmToolFunction.js";
51
52
  export * from "./LlmToolServer.js";
53
+ export * from "./McpServer.js";
52
54
  export * from "./MicrosoftAsr.js";
53
55
  export * from "./MicrosoftAsrParams.js";
54
56
  export * from "./MicrosoftTts.js";
@@ -76,6 +78,10 @@ export * from "./SarvamAsrParams.js";
76
78
  export * from "./SarvamTts.js";
77
79
  export * from "./SarvamTtsParams.js";
78
80
  export * from "./SensetimeAvatarParams.js";
81
+ export * from "./SmallestAiAsr.js";
82
+ export * from "./SmallestAiAsrParams.js";
83
+ export * from "./SmallestAiTts.js";
84
+ export * from "./SmallestAiTtsParams.js";
79
85
  export * from "./SpatiusAvatarParams.js";
80
86
  export * from "./SpeechmaticsAsr.js";
81
87
  export * from "./SpeechmaticsAsrParams.js";
@@ -19,6 +19,7 @@ __exportStar(require("./AmazonAsr.js"), exports);
19
19
  __exportStar(require("./AmazonAsrParams.js"), exports);
20
20
  __exportStar(require("./AmazonTts.js"), exports);
21
21
  __exportStar(require("./AmazonTtsParams.js"), exports);
22
+ __exportStar(require("./AnamAvatarParams.js"), exports);
22
23
  __exportStar(require("./AresAsr.js"), exports);
23
24
  __exportStar(require("./AresAsrParams.js"), exports);
24
25
  __exportStar(require("./Asr.js"), exports);
@@ -65,6 +66,7 @@ __exportStar(require("./LlmTool.js"), exports);
65
66
  __exportStar(require("./LlmToolExecution.js"), exports);
66
67
  __exportStar(require("./LlmToolFunction.js"), exports);
67
68
  __exportStar(require("./LlmToolServer.js"), exports);
69
+ __exportStar(require("./McpServer.js"), exports);
68
70
  __exportStar(require("./MicrosoftAsr.js"), exports);
69
71
  __exportStar(require("./MicrosoftAsrParams.js"), exports);
70
72
  __exportStar(require("./MicrosoftTts.js"), exports);
@@ -92,6 +94,10 @@ __exportStar(require("./SarvamAsrParams.js"), exports);
92
94
  __exportStar(require("./SarvamTts.js"), exports);
93
95
  __exportStar(require("./SarvamTtsParams.js"), exports);
94
96
  __exportStar(require("./SensetimeAvatarParams.js"), exports);
97
+ __exportStar(require("./SmallestAiAsr.js"), exports);
98
+ __exportStar(require("./SmallestAiAsrParams.js"), exports);
99
+ __exportStar(require("./SmallestAiTts.js"), exports);
100
+ __exportStar(require("./SmallestAiTtsParams.js"), exports);
95
101
  __exportStar(require("./SpatiusAvatarParams.js"), exports);
96
102
  __exportStar(require("./SpeechmaticsAsr.js"), exports);
97
103
  __exportStar(require("./SpeechmaticsAsrParams.js"), exports);
@@ -1,8 +1,8 @@
1
1
  export type { AgoraAuthMode } from "./AgoraPoolClient.js";
2
2
  export { AgoraClient } from "./AgoraPoolClient.js";
3
3
  export type { AgoraArea, AreaScope, GlobalArea } from "./agentkit/area.js";
4
- export type { AdvancedFeatures, AgentConfig, AgentConfigUpdate, AgentOptions, AgentPreset, AgentSessionEvent, AgentSessionEventHandler, AgentSessionOptions, AgentsClient, AkoolAvatarConfig, AkoolAvatarOptions, AkoolSampleRate, AliyunLLMOptions, AmazonBedrockOptions, AmazonSTTOptions, AmazonTTSOptions, AmazonTts, AmazonTtsParams, AnamAvatarConfig, AnamAvatarOptions, AnthropicOptions, AresSTTOptions, AsrConfig, AsrPreset, AsrVendorName, AssemblyAISTTOptions, AvatarConfig, AvatarVendor, AvatarWireVendor, AzureOpenAIOptions, AzureOpenAIRealtimeOptions, AzureOpenAIRealtimeParams, BytedanceDuplexTTSOptions, BytedanceLLMOptions, BytedanceTTSOptions, CartesiaSampleRate, CartesiaTTSOptions, CartesiaTts, CartesiaTtsParams, CNAvatarVendor, CNLlmVendor, CNMllmVendor, CNSttVendor, CNTtsVendor, ConversationHistory, ConversationRole, ConversationSessionTurn, ConversationTurn, ConversationTurns, CustomLLMOptions, DeepgramSTTOptions, DeepgramTTSOptions, DeepSeekLLMOptions, DifyOptions, Eagerness, ElevenLabsSampleRate, ElevenLabsTTSOptions, ElevenLabsTts, ElevenLabsTtsParams, EndOfSpeechConfig, EndOfSpeechMode, EndOfSpeechSemanticConfig, EndOfSpeechVadConfig, FarewellConfig, FengmingSTTOptions, FillerWordsConfig, FillerWordsContent, FillerWordsContentGeneratedConfig, FillerWordsContentSelectionRule, FillerWordsContentStaticConfig, FillerWordsGeneratedLlmProvider, FillerWordsTrigger, FillerWordsTriggerFixedTimeConfig, FishAudioTTSOptions, FishAudioTts, FishAudioTtsParams, GeminiAsrParams, GeminiLiveModel, GeminiLiveOptions, GeminiOptions, GeminiPreviewVoice, GeminiSTTModel, GeminiSTTOptions, GeminiThinkingLevel, GenerateConvoAITokenOptions, GenerateTokenOptions, GenericAvatarConfig, GenericAvatarOptions, GenericTTSOptions, GenericTts, GenericTtsParams, GeofenceArea, GeofenceConfig, GeofenceExcludeArea, GetTurnsOptions, GlobalAvatarVendor, GlobalLlmVendor, GlobalMllmVendor, GlobalSttVendor, GlobalTtsVendor, GoogleSTTOptions, GoogleTTSOptions, GoogleTts, GoogleTtsParams, GradiumTTSOptions, GradiumTts, GradiumTtsParams, GroqOptions, HeyGenAvatarConfig, HeyGenAvatarOptions, HeyGenSampleRate, HumeAITTSOptions, HumeAiTts, HumeAiTtsParams, InterruptionConfig, InterruptionMode, InterruptMode, Labels, LiveAvatarAvatarConfig, LiveAvatarAvatarOptions, LiveAvatarSampleRate, LlmConfig, LlmGreetingConfigs, LlmGreetingConfigsMode, LlmPreset, LlmStyle, LlmTool, LlmToolExecution, LlmToolFunction, LlmToolServer, LlmVendor, McpServersItem, MicrosoftCNSampleRate, MicrosoftCNSTTOptions, MicrosoftCNTTSOptions, MicrosoftSampleRate, MicrosoftSTTOptions, MicrosoftTTSOptions, MicrosoftTts, MicrosoftTtsParams, MiniMaxCNTTSOptions, MiniMaxTTSOptions, MinimaxTts, MinimaxTtsParams, MistralTTSOptions, MistralTts, MistralTtsParams, MllmConfig, MllmTurnDetectionConfig, MllmTurnDetectionMode, MllmVendor, MurfTTSOptions, MurfTts, MurfTtsParams, OpenAIGPTLiveOptions, OpenAIOptions, OpenAIRealtimeOptions, OpenAISTTOptions, OpenAITTSOptions, OpenAiTts, OpenAiTtsParams, ParametersAudioScenario, ParametersDataChannel, PresetCategory, PresetInput, PreviewFeature, PreviewRoute, QwenOmniOptions, RimeTTSOptions, RimeTts, RimeTtsParams, RtcConfig, SalConfig, SalMode, SampleRate, SarvamSTTOptions, SarvamTTSOptions, SarvamTts, SarvamTtsParams, SayOptions, SensetimeAvatarConfig, SensetimeAvatarOptions, SessionInfo, SessionListResponse, SessionOptions, SessionParams, SessionParamsInput, SessionStatus, SessionSummary, SilenceAction, SilenceConfig, SpatiusAvatarConfig, SpatiusAvatarOptions, SpatiusAvatarParams, SpeakPriority, SpeechmaticsSTTOptions, StartOfSpeechConfig, StartOfSpeechDisabledConfig, StartOfSpeechDisabledConfigStrategy, StartOfSpeechKeywordsConfig, StartOfSpeechMode, StartOfSpeechVadConfig, StepFunTTSOptions, StrictAvatarConfig, SttConfig, SttVendor, TencentLLMOptions, TencentSTTOptions, TencentTTSOptions, ThinkOnListeningAction, ThinkOnSpeakingAction, ThinkOnThinkingAction, ThinkOptions, ThinkResponse, TtsConfig, TtsPreset, TtsVendor, TurnDetectionConfig, TurnDetectionLanguage, TurnDetectionNestedConfig, TurnDetectionType, TypecastTTSOptions, TypecastTts, TypecastTtsParams, VertexAILLMOptions, VertexAIOptions, XAiAsr, XAiAsrParams, XAiSTTOptions, XAiTTSOptions, XAiTts, XAiTtsParams, XaiGrokOptions, XfyunBigModelSTTOptions, XfyunDialectSTTOptions, XfyunSTTOptions, } from "./agentkit/index.js";
5
- export { Agent, AgentPresets, AgentSession, AkoolAvatar, AliyunLLM, AmazonBedrock, AmazonSTT, AmazonTTS, AnamAvatar, Anthropic, AresSTT, AssemblyAISTT, AudioScenario, AzureOpenAI, AzureOpenAIRealtime, BaseAvatar, BaseCNAvatar, BaseCNLLM, BaseCNMLLM, BaseCNSTT, BaseCNTTS, BaseLLM, BaseMLLM, BaseSTT, BaseTTS, BytedanceDuplexTTS, BytedanceLLM, BytedanceTTS, CartesiaTTS, CosyVoiceTTS, CredentialMode, CustomLLM, createPreviewRoute, DataChannel, DeepgramSTT, DeepgramTTS, DeepSeekLLM, Dify, ElevenLabsTTS, ExpiresIn, FengmingSTT, FillerWordsSelectionRule, FishAudioTTS, GEMINI_MLLM_DEFAULT_MODEL, GEMINI_PREVIEW_MLLM_URL, Gemini, GeminiLive, GeminiLiveModels, GeminiSTT, GeminiSTTModels, GeminiThinkingLevels, GeminiTranscriptionMode, GenericAvatar, GenericTTS, Geofence, GoogleSTT, GoogleTTS, GradiumTTS, Groq, generateConvoAIToken, generateRtcToken, HeyGenAvatar, HumeAITTS, InterruptionDisabledStrategy, InterruptionDisabledStrategyAppend, InterruptionDisabledStrategyIgnore, InterruptionModeKeywords, InterruptionModeStartOfSpeech, InterruptionModeValues, isAkoolAvatar, isAnamAvatar, isAvatarTokenManaged, isGenericAvatar, isHeyGenAvatar, isLiveAvatarAvatar, isSensetimeAvatar, isSpatiusAvatar, LiveAvatarAvatar, MAX_EXPIRY_SECONDS, MicrosoftCNSTT, MicrosoftCNTTS, MicrosoftSTT, MicrosoftTTS, MiniMaxCNTTS, MiniMaxTTS, MistralTTS, MllmTurnDetectionModeAgoraVad, MllmTurnDetectionModeSemanticVad, MllmTurnDetectionModeServerVad, MllmTurnDetectionModeValues, MurfTTS, normalizePresetInput, OpenAI, OpenAIGPTLive, OpenAIRealtime, OpenAISTT, OpenAITTS, PREVIEW_API_BASE_URL, PREVIEW_FEATURE_HEADER, PreviewFeatures, previewRequestHeaders, QwenOmni, REDACTED, RimeTTS, redactHeadersForDebug, redactSecrets, SalModeValues, SarvamSTT, SarvamTTS, SensetimeAvatar, SilenceActionValues, SpatiusAvatar, SpeakPriorityAppend, SpeakPriorityIgnore, SpeakPriorityInterrupt, SpeakPriorityValues, SpeechmaticsSTT, StepFunTTS, TencentLLM, TencentSTT, TencentTTS, ThinkOnListeningActionIgnore, ThinkOnListeningActionInject, ThinkOnListeningActionInterrupt, ThinkOnSpeakingActionIgnore, ThinkOnSpeakingActionInterrupt, ThinkOnThinkingActionIgnore, ThinkOnThinkingActionInterrupt, TurnDetectionTypeValues, TypecastTTS, toBaseAvatarConfig, VertexAI, VertexAILLM, validateAvatarConfig, validateTtsSampleRate, XAiSTT, XAiTTS, XaiGrok, XfyunBigModelSTT, XfyunDialectSTT, XfyunSTT, } from "./agentkit/index.js";
4
+ export type { AdvancedFeatures, AgentConfig, AgentConfigUpdate, AgentOptions, AgentPreset, AgentSessionEvent, AgentSessionEventHandler, AgentSessionOptions, AgentsClient, AkoolAvatarConfig, AkoolAvatarOptions, AkoolSampleRate, AliyunLLMOptions, AmazonBedrockOptions, AmazonSTTOptions, AmazonTTSOptions, AmazonTts, AmazonTtsParams, AnamAvatarConfig, AnamAvatarOptions, AnthropicOptions, AresSTTOptions, AsrConfig, AsrPreset, AsrVendorName, AssemblyAISTTOptions, AvatarConfig, AvatarVendor, AvatarWireVendor, AzureOpenAIOptions, AzureOpenAIRealtimeOptions, AzureOpenAIRealtimeParams, BaseMllmOptions, BytedanceDuplexTTSOptions, BytedanceLLMOptions, BytedanceTTSOptions, CartesiaSampleRate, CartesiaTTSOptions, CartesiaTts, CartesiaTtsParams, CNAvatarVendor, CNLlmVendor, CNMllmVendor, CNSttVendor, CNTtsVendor, ConversationHistory, ConversationRole, ConversationSessionTurn, ConversationTurn, ConversationTurns, CustomLLMOptions, DeepgramSTTOptions, DeepgramTTSOptions, DeepSeekLLMOptions, DifyOptions, Eagerness, ElevenLabsSampleRate, ElevenLabsTTSOptions, ElevenLabsTts, ElevenLabsTtsParams, EndOfSpeechConfig, EndOfSpeechMode, EndOfSpeechSemanticConfig, EndOfSpeechVadConfig, FarewellConfig, FengmingSTTOptions, FillerWordsConfig, FillerWordsContent, FillerWordsContentGeneratedConfig, FillerWordsContentSelectionRule, FillerWordsContentStaticConfig, FillerWordsGeneratedLlmProvider, FillerWordsTrigger, FillerWordsTriggerFixedTimeConfig, FishAudioTTSOptions, FishAudioTts, FishAudioTtsParams, GeminiAsrParams, GeminiLiveModel, GeminiLiveOptions, GeminiLiveVoice, GeminiOptions, GeminiPreviewVoice, GeminiSTTModel, GeminiSTTOptions, GeminiThinkingLevel, GenerateConvoAITokenOptions, GenerateTokenOptions, GenericAvatarConfig, GenericAvatarOptions, GenericTTSOptions, GenericTts, GenericTtsParams, GeofenceArea, GeofenceConfig, GeofenceExcludeArea, GetTurnsOptions, GlobalAvatarVendor, GlobalLlmVendor, GlobalMllmVendor, GlobalSttVendor, GlobalTtsVendor, GoogleSTTOptions, GoogleTTSOptions, GoogleTts, GoogleTtsParams, GradiumTTSOptions, GradiumTts, GradiumTtsParams, GroqOptions, HeyGenAvatarConfig, HeyGenAvatarOptions, HeyGenSampleRate, HumeAITTSOptions, HumeAiTts, HumeAiTtsParams, InterruptionConfig, InterruptionMode, InterruptMode, Labels, LiveAvatarAvatarConfig, LiveAvatarAvatarOptions, LiveAvatarSampleRate, LlmConfig, LlmGreetingConfigs, LlmGreetingConfigsMode, LlmPreset, LlmStyle, LlmTool, LlmToolExecution, LlmToolFunction, LlmToolServer, LlmVendor, McpServer, McpServersItem, MicrosoftCNSampleRate, MicrosoftCNSTTOptions, MicrosoftCNTTSOptions, MicrosoftSampleRate, MicrosoftSTTOptions, MicrosoftTTSOptions, MicrosoftTts, MicrosoftTtsParams, MiniMaxCNTTSOptions, MiniMaxTTSOptions, MinimaxTts, MinimaxTtsParams, MistralTTSOptions, MistralTts, MistralTtsParams, MllmConfig, MllmTurnDetectionConfig, MllmTurnDetectionMode, MllmVendor, MurfTTSOptions, MurfTts, MurfTtsParams, OpenAIGPTLiveOptions, OpenAIOptions, OpenAIRealtimeOptions, OpenAISTTOptions, OpenAITTSOptions, OpenAiTts, OpenAiTtsParams, ParametersAudioScenario, ParametersDataChannel, PresetCategory, PresetInput, PreviewFeature, PreviewRoute, QwenOmniOptions, RimeTTSOptions, RimeTts, RimeTtsParams, RtcConfig, SalConfig, SalMode, SampleRate, SarvamSTTOptions, SarvamTTSOptions, SarvamTts, SarvamTtsParams, SayOptions, SensetimeAvatarConfig, SensetimeAvatarOptions, SessionInfo, SessionListResponse, SessionOptions, SessionParams, SessionParamsInput, SessionStatus, SessionSummary, SilenceAction, SilenceConfig, SmallestAISTTOptions, SmallestAITTSOptions, SmallestAiAsr, SmallestAiAsrParams, SmallestAiTts, SmallestAiTtsParams, SpatiusAvatarConfig, SpatiusAvatarOptions, SpatiusAvatarParams, SpeakPriority, SpeechmaticsSTTOptions, StartOfSpeechConfig, StartOfSpeechDisabledConfig, StartOfSpeechDisabledConfigStrategy, StartOfSpeechKeywordsConfig, StartOfSpeechMode, StartOfSpeechVadConfig, StepFunTTSOptions, StrictAvatarConfig, SttConfig, SttVendor, TencentLLMOptions, TencentSTTOptions, TencentTTSOptions, ThinkOnListeningAction, ThinkOnSpeakingAction, ThinkOnThinkingAction, ThinkOptions, ThinkResponse, TtsConfig, TtsPreset, TtsVendor, TurnDetectionConfig, TurnDetectionLanguage, TurnDetectionNestedConfig, TurnDetectionType, TypecastTTSOptions, TypecastTts, TypecastTtsParams, VertexAILLMOptions, VertexAIOptions, XAiAsr, XAiAsrParams, XAiSTTOptions, XAiTTSOptions, XAiTts, XAiTtsParams, XaiGrokOptions, XfyunBigModelSTTOptions, XfyunDialectSTTOptions, XfyunSTTOptions, } from "./agentkit/index.js";
5
+ export { Agent, AgentPresets, AgentSession, AkoolAvatar, AliyunLLM, AmazonBedrock, AmazonSTT, AmazonTTS, AnamAvatar, Anthropic, AresSTT, AssemblyAISTT, AudioScenario, AzureOpenAI, AzureOpenAIRealtime, BaseAvatar, BaseCNAvatar, BaseCNLLM, BaseCNMLLM, BaseCNSTT, BaseCNTTS, BaseLLM, BaseMLLM, BaseSTT, BaseTTS, BytedanceDuplexTTS, BytedanceLLM, BytedanceTTS, CartesiaTTS, CosyVoiceTTS, CredentialMode, CustomLLM, createPreviewRoute, DataChannel, DeepgramSTT, DeepgramTTS, DeepSeekLLM, Dify, ElevenLabsTTS, ExpiresIn, FengmingSTT, FillerWordsSelectionRule, FishAudioTTS, GEMINI_MLLM_DEFAULT_MODEL, GEMINI_MLLM_URL, GEMINI_PREVIEW_MLLM_URL, Gemini, GeminiLive, GeminiLiveModels, GeminiSTT, GeminiSTTModels, GeminiThinkingLevels, GeminiTranscriptionMode, GenericAvatar, GenericTTS, Geofence, GoogleSTT, GoogleTTS, GradiumTTS, Groq, generateConvoAIToken, generateRtcToken, HeyGenAvatar, HumeAITTS, InterruptionDisabledStrategy, InterruptionDisabledStrategyAppend, InterruptionDisabledStrategyIgnore, InterruptionModeKeywords, InterruptionModeStartOfSpeech, InterruptionModeValues, isAkoolAvatar, isAnamAvatar, isAvatarTokenManaged, isGenericAvatar, isHeyGenAvatar, isLiveAvatarAvatar, isSensetimeAvatar, isSpatiusAvatar, LiveAvatarAvatar, MAX_EXPIRY_SECONDS, MicrosoftCNSTT, MicrosoftCNTTS, MicrosoftSTT, MicrosoftTTS, MiniMaxCNTTS, MiniMaxTTS, MistralTTS, MllmTurnDetectionModeAgoraVad, MllmTurnDetectionModeSemanticVad, MllmTurnDetectionModeServerVad, MllmTurnDetectionModeValues, MurfTTS, normalizePresetInput, OpenAI, OpenAIGPTLive, OpenAIRealtime, OpenAISTT, OpenAITTS, PREVIEW_API_BASE_URL, PREVIEW_FEATURE_HEADER, PreviewFeatures, previewRequestHeaders, QwenOmni, REDACTED, RimeTTS, redactHeadersForDebug, redactSecrets, SalModeValues, SarvamSTT, SarvamTTS, SensetimeAvatar, SilenceActionValues, SmallestAISTT, SmallestAITTS, SpatiusAvatar, SpeakPriorityAppend, SpeakPriorityIgnore, SpeakPriorityInterrupt, SpeakPriorityValues, SpeechmaticsSTT, StepFunTTS, TencentLLM, TencentSTT, TencentTTS, ThinkOnListeningActionIgnore, ThinkOnListeningActionInject, ThinkOnListeningActionInterrupt, ThinkOnSpeakingActionIgnore, ThinkOnSpeakingActionInterrupt, ThinkOnThinkingActionIgnore, ThinkOnThinkingActionInterrupt, TurnDetectionTypeValues, TypecastTTS, toBaseAvatarConfig, VertexAI, VertexAILLM, validateAvatarConfig, validateTtsSampleRate, XAiSTT, XAiTTS, XaiGrok, XfyunBigModelSTT, XfyunDialectSTT, XfyunSTT, } from "./agentkit/index.js";
6
6
  export * as Agora from "./api/index.js";
7
7
  export type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
8
8
  export { Area } from "./core/domain/index.js";
package/dist/cjs/index.js CHANGED
@@ -36,9 +36,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.GeminiSTT = exports.GeminiLiveModels = exports.GeminiLive = exports.Gemini = exports.GEMINI_PREVIEW_MLLM_URL = exports.GEMINI_MLLM_DEFAULT_MODEL = exports.FishAudioTTS = exports.FillerWordsSelectionRule = exports.FengmingSTT = exports.ExpiresIn = exports.ElevenLabsTTS = exports.Dify = exports.DeepSeekLLM = exports.DeepgramTTS = exports.DeepgramSTT = exports.DataChannel = exports.createPreviewRoute = exports.CustomLLM = exports.CredentialMode = exports.CosyVoiceTTS = exports.CartesiaTTS = exports.BytedanceTTS = exports.BytedanceLLM = exports.BytedanceDuplexTTS = exports.BaseTTS = exports.BaseSTT = exports.BaseMLLM = exports.BaseLLM = exports.BaseCNTTS = exports.BaseCNSTT = exports.BaseCNMLLM = exports.BaseCNLLM = exports.BaseCNAvatar = exports.BaseAvatar = exports.AzureOpenAIRealtime = exports.AzureOpenAI = exports.AudioScenario = exports.AssemblyAISTT = exports.AresSTT = exports.Anthropic = exports.AnamAvatar = exports.AmazonTTS = exports.AmazonSTT = exports.AmazonBedrock = exports.AliyunLLM = exports.AkoolAvatar = exports.AgentSession = exports.AgentPresets = exports.Agent = exports.AgoraClient = void 0;
40
- exports.PREVIEW_FEATURE_HEADER = exports.PREVIEW_API_BASE_URL = exports.OpenAITTS = exports.OpenAISTT = exports.OpenAIRealtime = exports.OpenAIGPTLive = exports.OpenAI = exports.normalizePresetInput = exports.MurfTTS = exports.MllmTurnDetectionModeValues = exports.MllmTurnDetectionModeServerVad = exports.MllmTurnDetectionModeSemanticVad = exports.MllmTurnDetectionModeAgoraVad = exports.MistralTTS = exports.MiniMaxTTS = exports.MiniMaxCNTTS = exports.MicrosoftTTS = exports.MicrosoftSTT = exports.MicrosoftCNTTS = exports.MicrosoftCNSTT = exports.MAX_EXPIRY_SECONDS = exports.LiveAvatarAvatar = exports.isSpatiusAvatar = exports.isSensetimeAvatar = exports.isLiveAvatarAvatar = exports.isHeyGenAvatar = exports.isGenericAvatar = exports.isAvatarTokenManaged = exports.isAnamAvatar = exports.isAkoolAvatar = exports.InterruptionModeValues = exports.InterruptionModeStartOfSpeech = exports.InterruptionModeKeywords = exports.InterruptionDisabledStrategyIgnore = exports.InterruptionDisabledStrategyAppend = exports.InterruptionDisabledStrategy = exports.HumeAITTS = exports.HeyGenAvatar = exports.generateRtcToken = exports.generateConvoAIToken = exports.Groq = exports.GradiumTTS = exports.GoogleTTS = exports.GoogleSTT = exports.Geofence = exports.GenericTTS = exports.GenericAvatar = exports.GeminiTranscriptionMode = exports.GeminiThinkingLevels = exports.GeminiSTTModels = void 0;
41
- exports.AgoraTimeoutError = exports.AgoraError = exports.AgoraEnvironment = exports.Area = exports.Agora = exports.XfyunSTT = exports.XfyunDialectSTT = exports.XfyunBigModelSTT = exports.XaiGrok = exports.XAiTTS = exports.XAiSTT = exports.validateTtsSampleRate = exports.validateAvatarConfig = exports.VertexAILLM = exports.VertexAI = exports.toBaseAvatarConfig = exports.TypecastTTS = exports.TurnDetectionTypeValues = exports.ThinkOnThinkingActionInterrupt = exports.ThinkOnThinkingActionIgnore = exports.ThinkOnSpeakingActionInterrupt = exports.ThinkOnSpeakingActionIgnore = exports.ThinkOnListeningActionInterrupt = exports.ThinkOnListeningActionInject = exports.ThinkOnListeningActionIgnore = exports.TencentTTS = exports.TencentSTT = exports.TencentLLM = exports.StepFunTTS = exports.SpeechmaticsSTT = exports.SpeakPriorityValues = exports.SpeakPriorityInterrupt = exports.SpeakPriorityIgnore = exports.SpeakPriorityAppend = exports.SpatiusAvatar = exports.SilenceActionValues = exports.SensetimeAvatar = exports.SarvamTTS = exports.SarvamSTT = exports.SalModeValues = exports.redactSecrets = exports.redactHeadersForDebug = exports.RimeTTS = exports.REDACTED = exports.QwenOmni = exports.previewRequestHeaders = exports.PreviewFeatures = void 0;
39
+ exports.GeminiLiveModels = exports.GeminiLive = exports.Gemini = exports.GEMINI_PREVIEW_MLLM_URL = exports.GEMINI_MLLM_URL = exports.GEMINI_MLLM_DEFAULT_MODEL = exports.FishAudioTTS = exports.FillerWordsSelectionRule = exports.FengmingSTT = exports.ExpiresIn = exports.ElevenLabsTTS = exports.Dify = exports.DeepSeekLLM = exports.DeepgramTTS = exports.DeepgramSTT = exports.DataChannel = exports.createPreviewRoute = exports.CustomLLM = exports.CredentialMode = exports.CosyVoiceTTS = exports.CartesiaTTS = exports.BytedanceTTS = exports.BytedanceLLM = exports.BytedanceDuplexTTS = exports.BaseTTS = exports.BaseSTT = exports.BaseMLLM = exports.BaseLLM = exports.BaseCNTTS = exports.BaseCNSTT = exports.BaseCNMLLM = exports.BaseCNLLM = exports.BaseCNAvatar = exports.BaseAvatar = exports.AzureOpenAIRealtime = exports.AzureOpenAI = exports.AudioScenario = exports.AssemblyAISTT = exports.AresSTT = exports.Anthropic = exports.AnamAvatar = exports.AmazonTTS = exports.AmazonSTT = exports.AmazonBedrock = exports.AliyunLLM = exports.AkoolAvatar = exports.AgentSession = exports.AgentPresets = exports.Agent = exports.AgoraClient = void 0;
40
+ exports.PREVIEW_API_BASE_URL = exports.OpenAITTS = exports.OpenAISTT = exports.OpenAIRealtime = exports.OpenAIGPTLive = exports.OpenAI = exports.normalizePresetInput = exports.MurfTTS = exports.MllmTurnDetectionModeValues = exports.MllmTurnDetectionModeServerVad = exports.MllmTurnDetectionModeSemanticVad = exports.MllmTurnDetectionModeAgoraVad = exports.MistralTTS = exports.MiniMaxTTS = exports.MiniMaxCNTTS = exports.MicrosoftTTS = exports.MicrosoftSTT = exports.MicrosoftCNTTS = exports.MicrosoftCNSTT = exports.MAX_EXPIRY_SECONDS = exports.LiveAvatarAvatar = exports.isSpatiusAvatar = exports.isSensetimeAvatar = exports.isLiveAvatarAvatar = exports.isHeyGenAvatar = exports.isGenericAvatar = exports.isAvatarTokenManaged = exports.isAnamAvatar = exports.isAkoolAvatar = exports.InterruptionModeValues = exports.InterruptionModeStartOfSpeech = exports.InterruptionModeKeywords = exports.InterruptionDisabledStrategyIgnore = exports.InterruptionDisabledStrategyAppend = exports.InterruptionDisabledStrategy = exports.HumeAITTS = exports.HeyGenAvatar = exports.generateRtcToken = exports.generateConvoAIToken = exports.Groq = exports.GradiumTTS = exports.GoogleTTS = exports.GoogleSTT = exports.Geofence = exports.GenericTTS = exports.GenericAvatar = exports.GeminiTranscriptionMode = exports.GeminiThinkingLevels = exports.GeminiSTTModels = exports.GeminiSTT = void 0;
41
+ exports.AgoraTimeoutError = exports.AgoraError = exports.AgoraEnvironment = exports.Area = exports.Agora = exports.XfyunSTT = exports.XfyunDialectSTT = exports.XfyunBigModelSTT = exports.XaiGrok = exports.XAiTTS = exports.XAiSTT = exports.validateTtsSampleRate = exports.validateAvatarConfig = exports.VertexAILLM = exports.VertexAI = exports.toBaseAvatarConfig = exports.TypecastTTS = exports.TurnDetectionTypeValues = exports.ThinkOnThinkingActionInterrupt = exports.ThinkOnThinkingActionIgnore = exports.ThinkOnSpeakingActionInterrupt = exports.ThinkOnSpeakingActionIgnore = exports.ThinkOnListeningActionInterrupt = exports.ThinkOnListeningActionInject = exports.ThinkOnListeningActionIgnore = exports.TencentTTS = exports.TencentSTT = exports.TencentLLM = exports.StepFunTTS = exports.SpeechmaticsSTT = exports.SpeakPriorityValues = exports.SpeakPriorityInterrupt = exports.SpeakPriorityIgnore = exports.SpeakPriorityAppend = exports.SpatiusAvatar = exports.SmallestAITTS = exports.SmallestAISTT = exports.SilenceActionValues = exports.SensetimeAvatar = exports.SarvamTTS = exports.SarvamSTT = exports.SalModeValues = exports.redactSecrets = exports.redactHeadersForDebug = exports.RimeTTS = exports.REDACTED = exports.QwenOmni = exports.previewRequestHeaders = exports.PreviewFeatures = exports.PREVIEW_FEATURE_HEADER = void 0;
42
42
  var AgoraPoolClient_js_1 = require("./AgoraPoolClient.js");
43
43
  Object.defineProperty(exports, "AgoraClient", { enumerable: true, get: function () { return AgoraPoolClient_js_1.AgoraClient; } });
44
44
  // Agentkit layer exports - clean, ergonomic API
@@ -89,6 +89,7 @@ Object.defineProperty(exports, "FengmingSTT", { enumerable: true, get: function
89
89
  Object.defineProperty(exports, "FillerWordsSelectionRule", { enumerable: true, get: function () { return index_js_1.FillerWordsSelectionRule; } });
90
90
  Object.defineProperty(exports, "FishAudioTTS", { enumerable: true, get: function () { return index_js_1.FishAudioTTS; } });
91
91
  Object.defineProperty(exports, "GEMINI_MLLM_DEFAULT_MODEL", { enumerable: true, get: function () { return index_js_1.GEMINI_MLLM_DEFAULT_MODEL; } });
92
+ Object.defineProperty(exports, "GEMINI_MLLM_URL", { enumerable: true, get: function () { return index_js_1.GEMINI_MLLM_URL; } });
92
93
  Object.defineProperty(exports, "GEMINI_PREVIEW_MLLM_URL", { enumerable: true, get: function () { return index_js_1.GEMINI_PREVIEW_MLLM_URL; } });
93
94
  Object.defineProperty(exports, "Gemini", { enumerable: true, get: function () { return index_js_1.Gemini; } });
94
95
  Object.defineProperty(exports, "GeminiLive", { enumerable: true, get: function () { return index_js_1.GeminiLive; } });
@@ -159,6 +160,8 @@ Object.defineProperty(exports, "SarvamSTT", { enumerable: true, get: function ()
159
160
  Object.defineProperty(exports, "SarvamTTS", { enumerable: true, get: function () { return index_js_1.SarvamTTS; } });
160
161
  Object.defineProperty(exports, "SensetimeAvatar", { enumerable: true, get: function () { return index_js_1.SensetimeAvatar; } });
161
162
  Object.defineProperty(exports, "SilenceActionValues", { enumerable: true, get: function () { return index_js_1.SilenceActionValues; } });
163
+ Object.defineProperty(exports, "SmallestAISTT", { enumerable: true, get: function () { return index_js_1.SmallestAISTT; } });
164
+ Object.defineProperty(exports, "SmallestAITTS", { enumerable: true, get: function () { return index_js_1.SmallestAITTS; } });
162
165
  Object.defineProperty(exports, "SpatiusAvatar", { enumerable: true, get: function () { return index_js_1.SpatiusAvatar; } });
163
166
  Object.defineProperty(exports, "SpeakPriorityAppend", { enumerable: true, get: function () { return index_js_1.SpeakPriorityAppend; } });
164
167
  Object.defineProperty(exports, "SpeakPriorityIgnore", { enumerable: true, get: function () { return index_js_1.SpeakPriorityIgnore; } });
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v2.9.0";
1
+ export declare const SDK_VERSION = "v2.10.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "v2.9.0";
4
+ exports.SDK_VERSION = "v2.10.0";
@@ -5,8 +5,8 @@ export function normalizeClientOptions(options) {
5
5
  const headers = mergeHeaders({
6
6
  "X-Fern-Language": "JavaScript",
7
7
  "X-Fern-SDK-Name": "agora-agents",
8
- "X-Fern-SDK-Version": "v2.9.0",
9
- "User-Agent": "agora-agents/v2.9.0",
8
+ "X-Fern-SDK-Version": "v2.10.0",
9
+ "User-Agent": "agora-agents/v2.10.0",
10
10
  "X-Fern-Runtime": core.RUNTIME.type,
11
11
  "X-Fern-Runtime-Version": core.RUNTIME.version,
12
12
  }, options === null || options === void 0 ? void 0 : options.headers);