agora-agents 2.6.0 → 2.7.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 (99) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/agentkit/Agent.d.ts +2 -2
  3. package/dist/cjs/agentkit/Agent.js +11 -2
  4. package/dist/cjs/agentkit/AgentSession.d.ts +27 -0
  5. package/dist/cjs/agentkit/AgentSession.js +95 -23
  6. package/dist/cjs/agentkit/__tests__/area-aware-vendors.test.js +2 -2
  7. package/dist/cjs/agentkit/__tests__/preview-types.test.d.ts +7 -0
  8. package/dist/cjs/agentkit/__tests__/preview-types.test.js +57 -0
  9. package/dist/cjs/agentkit/__tests__/readme-examples.test.js +3 -3
  10. package/dist/cjs/agentkit/__tests__/type-safety.test.js +1 -1
  11. package/dist/cjs/agentkit/debug.d.ts +33 -0
  12. package/dist/cjs/agentkit/debug.js +134 -0
  13. package/dist/cjs/agentkit/index.d.ts +4 -1
  14. package/dist/cjs/agentkit/index.js +16 -3
  15. package/dist/cjs/agentkit/preview/client.d.ts +58 -0
  16. package/dist/cjs/agentkit/preview/client.js +89 -0
  17. package/dist/cjs/agentkit/preview/index.d.ts +11 -0
  18. package/dist/cjs/agentkit/preview/index.js +20 -0
  19. package/dist/cjs/agentkit/preview/vendors.d.ts +72 -0
  20. package/dist/cjs/agentkit/preview/vendors.js +53 -0
  21. package/dist/cjs/agentkit/token.js +32 -3
  22. package/dist/cjs/agentkit/types.d.ts +42 -1
  23. package/dist/cjs/agentkit/vendors/stt.d.ts +12 -4
  24. package/dist/cjs/agentkit/vendors/stt.js +7 -3
  25. package/dist/cjs/api/resources/agentManagement/client/requests/AgentThinkAgentManagementRequest.d.ts +9 -0
  26. package/dist/cjs/api/resources/agentManagement/client/requests/AgentThinkAgentManagementRequest.js +6 -0
  27. package/dist/cjs/api/resources/agents/client/Client.js +17 -1
  28. package/dist/cjs/api/resources/agents/client/requests/StartAgentsRequest.d.ts +49 -4
  29. package/dist/cjs/api/resources/agents/client/requests/StartAgentsRequest.js +9 -0
  30. package/dist/cjs/api/types/AresAsr.d.ts +2 -0
  31. package/dist/cjs/api/types/AresAsrParams.d.ts +1 -6
  32. package/dist/cjs/api/types/FengmingAsr.d.ts +2 -0
  33. package/dist/cjs/api/types/FengmingAsrParams.d.ts +1 -6
  34. package/dist/cjs/api/types/Llm.d.ts +12 -0
  35. package/dist/cjs/api/types/LlmTool.d.ts +14 -0
  36. package/dist/cjs/api/types/LlmTool.js +3 -0
  37. package/dist/cjs/api/types/LlmToolExecution.d.ts +9 -0
  38. package/dist/cjs/api/types/LlmToolExecution.js +3 -0
  39. package/dist/cjs/api/types/LlmToolFunction.d.ts +28 -0
  40. package/dist/cjs/api/types/LlmToolFunction.js +3 -0
  41. package/dist/cjs/api/types/LlmToolServer.d.ts +42 -0
  42. package/dist/cjs/api/types/LlmToolServer.js +12 -0
  43. package/dist/cjs/api/types/SpeechmaticsAsrParams.d.ts +12 -3
  44. package/dist/cjs/api/types/index.d.ts +4 -0
  45. package/dist/cjs/api/types/index.js +4 -0
  46. package/dist/cjs/index.d.ts +2 -2
  47. package/dist/cjs/index.js +13 -3
  48. package/dist/cjs/version.d.ts +1 -1
  49. package/dist/cjs/version.js +1 -1
  50. package/dist/esm/BaseClient.mjs +2 -2
  51. package/dist/esm/agentkit/Agent.d.mts +2 -2
  52. package/dist/esm/agentkit/Agent.mjs +11 -2
  53. package/dist/esm/agentkit/AgentSession.d.mts +27 -0
  54. package/dist/esm/agentkit/AgentSession.mjs +95 -23
  55. package/dist/esm/agentkit/__tests__/area-aware-vendors.test.mjs +2 -2
  56. package/dist/esm/agentkit/__tests__/preview-types.test.d.mts +7 -0
  57. package/dist/esm/agentkit/__tests__/preview-types.test.mjs +55 -0
  58. package/dist/esm/agentkit/__tests__/readme-examples.test.mjs +3 -3
  59. package/dist/esm/agentkit/__tests__/type-safety.test.mjs +1 -1
  60. package/dist/esm/agentkit/debug.d.mts +33 -0
  61. package/dist/esm/agentkit/debug.mjs +129 -0
  62. package/dist/esm/agentkit/index.d.mts +4 -1
  63. package/dist/esm/agentkit/index.mjs +2 -0
  64. package/dist/esm/agentkit/preview/client.d.mts +58 -0
  65. package/dist/esm/agentkit/preview/client.mjs +83 -0
  66. package/dist/esm/agentkit/preview/index.d.mts +11 -0
  67. package/dist/esm/agentkit/preview/index.mjs +9 -0
  68. package/dist/esm/agentkit/preview/vendors.d.mts +72 -0
  69. package/dist/esm/agentkit/preview/vendors.mjs +49 -0
  70. package/dist/esm/agentkit/token.mjs +32 -3
  71. package/dist/esm/agentkit/types.d.mts +42 -1
  72. package/dist/esm/agentkit/vendors/stt.d.mts +12 -4
  73. package/dist/esm/agentkit/vendors/stt.mjs +7 -3
  74. package/dist/esm/api/resources/agentManagement/client/requests/AgentThinkAgentManagementRequest.d.mts +9 -0
  75. package/dist/esm/api/resources/agentManagement/client/requests/AgentThinkAgentManagementRequest.mjs +6 -0
  76. package/dist/esm/api/resources/agents/client/Client.mjs +17 -1
  77. package/dist/esm/api/resources/agents/client/requests/StartAgentsRequest.d.mts +49 -4
  78. package/dist/esm/api/resources/agents/client/requests/StartAgentsRequest.mjs +9 -0
  79. package/dist/esm/api/types/AresAsr.d.mts +2 -0
  80. package/dist/esm/api/types/AresAsrParams.d.mts +1 -6
  81. package/dist/esm/api/types/FengmingAsr.d.mts +2 -0
  82. package/dist/esm/api/types/FengmingAsrParams.d.mts +1 -6
  83. package/dist/esm/api/types/Llm.d.mts +12 -0
  84. package/dist/esm/api/types/LlmTool.d.mts +14 -0
  85. package/dist/esm/api/types/LlmTool.mjs +2 -0
  86. package/dist/esm/api/types/LlmToolExecution.d.mts +9 -0
  87. package/dist/esm/api/types/LlmToolExecution.mjs +2 -0
  88. package/dist/esm/api/types/LlmToolFunction.d.mts +28 -0
  89. package/dist/esm/api/types/LlmToolFunction.mjs +2 -0
  90. package/dist/esm/api/types/LlmToolServer.d.mts +42 -0
  91. package/dist/esm/api/types/LlmToolServer.mjs +9 -0
  92. package/dist/esm/api/types/SpeechmaticsAsrParams.d.mts +12 -3
  93. package/dist/esm/api/types/index.d.mts +4 -0
  94. package/dist/esm/api/types/index.mjs +4 -0
  95. package/dist/esm/index.d.mts +2 -2
  96. package/dist/esm/index.mjs +3 -3
  97. package/dist/esm/version.d.mts +1 -1
  98. package/dist/esm/version.mjs +1 -1
  99. package/package.json +1 -1
@@ -26,18 +26,21 @@ export interface AgentThinkAgentManagementRequest {
26
26
  * - `inject`: Inject the custom text instruction into the current turn without interrupting it.
27
27
  * - `interrupt`: Immediately interrupt the current flow and initiate a new round of dialogue.
28
28
  * - `ignore`: Ignore the request.
29
+ * - `append`: Do not interrupt the user. Wait for the user's ASR text to be sent to the LLM and for the resulting response to finish, then send the custom text instruction to the LLM.
29
30
  */
30
31
  on_listening_action?: AgentThinkAgentManagementRequest.OnListeningAction;
31
32
  /**
32
33
  * The action to take when the agent is in a thinking state:
33
34
  * - `interrupt`: Interrupt the current state and start a new conversation turn.
34
35
  * - `ignore`: Ignore the request.
36
+ * - `append`: Do not interrupt the current LLM inference. Allow the current turn to finish generating and playing its response first. After the current turn's LLM output is complete, send the queued custom text instruction to the LLM.
35
37
  */
36
38
  on_thinking_action?: AgentThinkAgentManagementRequest.OnThinkingAction;
37
39
  /**
38
40
  * The action to take when the agent is in a speaking state:
39
41
  * - `interrupt`: Interrupt the current state and start a new conversation turn.
40
42
  * - `ignore`: Ignore the request.
43
+ * - `append`: Do not interrupt the current TTS playback; the audio stream continues. After the current turn's LLM output is complete, send the custom text instruction directly to the LLM.
41
44
  */
42
45
  on_speaking_action?: AgentThinkAgentManagementRequest.OnSpeakingAction;
43
46
  /**
@@ -55,31 +58,37 @@ export declare namespace AgentThinkAgentManagementRequest {
55
58
  * - `inject`: Inject the custom text instruction into the current turn without interrupting it.
56
59
  * - `interrupt`: Immediately interrupt the current flow and initiate a new round of dialogue.
57
60
  * - `ignore`: Ignore the request.
61
+ * - `append`: Do not interrupt the user. Wait for the user's ASR text to be sent to the LLM and for the resulting response to finish, then send the custom text instruction to the LLM.
58
62
  */
59
63
  const OnListeningAction: {
60
64
  readonly Inject: "inject";
61
65
  readonly Interrupt: "interrupt";
62
66
  readonly Ignore: "ignore";
67
+ readonly Append: "append";
63
68
  };
64
69
  type OnListeningAction = (typeof OnListeningAction)[keyof typeof OnListeningAction];
65
70
  /**
66
71
  * The action to take when the agent is in a thinking state:
67
72
  * - `interrupt`: Interrupt the current state and start a new conversation turn.
68
73
  * - `ignore`: Ignore the request.
74
+ * - `append`: Do not interrupt the current LLM inference. Allow the current turn to finish generating and playing its response first. After the current turn's LLM output is complete, send the queued custom text instruction to the LLM.
69
75
  */
70
76
  const OnThinkingAction: {
71
77
  readonly Interrupt: "interrupt";
72
78
  readonly Ignore: "ignore";
79
+ readonly Append: "append";
73
80
  };
74
81
  type OnThinkingAction = (typeof OnThinkingAction)[keyof typeof OnThinkingAction];
75
82
  /**
76
83
  * The action to take when the agent is in a speaking state:
77
84
  * - `interrupt`: Interrupt the current state and start a new conversation turn.
78
85
  * - `ignore`: Ignore the request.
86
+ * - `append`: Do not interrupt the current TTS playback; the audio stream continues. After the current turn's LLM output is complete, send the custom text instruction directly to the LLM.
79
87
  */
80
88
  const OnSpeakingAction: {
81
89
  readonly Interrupt: "interrupt";
82
90
  readonly Ignore: "ignore";
91
+ readonly Append: "append";
83
92
  };
84
93
  type OnSpeakingAction = (typeof OnSpeakingAction)[keyof typeof OnSpeakingAction];
85
94
  }
@@ -6,28 +6,34 @@ export var AgentThinkAgentManagementRequest;
6
6
  * - `inject`: Inject the custom text instruction into the current turn without interrupting it.
7
7
  * - `interrupt`: Immediately interrupt the current flow and initiate a new round of dialogue.
8
8
  * - `ignore`: Ignore the request.
9
+ * - `append`: Do not interrupt the user. Wait for the user's ASR text to be sent to the LLM and for the resulting response to finish, then send the custom text instruction to the LLM.
9
10
  */
10
11
  AgentThinkAgentManagementRequest.OnListeningAction = {
11
12
  Inject: "inject",
12
13
  Interrupt: "interrupt",
13
14
  Ignore: "ignore",
15
+ Append: "append",
14
16
  };
15
17
  /**
16
18
  * The action to take when the agent is in a thinking state:
17
19
  * - `interrupt`: Interrupt the current state and start a new conversation turn.
18
20
  * - `ignore`: Ignore the request.
21
+ * - `append`: Do not interrupt the current LLM inference. Allow the current turn to finish generating and playing its response first. After the current turn's LLM output is complete, send the queued custom text instruction to the LLM.
19
22
  */
20
23
  AgentThinkAgentManagementRequest.OnThinkingAction = {
21
24
  Interrupt: "interrupt",
22
25
  Ignore: "ignore",
26
+ Append: "append",
23
27
  };
24
28
  /**
25
29
  * The action to take when the agent is in a speaking state:
26
30
  * - `interrupt`: Interrupt the current state and start a new conversation turn.
27
31
  * - `ignore`: Ignore the request.
32
+ * - `append`: Do not interrupt the current TTS playback; the audio stream continues. After the current turn's LLM output is complete, send the custom text instruction directly to the LLM.
28
33
  */
29
34
  AgentThinkAgentManagementRequest.OnSpeakingAction = {
30
35
  Interrupt: "interrupt",
31
36
  Ignore: "ignore",
37
+ Append: "append",
32
38
  };
33
39
  })(AgentThinkAgentManagementRequest || (AgentThinkAgentManagementRequest = {}));
@@ -24,6 +24,21 @@ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.
24
24
  import * as core from "../../../../core/index.mjs";
25
25
  import * as environments from "../../../../environments.mjs";
26
26
  import * as errors from "../../../../errors/index.mjs";
27
+ function normalizeSpeechmaticsCredential(body) {
28
+ var _a;
29
+ const asr = body.properties.asr;
30
+ if ((asr === null || asr === void 0 ? void 0 : asr.vendor) !== "speechmatics" || asr.params == null) {
31
+ return body;
32
+ }
33
+ const params = asr.params;
34
+ const wireKey = (_a = params.key) !== null && _a !== void 0 ? _a : params.api_key;
35
+ if (wireKey === undefined) {
36
+ return body;
37
+ }
38
+ const normalizedParams = Object.assign(Object.assign({}, params), { key: wireKey });
39
+ delete normalizedParams.api_key;
40
+ return Object.assign(Object.assign({}, body), { properties: Object.assign(Object.assign({}, body.properties), { asr: Object.assign(Object.assign({}, asr), { params: normalizedParams }) }) });
41
+ }
27
42
  export class AgentsClient {
28
43
  constructor(options) {
29
44
  this._options = normalizeClientOptions(options);
@@ -88,6 +103,7 @@ export class AgentsClient {
88
103
  return __awaiter(this, void 0, void 0, function* () {
89
104
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
90
105
  const { appid } = request, _body = __rest(request, ["appid"]);
106
+ const _normalizedBody = normalizeSpeechmaticsCredential(_body);
91
107
  const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({ Authorization: yield this._getAuthorizationHeader() }, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
92
108
  const _response = yield core.fetcher({
93
109
  url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AgoraEnvironment.Default, `v2/projects/${core.url.encodePathParam(appid)}/join`),
@@ -96,7 +112,7 @@ export class AgentsClient {
96
112
  contentType: "application/json",
97
113
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
98
114
  requestType: "json",
99
- body: _body,
115
+ body: _normalizedBody,
100
116
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
101
117
  maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
102
118
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -111,7 +111,10 @@ export declare namespace StartAgentsRequest {
111
111
  labels?: Record<string, string>;
112
112
  /** RTC media encryption configuration. */
113
113
  rtc?: Properties.Rtc;
114
- /** Filler word configuration. Plays filler words while waiting for LLM responses to reduce user anxiety and improve conversation flow. */
114
+ /**
115
+ * Filler word configuration. Plays filler words while waiting for LLM responses to reduce user anxiety and improve conversation flow.
116
+ * When `enable` is `true`, `content.static_config.phrases` must be present and non-empty, even when `content.mode` is `generated`, because generated mode still falls back to static filler words.
117
+ */
115
118
  filler_words?: Properties.FillerWords;
116
119
  /** Agent configuration parameters. */
117
120
  parameters?: Properties.Parameters;
@@ -566,6 +569,7 @@ export declare namespace StartAgentsRequest {
566
569
  }
567
570
  /**
568
571
  * Filler word configuration. Plays filler words while waiting for LLM responses to reduce user anxiety and improve conversation flow.
572
+ * When `enable` is `true`, `content.static_config.phrases` must be present and non-empty, even when `content.mode` is `generated`, because generated mode still falls back to static filler words.
569
573
  */
570
574
  interface FillerWords {
571
575
  /**
@@ -608,14 +612,31 @@ export declare namespace StartAgentsRequest {
608
612
  /**
609
613
  * Filler word content mode:
610
614
  * - `static`: Static filler words. Uses a predefined list of filler words.
615
+ * - `generated`: LLM-generated filler words based on the last user message. Falls back to static filler words when generation is not ready, fails, or returns empty text.
616
+ */
617
+ mode?: Content.Mode;
618
+ /**
619
+ * Static filler word configuration. Required when `mode` is `static`.
620
+ * Also required whenever `filler_words.enable` is `true`, including when `mode` is `generated`, because generated mode uses static filler words as fallback.
611
621
  */
612
- mode?: "static";
613
- /** Static filler word configuration. Used when `mode` is `static`. */
614
622
  static_config?: Content.StaticConfig;
623
+ /** Generated filler word configuration. Required when `content.mode` is `generated`. */
624
+ generated_config?: Content.GeneratedConfig;
615
625
  }
616
626
  namespace Content {
617
627
  /**
618
- * Static filler word configuration. Used when `mode` is `static`.
628
+ * Filler word content mode:
629
+ * - `static`: Static filler words. Uses a predefined list of filler words.
630
+ * - `generated`: LLM-generated filler words based on the last user message. Falls back to static filler words when generation is not ready, fails, or returns empty text.
631
+ */
632
+ const Mode: {
633
+ readonly Static: "static";
634
+ readonly Generated: "generated";
635
+ };
636
+ type Mode = (typeof Mode)[keyof typeof Mode];
637
+ /**
638
+ * Static filler word configuration. Required when `mode` is `static`.
639
+ * Also required whenever `filler_words.enable` is `true`, including when `mode` is `generated`, because generated mode uses static filler words as fallback.
619
640
  */
620
641
  interface StaticConfig {
621
642
  /** List of filler word phrases. Maximum 100 filler words, each not exceeding 50 English words. */
@@ -639,6 +660,30 @@ export declare namespace StartAgentsRequest {
639
660
  };
640
661
  type SelectionRule = (typeof SelectionRule)[keyof typeof SelectionRule];
641
662
  }
663
+ /**
664
+ * Generated filler word configuration. Required when `content.mode` is `generated`.
665
+ */
666
+ interface GeneratedConfig {
667
+ /** 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. */
668
+ llm_provider: GeneratedConfig.LlmProvider;
669
+ /** 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. */
670
+ prompt: string;
671
+ /** Fallback strategy when generated filler text is not ready, fails, or returns empty text. Phase 1 only supports `static`. */
672
+ fallback_strategy: "static";
673
+ }
674
+ namespace GeneratedConfig {
675
+ /**
676
+ * 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.
677
+ */
678
+ interface LlmProvider {
679
+ /** Base URL of the OpenAI-compatible chat completions endpoint. If the URL does not end with `/chat/completions`, the engine appends it automatically. */
680
+ base_url: string;
681
+ /** API key for authenticating requests to the filler LLM provider. */
682
+ api_key: string;
683
+ /** Additional request parameters merged into the generated filler LLM request body, such as `model`. */
684
+ params?: Record<string, unknown>;
685
+ }
686
+ }
642
687
  }
643
688
  }
644
689
  /**
@@ -184,6 +184,15 @@ export var StartAgentsRequest;
184
184
  (function (FillerWords) {
185
185
  let Content;
186
186
  (function (Content) {
187
+ /**
188
+ * Filler word content mode:
189
+ * - `static`: Static filler words. Uses a predefined list of filler words.
190
+ * - `generated`: LLM-generated filler words based on the last user message. Falls back to static filler words when generation is not ready, fails, or returns empty text.
191
+ */
192
+ Content.Mode = {
193
+ Static: "static",
194
+ Generated: "generated",
195
+ };
187
196
  let StaticConfig;
188
197
  (function (StaticConfig) {
189
198
  /**
@@ -4,6 +4,8 @@ import type * as Agora from "../index.mjs";
4
4
  */
5
5
  export interface AresAsr {
6
6
  language?: Agora.AsrLanguage;
7
+ /** A list of hotwords to improve ASR accuracy. */
8
+ keywords?: string[];
7
9
  params?: Agora.AresAsrParams;
8
10
  /** Accepts any additional properties */
9
11
  [key: string]: any;
@@ -1,9 +1,4 @@
1
1
  /**
2
2
  * ARES ASR configuration parameters.
3
3
  */
4
- export interface AresAsrParams {
5
- /** A list of hotwords to improve ASR accuracy. */
6
- keywords?: string[];
7
- /** Accepts any additional properties */
8
- [key: string]: any;
9
- }
4
+ export type AresAsrParams = Record<string, unknown>;
@@ -4,6 +4,8 @@ import type * as Agora from "../index.mjs";
4
4
  */
5
5
  export interface FengmingAsr {
6
6
  language?: Agora.AsrLanguage;
7
+ /** A list of hotwords to improve ASR accuracy. */
8
+ keywords?: string[];
7
9
  params?: Agora.FengmingAsrParams;
8
10
  /** Accepts any additional properties */
9
11
  [key: string]: any;
@@ -1,9 +1,4 @@
1
1
  /**
2
2
  * Agora Fengming ASR configuration parameters.
3
3
  */
4
- export interface FengmingAsrParams {
5
- /** A list of hotwords to improve ASR accuracy. */
6
- keywords?: string[];
7
- /** Accepts any additional properties */
8
- [key: string]: any;
9
- }
4
+ export type FengmingAsrParams = Record<string, unknown>;
@@ -42,6 +42,18 @@ export interface Llm {
42
42
  template_variables?: Record<string, string>;
43
43
  /** MCP server configuration. */
44
44
  mcp_servers?: Record<string, unknown>[];
45
+ /**
46
+ * Inline REST (pass-through sync) tool definitions for standard text LLM function calling.
47
+ * Required fields per tool: `type`, `function.name`, `function.parameters`
48
+ * (`type: object` with `properties`), `server.method` (`GET` or `POST`), and `server.url`.
49
+ * The combination of `type: function` and `server` identifies a REST tool.
50
+ * Phase 1a supports GET and POST only; `execution.mode` defaults to and only accepts `sync`.
51
+ * Template rules:
52
+ * - Values must be a constant, or exactly one single-level placeholder.
53
+ * - `{{args.<name>}}`: `server.url` and `server.body` only; not allowed in headers.
54
+ * - `{{template_variables.<name>}}` and `{{tool_call_id}}`: `server.url`, `server.headers`, and `server.body`.
55
+ */
56
+ tools?: Agora.LlmTool[];
45
57
  /** Custom headers to include in requests to the LLM. */
46
58
  headers?: Record<string, string>;
47
59
  /** Accepts any additional properties */
@@ -0,0 +1,14 @@
1
+ import type * as Agora from "../index.mjs";
2
+ /**
3
+ * Inline REST tool definition. `type: function` combined with `server` declares a REST tool.
4
+ * Phase 1a executes the HTTP request synchronously and returns the raw result to the model context.
5
+ */
6
+ export interface LlmTool {
7
+ /** Tool type. Must be `function`. */
8
+ type: "function";
9
+ function: Agora.LlmToolFunction;
10
+ execution?: Agora.LlmToolExecution;
11
+ server: Agora.LlmToolServer;
12
+ /** Accepts any additional properties */
13
+ [key: string]: any;
14
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Tool execution configuration. Defaults to `{"mode": "sync"}`. Phase 1a only allows `sync`.
3
+ */
4
+ export interface LlmToolExecution {
5
+ /** Execution mode. Phase 1a only accepts `sync`. */
6
+ mode?: "sync";
7
+ /** Accepts any additional properties */
8
+ [key: string]: any;
9
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Tool interface exposed to the model. `parameters` defines LLM arguments, not the HTTP request shape.
3
+ */
4
+ export interface LlmToolFunction {
5
+ /** Function name visible to the model. Used as the REST tool index key (ASCII case-insensitive). */
6
+ name: string;
7
+ /** Function description visible to the model. */
8
+ description?: string;
9
+ /** JSON Schema defining the LLM tool-call arguments (`args`). Must be an object schema with `type: object` and `properties`. */
10
+ parameters: LlmToolFunction.Parameters;
11
+ /** Accepts any additional properties */
12
+ [key: string]: any;
13
+ }
14
+ export declare namespace LlmToolFunction {
15
+ /**
16
+ * JSON Schema defining the LLM tool-call arguments (`args`). Must be an object schema with `type: object` and `properties`.
17
+ */
18
+ interface Parameters {
19
+ /** JSON Schema type. Must be `object`. */
20
+ type: "object";
21
+ /** Argument property definitions keyed by argument name. */
22
+ properties: Record<string, unknown>;
23
+ /** List of required argument names. */
24
+ required?: string[];
25
+ /** Accepts any additional properties */
26
+ [key: string]: any;
27
+ }
28
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Actual HTTP request configuration for this REST tool.
3
+ * Does not use top-level `parameters`, `path_params`, standalone `query`,
4
+ * `response`, `json_path`, or `max_chars`.
5
+ */
6
+ export interface LlmToolServer {
7
+ /** HTTP method. Must be `GET` or `POST`. */
8
+ method: LlmToolServer.Method;
9
+ /**
10
+ * Full request URL. Write path and query templates directly in the URL.
11
+ * Placeholders allowed: `{{args.<name>}}`, `{{template_variables.<name>}}`,
12
+ * and `{{tool_call_id}}`. URL values may be string, number, or boolean.
13
+ */
14
+ url: string;
15
+ /**
16
+ * Request headers as a string dictionary.
17
+ * Each header value must be a constant or exactly one placeholder.
18
+ * Placeholders allowed: `{{template_variables.<name>}}` and `{{tool_call_id}}`.
19
+ * `{{args.*}}` is not allowed in headers.
20
+ */
21
+ headers?: Record<string, string>;
22
+ /**
23
+ * POST JSON body template. Must not be configured for `GET` requests.
24
+ * Supports arbitrary nested JSON. Only fields declared in `server.body` are sent.
25
+ * Leaf values may be constants or exactly one of `{{args.<name>}}`,
26
+ * `{{template_variables.<name>}}`, or `{{tool_call_id}}`.
27
+ * JSON body preserves original types after rendering.
28
+ */
29
+ body?: Record<string, unknown>;
30
+ /** Request timeout in milliseconds. Defaults to `10000`. Valid range is `1000` to `100000`. */
31
+ timeout_ms?: number;
32
+ /** Accepts any additional properties */
33
+ [key: string]: any;
34
+ }
35
+ export declare namespace LlmToolServer {
36
+ /** HTTP method. Must be `GET` or `POST`. */
37
+ const Method: {
38
+ readonly Get: "GET";
39
+ readonly Post: "POST";
40
+ };
41
+ type Method = (typeof Method)[keyof typeof Method];
42
+ }
@@ -0,0 +1,9 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var LlmToolServer;
3
+ (function (LlmToolServer) {
4
+ /** HTTP method. Must be `GET` or `POST`. */
5
+ LlmToolServer.Method = {
6
+ Get: "GET",
7
+ Post: "POST",
8
+ };
9
+ })(LlmToolServer || (LlmToolServer = {}));
@@ -1,9 +1,7 @@
1
1
  /**
2
2
  * Speechmatics ASR configuration parameters.
3
3
  */
4
- export interface SpeechmaticsAsrParams {
5
- /** Speechmatics API key */
6
- api_key: string;
4
+ interface SpeechmaticsAsrParamsBase {
7
5
  /** Language code to use for transcription */
8
6
  language: string;
9
7
  /** WebSocket URL for the Speechmatics streaming API */
@@ -11,3 +9,14 @@ export interface SpeechmaticsAsrParams {
11
9
  /** Accepts any additional properties */
12
10
  [key: string]: any;
13
11
  }
12
+ export type SpeechmaticsAsrParams = SpeechmaticsAsrParamsBase & ({
13
+ /** Speechmatics API key */
14
+ key: string;
15
+ /** @deprecated Use `key` instead. The client normalizes this alias to `key`. */
16
+ api_key?: string;
17
+ } | {
18
+ key?: undefined;
19
+ /** @deprecated Use `key` instead. The client normalizes this alias to `key`. */
20
+ api_key: string;
21
+ });
22
+ export {};
@@ -43,6 +43,10 @@ export * from "./HumeAiTts.mjs";
43
43
  export * from "./HumeAiTtsParams.mjs";
44
44
  export * from "./Llm.mjs";
45
45
  export * from "./LlmParams.mjs";
46
+ export * from "./LlmTool.mjs";
47
+ export * from "./LlmToolExecution.mjs";
48
+ export * from "./LlmToolFunction.mjs";
49
+ export * from "./LlmToolServer.mjs";
46
50
  export * from "./MicrosoftAsr.mjs";
47
51
  export * from "./MicrosoftAsrParams.mjs";
48
52
  export * from "./MicrosoftTts.mjs";
@@ -43,6 +43,10 @@ export * from "./HumeAiTts.mjs";
43
43
  export * from "./HumeAiTtsParams.mjs";
44
44
  export * from "./Llm.mjs";
45
45
  export * from "./LlmParams.mjs";
46
+ export * from "./LlmTool.mjs";
47
+ export * from "./LlmToolExecution.mjs";
48
+ export * from "./LlmToolFunction.mjs";
49
+ export * from "./LlmToolServer.mjs";
46
50
  export * from "./MicrosoftAsr.mjs";
47
51
  export * from "./MicrosoftAsrParams.mjs";
48
52
  export * from "./MicrosoftTts.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, FillerWordsContentSelectionRule, FillerWordsContentStaticConfig, FillerWordsTrigger, FillerWordsTriggerFixedTimeConfig, FishAudioTTSOptions, FishAudioTts, FishAudioTtsParams, GeminiLiveOptions, GeminiOptions, 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, LlmVendor, McpServersItem, MicrosoftCNSampleRate, MicrosoftCNSTTOptions, MicrosoftCNTTSOptions, MicrosoftSampleRate, MicrosoftSTTOptions, MicrosoftTTSOptions, MicrosoftTts, MicrosoftTtsParams, MiniMaxCNTTSOptions, MiniMaxTTSOptions, MinimaxTts, MinimaxTtsParams, MistralTTSOptions, MistralTts, MistralTtsParams, MllmConfig, MllmTurnDetectionConfig, MllmTurnDetectionMode, MllmVendor, MurfTTSOptions, MurfTts, MurfTtsParams, OpenAIOptions, OpenAIRealtimeOptions, OpenAISTTOptions, OpenAITTSOptions, OpenAiTts, OpenAiTtsParams, ParametersAudioScenario, ParametersDataChannel, PresetCategory, PresetInput, 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, DataChannel, DeepgramSTT, DeepgramTTS, DeepSeekLLM, Dify, ElevenLabsTTS, ExpiresIn, FengmingSTT, FillerWordsSelectionRule, FishAudioTTS, Gemini, GeminiLive, GenericAvatar, GenericTTS, Geofence, GoogleSTT, GoogleTTS, GradiumTTS, Groq, generateConvoAIToken, generateRtcToken, HeyGenAvatar, HumeAITTS, InterruptionDisabledStrategy, InterruptionDisabledStrategyAppend, InterruptionDisabledStrategyIgnore, InterruptionModeKeywords, InterruptionModeStartOfSpeech, InterruptionModeValues, isAkoolAvatar, isAnamAvatar, isAvatarTokenManaged, isGenericAvatar, isHeyGenAvatar, isLiveAvatarAvatar, isSensetimeAvatar, isSpatiusAvatar, LiveAvatarAvatar, MAX_EXPIRY_SECONDS, MicrosoftCNSTT, MicrosoftCNTTS, MicrosoftSTT, MicrosoftTTS, MiniMaxCNTTS, MiniMaxTTS, MistralTTS, MllmTurnDetectionModeAgoraVad, MllmTurnDetectionModeSemanticVad, MllmTurnDetectionModeServerVad, MllmTurnDetectionModeValues, MurfTTS, normalizePresetInput, OpenAI, OpenAIRealtime, OpenAISTT, OpenAITTS, QwenOmni, RimeTTS, 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, 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, FillerWordsContentSelectionRule, FillerWordsContentStaticConfig, 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, LlmVendor, McpServersItem, MicrosoftCNSampleRate, MicrosoftCNSTTOptions, MicrosoftCNTTSOptions, MicrosoftSampleRate, MicrosoftSTTOptions, MicrosoftTTSOptions, MicrosoftTts, MicrosoftTtsParams, MiniMaxCNTTSOptions, MiniMaxTTSOptions, MinimaxTts, MinimaxTtsParams, MistralTTSOptions, MistralTts, MistralTtsParams, MllmConfig, MllmTurnDetectionConfig, MllmTurnDetectionMode, MllmVendor, MurfTTSOptions, MurfTts, MurfTtsParams, OpenAIOptions, OpenAIRealtimeOptions, OpenAISTTOptions, OpenAITTSOptions, OpenAiTts, OpenAiTtsParams, ParametersAudioScenario, ParametersDataChannel, PresetCategory, PresetInput, 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, GenericAvatar, GenericTTS, Geofence, GoogleSTT, GoogleTTS, GradiumTTS, Groq, generateConvoAIToken, generateRtcToken, HeyGenAvatar, HumeAITTS, InterruptionDisabledStrategy, InterruptionDisabledStrategyAppend, InterruptionDisabledStrategyIgnore, InterruptionModeKeywords, InterruptionModeStartOfSpeech, InterruptionModeValues, isAkoolAvatar, isAnamAvatar, isAvatarTokenManaged, isGenericAvatar, isHeyGenAvatar, isLiveAvatarAvatar, isSensetimeAvatar, isSpatiusAvatar, LiveAvatarAvatar, MAX_EXPIRY_SECONDS, MicrosoftCNSTT, MicrosoftCNTTS, MicrosoftSTT, MicrosoftTTS, MiniMaxCNTTS, MiniMaxTTS, MistralTTS, MllmTurnDetectionModeAgoraVad, MllmTurnDetectionModeSemanticVad, MllmTurnDetectionModeServerVad, MllmTurnDetectionModeValues, MurfTTS, normalizePresetInput, OpenAI, OpenAIRealtime, OpenAISTT, OpenAITTS, 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";
6
6
  export * as Agora from "./api/index.mjs";
7
7
  export type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
8
8
  export { Area } from "./core/domain/index.mjs";
@@ -2,15 +2,15 @@ export { AgoraClient } from "./AgoraPoolClient.mjs";
2
2
  // Agentkit layer exports - clean, ergonomic API
3
3
  export { Agent, AgentPresets, AgentSession, AkoolAvatar, AliyunLLM, AmazonBedrock, AmazonSTT, AmazonTTS, AnamAvatar, Anthropic, AresSTT, AssemblyAISTT, AudioScenario, AzureOpenAI, AzureOpenAIRealtime, BaseAvatar, BaseCNAvatar, BaseCNLLM, BaseCNMLLM, BaseCNSTT, BaseCNTTS,
4
4
  // Base vendor classes
5
- BaseLLM, BaseMLLM, BaseSTT, BaseTTS, BytedanceDuplexTTS, BytedanceLLM, BytedanceTTS, CartesiaTTS, CosyVoiceTTS, CredentialMode, CustomLLM, DataChannel, DeepgramSTT, DeepgramTTS, DeepSeekLLM, Dify,
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, GenericAvatar, GenericTTS, Geofence, GoogleSTT, GoogleTTS, GradiumTTS, Groq, generateConvoAIToken, generateRtcToken,
7
+ ElevenLabsTTS, ExpiresIn, FengmingSTT, FillerWordsSelectionRule, FishAudioTTS, Gemini, GeminiLive, GeminiSTT, GeminiSTTModels, 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,
12
12
  // MLLM vendors
13
- OpenAIRealtime, OpenAISTT, OpenAITTS, QwenOmni, RimeTTS, 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, 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.6.0";
1
+ export declare const SDK_VERSION = "v2.7.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "v2.6.0";
1
+ export const SDK_VERSION = "v2.7.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agora-agents",
3
- "version": "2.6.0",
3
+ "version": "2.7.0",
4
4
  "private": false,
5
5
  "repository": "github:AgoraIO/agora-agents-ts",
6
6
  "type": "commonjs",