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
@@ -7,9 +7,7 @@ import { BaseSTT } from "./base.js";
7
7
  /**
8
8
  * Constructor options for Speechmatics STT.
9
9
  */
10
- export interface SpeechmaticsSTTOptions {
11
- /** Speechmatics API key */
12
- apiKey: string;
10
+ interface SpeechmaticsSTTCommonOptions {
13
11
  /** Language code (e.g., 'en', 'es', 'fr') */
14
12
  language: string;
15
13
  /** Model name */
@@ -19,13 +17,23 @@ export interface SpeechmaticsSTTOptions {
19
17
  /** Additional vendor-specific parameters */
20
18
  additionalParams?: Record<string, unknown>;
21
19
  }
20
+ export type SpeechmaticsSTTOptions = SpeechmaticsSTTCommonOptions & ({
21
+ /** Speechmatics API key */
22
+ key: string;
23
+ /** @deprecated Use `key` instead. This alias is normalized to the REST API's `key` field. */
24
+ apiKey?: string;
25
+ } | {
26
+ key?: undefined;
27
+ /** @deprecated Use `key` instead. This alias is normalized to the REST API's `key` field. */
28
+ apiKey: string;
29
+ });
22
30
  /**
23
31
  * Speechmatics STT vendor.
24
32
  *
25
33
  * @example
26
34
  * ```typescript
27
35
  * const stt = new SpeechmaticsSTT({
28
- * apiKey: process.env.SPEECHMATICS_API_KEY,
36
+ * key: process.env.SPEECHMATICS_API_KEY,
29
37
  * language: 'en',
30
38
  * });
31
39
  * ```
@@ -20,7 +20,7 @@ function isDeepgramManagedModel(model) {
20
20
  * @example
21
21
  * ```typescript
22
22
  * const stt = new SpeechmaticsSTT({
23
- * apiKey: process.env.SPEECHMATICS_API_KEY,
23
+ * key: process.env.SPEECHMATICS_API_KEY,
24
24
  * language: 'en',
25
25
  * });
26
26
  * ```
@@ -31,10 +31,14 @@ class SpeechmaticsSTT extends base_js_1.BaseSTT {
31
31
  this.options = options;
32
32
  }
33
33
  toConfig() {
34
- const { apiKey, language, model, uri, additionalParams } = this.options;
34
+ const { key, apiKey, language, model, uri, additionalParams } = this.options;
35
+ const wireKey = key !== null && key !== void 0 ? key : apiKey;
36
+ _requireString(wireKey, "key", "SpeechmaticsSTT");
37
+ const params = Object.assign(Object.assign(Object.assign(Object.assign({}, additionalParams), { key: wireKey, language }), (model !== undefined && { model })), (uri !== undefined && { uri }));
38
+ delete params.api_key;
35
39
  return {
36
40
  vendor: "speechmatics",
37
- params: Object.assign(Object.assign(Object.assign(Object.assign({}, additionalParams), { api_key: apiKey, language }), (model !== undefined && { model })), (uri !== undefined && { uri })),
41
+ params,
38
42
  };
39
43
  }
40
44
  }
@@ -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
  }
@@ -9,28 +9,34 @@ var AgentThinkAgentManagementRequest;
9
9
  * - `inject`: Inject the custom text instruction into the current turn without interrupting it.
10
10
  * - `interrupt`: Immediately interrupt the current flow and initiate a new round of dialogue.
11
11
  * - `ignore`: Ignore the request.
12
+ * - `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.
12
13
  */
13
14
  AgentThinkAgentManagementRequest.OnListeningAction = {
14
15
  Inject: "inject",
15
16
  Interrupt: "interrupt",
16
17
  Ignore: "ignore",
18
+ Append: "append",
17
19
  };
18
20
  /**
19
21
  * The action to take when the agent is in a thinking state:
20
22
  * - `interrupt`: Interrupt the current state and start a new conversation turn.
21
23
  * - `ignore`: Ignore the request.
24
+ * - `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.
22
25
  */
23
26
  AgentThinkAgentManagementRequest.OnThinkingAction = {
24
27
  Interrupt: "interrupt",
25
28
  Ignore: "ignore",
29
+ Append: "append",
26
30
  };
27
31
  /**
28
32
  * The action to take when the agent is in a speaking state:
29
33
  * - `interrupt`: Interrupt the current state and start a new conversation turn.
30
34
  * - `ignore`: Ignore the request.
35
+ * - `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.
31
36
  */
32
37
  AgentThinkAgentManagementRequest.OnSpeakingAction = {
33
38
  Interrupt: "interrupt",
34
39
  Ignore: "ignore",
40
+ Append: "append",
35
41
  };
36
42
  })(AgentThinkAgentManagementRequest || (exports.AgentThinkAgentManagementRequest = AgentThinkAgentManagementRequest = {}));
@@ -60,6 +60,21 @@ const headers_js_1 = require("../../../../core/headers.js");
60
60
  const core = __importStar(require("../../../../core/index.js"));
61
61
  const environments = __importStar(require("../../../../environments.js"));
62
62
  const errors = __importStar(require("../../../../errors/index.js"));
63
+ function normalizeSpeechmaticsCredential(body) {
64
+ var _a;
65
+ const asr = body.properties.asr;
66
+ if ((asr === null || asr === void 0 ? void 0 : asr.vendor) !== "speechmatics" || asr.params == null) {
67
+ return body;
68
+ }
69
+ const params = asr.params;
70
+ const wireKey = (_a = params.key) !== null && _a !== void 0 ? _a : params.api_key;
71
+ if (wireKey === undefined) {
72
+ return body;
73
+ }
74
+ const normalizedParams = Object.assign(Object.assign({}, params), { key: wireKey });
75
+ delete normalizedParams.api_key;
76
+ return Object.assign(Object.assign({}, body), { properties: Object.assign(Object.assign({}, body.properties), { asr: Object.assign(Object.assign({}, asr), { params: normalizedParams }) }) });
77
+ }
63
78
  class AgentsClient {
64
79
  constructor(options) {
65
80
  this._options = (0, BaseClient_js_1.normalizeClientOptions)(options);
@@ -124,6 +139,7 @@ class AgentsClient {
124
139
  return __awaiter(this, void 0, void 0, function* () {
125
140
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
126
141
  const { appid } = request, _body = __rest(request, ["appid"]);
142
+ const _normalizedBody = normalizeSpeechmaticsCredential(_body);
127
143
  const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({ Authorization: yield this._getAuthorizationHeader() }, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
128
144
  const _response = yield core.fetcher({
129
145
  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`),
@@ -132,7 +148,7 @@ class AgentsClient {
132
148
  contentType: "application/json",
133
149
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
134
150
  requestType: "json",
135
- body: _body,
151
+ body: _normalizedBody,
136
152
  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,
137
153
  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,
138
154
  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
  /**
@@ -187,6 +187,15 @@ var StartAgentsRequest;
187
187
  (function (FillerWords) {
188
188
  let Content;
189
189
  (function (Content) {
190
+ /**
191
+ * Filler word content mode:
192
+ * - `static`: Static filler words. Uses a predefined list of filler words.
193
+ * - `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.
194
+ */
195
+ Content.Mode = {
196
+ Static: "static",
197
+ Generated: "generated",
198
+ };
190
199
  let StaticConfig;
191
200
  (function (StaticConfig) {
192
201
  /**
@@ -4,6 +4,8 @@ import type * as Agora from "../index.js";
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.js";
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.js";
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,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
+ /**
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,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,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,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,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,12 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.LlmToolServer = void 0;
5
+ var LlmToolServer;
6
+ (function (LlmToolServer) {
7
+ /** HTTP method. Must be `GET` or `POST`. */
8
+ LlmToolServer.Method = {
9
+ Get: "GET",
10
+ Post: "POST",
11
+ };
12
+ })(LlmToolServer || (exports.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.js";
43
43
  export * from "./HumeAiTtsParams.js";
44
44
  export * from "./Llm.js";
45
45
  export * from "./LlmParams.js";
46
+ export * from "./LlmTool.js";
47
+ export * from "./LlmToolExecution.js";
48
+ export * from "./LlmToolFunction.js";
49
+ export * from "./LlmToolServer.js";
46
50
  export * from "./MicrosoftAsr.js";
47
51
  export * from "./MicrosoftAsrParams.js";
48
52
  export * from "./MicrosoftTts.js";
@@ -59,6 +59,10 @@ __exportStar(require("./HumeAiTts.js"), exports);
59
59
  __exportStar(require("./HumeAiTtsParams.js"), exports);
60
60
  __exportStar(require("./Llm.js"), exports);
61
61
  __exportStar(require("./LlmParams.js"), exports);
62
+ __exportStar(require("./LlmTool.js"), exports);
63
+ __exportStar(require("./LlmToolExecution.js"), exports);
64
+ __exportStar(require("./LlmToolFunction.js"), exports);
65
+ __exportStar(require("./LlmToolServer.js"), exports);
62
66
  __exportStar(require("./MicrosoftAsr.js"), exports);
63
67
  __exportStar(require("./MicrosoftAsrParams.js"), exports);
64
68
  __exportStar(require("./MicrosoftTts.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, 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.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, 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.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, 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.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, 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.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";