agora-agents 2.8.1 → 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 (93) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/agentkit/Agent.js +3 -3
  3. package/dist/cjs/agentkit/AgentSession.js +1 -0
  4. package/dist/cjs/agentkit/index.d.ts +8 -10
  5. package/dist/cjs/agentkit/index.js +10 -4
  6. package/dist/cjs/agentkit/preview/client.d.ts +7 -5
  7. package/dist/cjs/agentkit/preview/client.js +23 -15
  8. package/dist/cjs/agentkit/preview/index.d.ts +5 -3
  9. package/dist/cjs/agentkit/preview/index.js +9 -2
  10. package/dist/cjs/agentkit/preview/vendors.d.ts +9 -74
  11. package/dist/cjs/agentkit/preview/vendors.js +16 -85
  12. package/dist/cjs/agentkit/types.d.ts +10 -4
  13. package/dist/cjs/agentkit/vendors/base.d.ts +15 -4
  14. package/dist/cjs/agentkit/vendors/base.js +16 -5
  15. package/dist/cjs/agentkit/vendors/cn.js +2 -2
  16. package/dist/cjs/agentkit/vendors/llm.js +2 -2
  17. package/dist/cjs/agentkit/vendors/mllm.d.ts +97 -10
  18. package/dist/cjs/agentkit/vendors/mllm.js +122 -14
  19. package/dist/cjs/agentkit/vendors/stt.d.ts +41 -0
  20. package/dist/cjs/agentkit/vendors/stt.js +18 -1
  21. package/dist/cjs/agentkit/vendors/tts.d.ts +27 -0
  22. package/dist/cjs/agentkit/vendors/tts.js +16 -1
  23. package/dist/cjs/api/resources/agents/client/requests/StartAgentsRequest.d.ts +11 -5
  24. package/dist/cjs/api/resources/agents/client/requests/StartAgentsRequest.js +3 -1
  25. package/dist/cjs/api/types/AnamAvatarParams.d.ts +42 -0
  26. package/dist/cjs/api/types/AnamAvatarParams.js +18 -0
  27. package/dist/cjs/api/types/Asr.d.ts +4 -1
  28. package/dist/cjs/api/types/LlmTool.d.ts +7 -0
  29. package/dist/cjs/api/types/McpServer.d.ts +24 -0
  30. package/dist/cjs/api/types/McpServer.js +3 -0
  31. package/dist/cjs/api/types/Mllm.d.ts +14 -0
  32. package/dist/cjs/api/types/SmallestAiAsr.d.ts +11 -0
  33. package/dist/cjs/api/types/SmallestAiAsr.js +3 -0
  34. package/dist/cjs/api/types/SmallestAiAsrParams.d.ts +49 -0
  35. package/dist/cjs/api/types/SmallestAiAsrParams.js +3 -0
  36. package/dist/cjs/api/types/SmallestAiTts.d.ts +9 -0
  37. package/dist/cjs/api/types/SmallestAiTts.js +3 -0
  38. package/dist/cjs/api/types/SmallestAiTtsParams.d.ts +31 -0
  39. package/dist/cjs/api/types/SmallestAiTtsParams.js +3 -0
  40. package/dist/cjs/api/types/Tts.d.ts +4 -1
  41. package/dist/cjs/api/types/index.d.ts +6 -0
  42. package/dist/cjs/api/types/index.js +6 -0
  43. package/dist/cjs/index.d.ts +2 -2
  44. package/dist/cjs/index.js +10 -3
  45. package/dist/cjs/version.d.ts +1 -1
  46. package/dist/cjs/version.js +1 -1
  47. package/dist/esm/BaseClient.mjs +2 -2
  48. package/dist/esm/agentkit/Agent.mjs +2 -2
  49. package/dist/esm/agentkit/AgentSession.mjs +2 -1
  50. package/dist/esm/agentkit/index.d.mts +8 -10
  51. package/dist/esm/agentkit/index.mjs +3 -4
  52. package/dist/esm/agentkit/preview/client.d.mts +7 -5
  53. package/dist/esm/agentkit/preview/client.mjs +22 -15
  54. package/dist/esm/agentkit/preview/index.d.mts +5 -3
  55. package/dist/esm/agentkit/preview/index.mjs +3 -2
  56. package/dist/esm/agentkit/preview/vendors.d.mts +9 -74
  57. package/dist/esm/agentkit/preview/vendors.mjs +6 -82
  58. package/dist/esm/agentkit/types.d.mts +10 -4
  59. package/dist/esm/agentkit/vendors/base.d.mts +15 -4
  60. package/dist/esm/agentkit/vendors/base.mjs +16 -5
  61. package/dist/esm/agentkit/vendors/cn.mjs +2 -2
  62. package/dist/esm/agentkit/vendors/llm.mjs +2 -2
  63. package/dist/esm/agentkit/vendors/mllm.d.mts +97 -10
  64. package/dist/esm/agentkit/vendors/mllm.mjs +119 -13
  65. package/dist/esm/agentkit/vendors/stt.d.mts +41 -0
  66. package/dist/esm/agentkit/vendors/stt.mjs +16 -0
  67. package/dist/esm/agentkit/vendors/tts.d.mts +27 -0
  68. package/dist/esm/agentkit/vendors/tts.mjs +14 -0
  69. package/dist/esm/api/resources/agents/client/requests/StartAgentsRequest.d.mts +11 -5
  70. package/dist/esm/api/resources/agents/client/requests/StartAgentsRequest.mjs +3 -1
  71. package/dist/esm/api/types/AnamAvatarParams.d.mts +42 -0
  72. package/dist/esm/api/types/AnamAvatarParams.mjs +15 -0
  73. package/dist/esm/api/types/Asr.d.mts +4 -1
  74. package/dist/esm/api/types/LlmTool.d.mts +7 -0
  75. package/dist/esm/api/types/McpServer.d.mts +24 -0
  76. package/dist/esm/api/types/McpServer.mjs +2 -0
  77. package/dist/esm/api/types/Mllm.d.mts +14 -0
  78. package/dist/esm/api/types/SmallestAiAsr.d.mts +11 -0
  79. package/dist/esm/api/types/SmallestAiAsr.mjs +2 -0
  80. package/dist/esm/api/types/SmallestAiAsrParams.d.mts +49 -0
  81. package/dist/esm/api/types/SmallestAiAsrParams.mjs +2 -0
  82. package/dist/esm/api/types/SmallestAiTts.d.mts +9 -0
  83. package/dist/esm/api/types/SmallestAiTts.mjs +2 -0
  84. package/dist/esm/api/types/SmallestAiTtsParams.d.mts +31 -0
  85. package/dist/esm/api/types/SmallestAiTtsParams.mjs +2 -0
  86. package/dist/esm/api/types/Tts.d.mts +4 -1
  87. package/dist/esm/api/types/index.d.mts +6 -0
  88. package/dist/esm/api/types/index.mjs +6 -0
  89. package/dist/esm/index.d.mts +2 -2
  90. package/dist/esm/index.mjs +2 -2
  91. package/dist/esm/version.d.mts +1 -1
  92. package/dist/esm/version.mjs +1 -1
  93. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import type * as Agora from "../index.mjs";
2
- export type Asr = Agora.Asr.Ares | Agora.Asr.Fengming | Agora.Asr.Tencent | Agora.Asr.Microsoft | Agora.Asr.Deepgram | Agora.Asr.Openai | Agora.Asr.Google | Agora.Asr.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.mjs";
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,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -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.mjs";
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,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -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,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
+ * 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,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -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,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,5 +1,5 @@
1
1
  import type * as Agora from "../index.mjs";
2
- export type Tts = Agora.Tts.Tencent | Agora.Tts.Bytedance | Agora.Tts.Microsoft | Agora.Tts.Elevenlabs | Agora.Tts.Minimax | Agora.Tts.Murf | Agora.Tts.Cartesia | Agora.Tts.Openai | Agora.Tts.Humeai | Agora.Tts.Rime | Agora.Tts.Fishaudio | Agora.Tts.Google | Agora.Tts.Amazon | Agora.Tts.Sarvam | Agora.Tts.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.mjs";
3
3
  export * from "./AmazonAsrParams.mjs";
4
4
  export * from "./AmazonTts.mjs";
5
5
  export * from "./AmazonTtsParams.mjs";
6
+ export * from "./AnamAvatarParams.mjs";
6
7
  export * from "./AresAsr.mjs";
7
8
  export * from "./AresAsrParams.mjs";
8
9
  export * from "./Asr.mjs";
@@ -49,6 +50,7 @@ export * from "./LlmTool.mjs";
49
50
  export * from "./LlmToolExecution.mjs";
50
51
  export * from "./LlmToolFunction.mjs";
51
52
  export * from "./LlmToolServer.mjs";
53
+ export * from "./McpServer.mjs";
52
54
  export * from "./MicrosoftAsr.mjs";
53
55
  export * from "./MicrosoftAsrParams.mjs";
54
56
  export * from "./MicrosoftTts.mjs";
@@ -76,6 +78,10 @@ export * from "./SarvamAsrParams.mjs";
76
78
  export * from "./SarvamTts.mjs";
77
79
  export * from "./SarvamTtsParams.mjs";
78
80
  export * from "./SensetimeAvatarParams.mjs";
81
+ export * from "./SmallestAiAsr.mjs";
82
+ export * from "./SmallestAiAsrParams.mjs";
83
+ export * from "./SmallestAiTts.mjs";
84
+ export * from "./SmallestAiTtsParams.mjs";
79
85
  export * from "./SpatiusAvatarParams.mjs";
80
86
  export * from "./SpeechmaticsAsr.mjs";
81
87
  export * from "./SpeechmaticsAsrParams.mjs";
@@ -3,6 +3,7 @@ export * from "./AmazonAsr.mjs";
3
3
  export * from "./AmazonAsrParams.mjs";
4
4
  export * from "./AmazonTts.mjs";
5
5
  export * from "./AmazonTtsParams.mjs";
6
+ export * from "./AnamAvatarParams.mjs";
6
7
  export * from "./AresAsr.mjs";
7
8
  export * from "./AresAsrParams.mjs";
8
9
  export * from "./Asr.mjs";
@@ -49,6 +50,7 @@ export * from "./LlmTool.mjs";
49
50
  export * from "./LlmToolExecution.mjs";
50
51
  export * from "./LlmToolFunction.mjs";
51
52
  export * from "./LlmToolServer.mjs";
53
+ export * from "./McpServer.mjs";
52
54
  export * from "./MicrosoftAsr.mjs";
53
55
  export * from "./MicrosoftAsrParams.mjs";
54
56
  export * from "./MicrosoftTts.mjs";
@@ -76,6 +78,10 @@ export * from "./SarvamAsrParams.mjs";
76
78
  export * from "./SarvamTts.mjs";
77
79
  export * from "./SarvamTtsParams.mjs";
78
80
  export * from "./SensetimeAvatarParams.mjs";
81
+ export * from "./SmallestAiAsr.mjs";
82
+ export * from "./SmallestAiAsrParams.mjs";
83
+ export * from "./SmallestAiTts.mjs";
84
+ export * from "./SmallestAiTtsParams.mjs";
79
85
  export * from "./SpatiusAvatarParams.mjs";
80
86
  export * from "./SpeechmaticsAsr.mjs";
81
87
  export * from "./SpeechmaticsAsrParams.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, 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, GeminiLiveOptions, GeminiOptions, GeminiSTTModel, GeminiSTTOptions, 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.mjs";
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, GeminiLive, GeminiSTT, GeminiSTTModels, 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.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, 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.mjs";
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.mjs";
6
6
  export * as Agora from "./api/index.mjs";
7
7
  export type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
8
8
  export { Area } from "./core/domain/index.mjs";
@@ -4,13 +4,13 @@ export { Agent, AgentPresets, AgentSession, AkoolAvatar, AliyunLLM, AmazonBedroc
4
4
  // Base vendor classes
5
5
  BaseLLM, BaseMLLM, BaseSTT, BaseTTS, BytedanceDuplexTTS, BytedanceLLM, BytedanceTTS, CartesiaTTS, CosyVoiceTTS, CredentialMode, CustomLLM, createPreviewRoute, DataChannel, DeepgramSTT, DeepgramTTS, DeepSeekLLM, Dify,
6
6
  // TTS vendors
7
- ElevenLabsTTS, ExpiresIn, FengmingSTT, FillerWordsSelectionRule, FishAudioTTS, Gemini, GeminiLive, GeminiSTT, GeminiSTTModels, GeminiTranscriptionMode, GenericAvatar, GenericTTS, Geofence, GoogleSTT, GoogleTTS, GradiumTTS, Groq, generateConvoAIToken, generateRtcToken,
7
+ 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,
8
8
  // Avatar vendors
9
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, OpenAIGPTLive,
12
12
  // MLLM vendors
13
- 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,
13
+ 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,
14
14
  // STT vendors
15
15
  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.mjs";
16
16
  export * as Agora from "./api/index.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v2.8.1";
1
+ export declare const SDK_VERSION = "v2.10.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "v2.8.1";
1
+ export const SDK_VERSION = "v2.10.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agora-agents",
3
- "version": "2.8.1",
3
+ "version": "2.10.0",
4
4
  "private": false,
5
5
  "repository": "github:AgoraIO/agora-agents-ts",
6
6
  "type": "commonjs",