agora-agents 2.1.1 → 2.3.1
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.
- package/README.md +49 -27
- package/dist/cjs/AgoraPoolClient.d.ts +9 -6
- package/dist/cjs/AgoraPoolClient.js +1 -0
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/agentkit/Agent.d.ts +52 -51
- package/dist/cjs/agentkit/Agent.js +51 -51
- package/dist/cjs/agentkit/AgentSession.d.ts +11 -9
- package/dist/cjs/agentkit/AgentSession.js +10 -5
- package/dist/cjs/agentkit/__tests__/area-aware-vendors.test.d.ts +1 -0
- package/dist/cjs/agentkit/__tests__/area-aware-vendors.test.js +57 -0
- package/dist/cjs/agentkit/__tests__/readme-examples.test.d.ts +1 -0
- package/dist/cjs/agentkit/__tests__/readme-examples.test.js +126 -0
- package/dist/cjs/agentkit/__tests__/type-safety.test.js +24 -17
- package/dist/cjs/agentkit/area.d.ts +4 -0
- package/dist/cjs/agentkit/area.js +2 -0
- package/dist/cjs/agentkit/avatar-types.d.ts +28 -2
- package/dist/cjs/agentkit/avatar-types.js +24 -2
- package/dist/cjs/agentkit/index.d.ts +8 -5
- package/dist/cjs/agentkit/index.js +27 -2
- package/dist/cjs/agentkit/presets.js +11 -4
- package/dist/cjs/agentkit/region-vendors.d.ts +15 -0
- package/dist/cjs/agentkit/region-vendors.js +2 -0
- package/dist/cjs/agentkit/token.d.ts +3 -2
- package/dist/cjs/agentkit/token.js +3 -2
- package/dist/cjs/agentkit/types.d.ts +29 -6
- package/dist/cjs/agentkit/vendors/avatar.d.ts +9 -4
- package/dist/cjs/agentkit/vendors/avatar.js +6 -3
- package/dist/cjs/agentkit/vendors/base.d.ts +38 -5
- package/dist/cjs/agentkit/vendors/base.js +60 -6
- package/dist/cjs/agentkit/vendors/cn.d.ts +251 -0
- package/dist/cjs/agentkit/vendors/cn.js +293 -0
- package/dist/cjs/agentkit/vendors/llm.d.ts +4 -2
- package/dist/cjs/agentkit/vendors/llm.js +10 -5
- package/dist/cjs/agentkit/vendors/mllm.d.ts +8 -4
- package/dist/cjs/agentkit/vendors/mllm.js +8 -4
- package/dist/cjs/agentkit/vendors/stt.d.ts +4 -6
- package/dist/cjs/agentkit/vendors/stt.js +48 -62
- package/dist/cjs/agentkit/vendors/tts.d.ts +3 -3
- package/dist/cjs/agentkit/vendors/tts.js +1 -1
- package/dist/cjs/api/resources/agents/client/requests/StartAgentsRequest.d.ts +5 -2
- package/dist/cjs/api/resources/agents/client/requests/StartAgentsRequest.js +4 -0
- package/dist/cjs/api/types/Asr.d.ts +16 -1
- package/dist/cjs/api/types/BytedanceDuplexTts.d.ts +9 -0
- package/dist/cjs/api/types/BytedanceDuplexTts.js +3 -0
- package/dist/cjs/api/types/BytedanceDuplexTtsParams.d.ts +13 -0
- package/dist/cjs/api/types/BytedanceDuplexTtsParams.js +3 -0
- package/dist/cjs/api/types/BytedanceTts.d.ts +9 -0
- package/dist/cjs/api/types/BytedanceTts.js +3 -0
- package/dist/cjs/api/types/BytedanceTtsParams.d.ts +23 -0
- package/dist/cjs/api/types/BytedanceTtsParams.js +3 -0
- package/dist/cjs/api/types/CosyvoiceTts.d.ts +9 -0
- package/dist/cjs/api/types/CosyvoiceTts.js +3 -0
- package/dist/cjs/api/types/CosyvoiceTtsParams.d.ts +15 -0
- package/dist/cjs/api/types/CosyvoiceTtsParams.js +3 -0
- package/dist/cjs/api/types/DeepgramAsr.d.ts +0 -2
- package/dist/cjs/api/types/DeepgramAsrParams.d.ts +1 -1
- package/dist/cjs/api/types/FengmingAsr.d.ts +11 -0
- package/dist/cjs/api/types/FengmingAsr.js +3 -0
- package/dist/cjs/api/types/MinimaxTtsParams.d.ts +52 -3
- package/dist/cjs/api/types/SensetimeAvatarParams.d.ts +48 -0
- package/dist/cjs/api/types/SensetimeAvatarParams.js +3 -0
- package/dist/cjs/api/types/StepfunTts.d.ts +9 -0
- package/dist/cjs/api/types/StepfunTts.js +3 -0
- package/dist/cjs/api/types/StepfunTtsParams.d.ts +13 -0
- package/dist/cjs/api/types/StepfunTtsParams.js +3 -0
- package/dist/cjs/api/types/TencentAsr.d.ts +10 -0
- package/dist/cjs/api/types/TencentAsr.js +3 -0
- package/dist/cjs/api/types/TencentAsrParams.d.ts +17 -0
- package/dist/cjs/api/types/TencentAsrParams.js +3 -0
- package/dist/cjs/api/types/TencentTts.d.ts +9 -0
- package/dist/cjs/api/types/TencentTts.js +3 -0
- package/dist/cjs/api/types/TencentTtsParams.d.ts +23 -0
- package/dist/cjs/api/types/TencentTtsParams.js +3 -0
- package/dist/cjs/api/types/Tts.d.ts +16 -1
- package/dist/cjs/api/types/XfyunAsr.d.ts +10 -0
- package/dist/cjs/api/types/XfyunAsr.js +3 -0
- package/dist/cjs/api/types/XfyunAsrParams.d.ts +15 -0
- package/dist/cjs/api/types/XfyunAsrParams.js +3 -0
- package/dist/cjs/api/types/XfyunBigmodelAsr.d.ts +10 -0
- package/dist/cjs/api/types/XfyunBigmodelAsr.js +3 -0
- package/dist/cjs/api/types/XfyunBigmodelAsrParams.d.ts +17 -0
- package/dist/cjs/api/types/XfyunBigmodelAsrParams.js +3 -0
- package/dist/cjs/api/types/XfyunDialectAsr.d.ts +10 -0
- package/dist/cjs/api/types/XfyunDialectAsr.js +3 -0
- package/dist/cjs/api/types/XfyunDialectAsrParams.d.ts +15 -0
- package/dist/cjs/api/types/XfyunDialectAsrParams.js +3 -0
- package/dist/cjs/api/types/index.d.ts +20 -0
- package/dist/cjs/api/types/index.js +20 -0
- package/dist/cjs/core/domain/index.d.ts +2 -1
- package/dist/cjs/core/domain/index.js +5 -3
- package/dist/cjs/index.d.ts +3 -2
- package/dist/cjs/index.js +26 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/AgoraPoolClient.d.mts +9 -6
- package/dist/esm/AgoraPoolClient.mjs +1 -0
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/agentkit/Agent.d.mts +52 -51
- package/dist/esm/agentkit/Agent.mjs +51 -51
- package/dist/esm/agentkit/AgentSession.d.mts +11 -9
- package/dist/esm/agentkit/AgentSession.mjs +11 -6
- package/dist/esm/agentkit/__tests__/area-aware-vendors.test.d.mts +1 -0
- package/dist/esm/agentkit/__tests__/area-aware-vendors.test.mjs +55 -0
- package/dist/esm/agentkit/__tests__/readme-examples.test.d.mts +1 -0
- package/dist/esm/agentkit/__tests__/readme-examples.test.mjs +124 -0
- package/dist/esm/agentkit/__tests__/type-safety.test.mjs +24 -17
- package/dist/esm/agentkit/area.d.mts +4 -0
- package/dist/esm/agentkit/area.mjs +1 -0
- package/dist/esm/agentkit/avatar-types.d.mts +28 -2
- package/dist/esm/agentkit/avatar-types.mjs +23 -2
- package/dist/esm/agentkit/index.d.mts +8 -5
- package/dist/esm/agentkit/index.mjs +3 -2
- package/dist/esm/agentkit/presets.mjs +11 -4
- package/dist/esm/agentkit/region-vendors.d.mts +15 -0
- package/dist/esm/agentkit/region-vendors.mjs +1 -0
- package/dist/esm/agentkit/token.d.mts +3 -2
- package/dist/esm/agentkit/token.mjs +3 -2
- package/dist/esm/agentkit/types.d.mts +29 -6
- package/dist/esm/agentkit/vendors/avatar.d.mts +9 -4
- package/dist/esm/agentkit/vendors/avatar.mjs +6 -3
- package/dist/esm/agentkit/vendors/base.d.mts +38 -5
- package/dist/esm/agentkit/vendors/base.mjs +55 -5
- package/dist/esm/agentkit/vendors/cn.d.mts +251 -0
- package/dist/esm/agentkit/vendors/cn.mjs +272 -0
- package/dist/esm/agentkit/vendors/llm.d.mts +4 -2
- package/dist/esm/agentkit/vendors/llm.mjs +10 -5
- package/dist/esm/agentkit/vendors/mllm.d.mts +8 -4
- package/dist/esm/agentkit/vendors/mllm.mjs +8 -4
- package/dist/esm/agentkit/vendors/stt.d.mts +4 -6
- package/dist/esm/agentkit/vendors/stt.mjs +48 -62
- package/dist/esm/agentkit/vendors/tts.d.mts +3 -3
- package/dist/esm/agentkit/vendors/tts.mjs +1 -1
- package/dist/esm/api/resources/agents/client/requests/StartAgentsRequest.d.mts +5 -2
- package/dist/esm/api/resources/agents/client/requests/StartAgentsRequest.mjs +4 -0
- package/dist/esm/api/types/Asr.d.mts +16 -1
- package/dist/esm/api/types/BytedanceDuplexTts.d.mts +9 -0
- package/dist/esm/api/types/BytedanceDuplexTts.mjs +2 -0
- package/dist/esm/api/types/BytedanceDuplexTtsParams.d.mts +13 -0
- package/dist/esm/api/types/BytedanceDuplexTtsParams.mjs +2 -0
- package/dist/esm/api/types/BytedanceTts.d.mts +9 -0
- package/dist/esm/api/types/BytedanceTts.mjs +2 -0
- package/dist/esm/api/types/BytedanceTtsParams.d.mts +23 -0
- package/dist/esm/api/types/BytedanceTtsParams.mjs +2 -0
- package/dist/esm/api/types/CosyvoiceTts.d.mts +9 -0
- package/dist/esm/api/types/CosyvoiceTts.mjs +2 -0
- package/dist/esm/api/types/CosyvoiceTtsParams.d.mts +15 -0
- package/dist/esm/api/types/CosyvoiceTtsParams.mjs +2 -0
- package/dist/esm/api/types/DeepgramAsr.d.mts +0 -2
- package/dist/esm/api/types/DeepgramAsrParams.d.mts +1 -1
- package/dist/esm/api/types/FengmingAsr.d.mts +11 -0
- package/dist/esm/api/types/FengmingAsr.mjs +2 -0
- package/dist/esm/api/types/MinimaxTtsParams.d.mts +52 -3
- package/dist/esm/api/types/SensetimeAvatarParams.d.mts +48 -0
- package/dist/esm/api/types/SensetimeAvatarParams.mjs +2 -0
- package/dist/esm/api/types/StepfunTts.d.mts +9 -0
- package/dist/esm/api/types/StepfunTts.mjs +2 -0
- package/dist/esm/api/types/StepfunTtsParams.d.mts +13 -0
- package/dist/esm/api/types/StepfunTtsParams.mjs +2 -0
- package/dist/esm/api/types/TencentAsr.d.mts +10 -0
- package/dist/esm/api/types/TencentAsr.mjs +2 -0
- package/dist/esm/api/types/TencentAsrParams.d.mts +17 -0
- package/dist/esm/api/types/TencentAsrParams.mjs +2 -0
- package/dist/esm/api/types/TencentTts.d.mts +9 -0
- package/dist/esm/api/types/TencentTts.mjs +2 -0
- package/dist/esm/api/types/TencentTtsParams.d.mts +23 -0
- package/dist/esm/api/types/TencentTtsParams.mjs +2 -0
- package/dist/esm/api/types/Tts.d.mts +16 -1
- package/dist/esm/api/types/XfyunAsr.d.mts +10 -0
- package/dist/esm/api/types/XfyunAsr.mjs +2 -0
- package/dist/esm/api/types/XfyunAsrParams.d.mts +15 -0
- package/dist/esm/api/types/XfyunAsrParams.mjs +2 -0
- package/dist/esm/api/types/XfyunBigmodelAsr.d.mts +10 -0
- package/dist/esm/api/types/XfyunBigmodelAsr.mjs +2 -0
- package/dist/esm/api/types/XfyunBigmodelAsrParams.d.mts +17 -0
- package/dist/esm/api/types/XfyunBigmodelAsrParams.mjs +2 -0
- package/dist/esm/api/types/XfyunDialectAsr.d.mts +10 -0
- package/dist/esm/api/types/XfyunDialectAsr.mjs +2 -0
- package/dist/esm/api/types/XfyunDialectAsrParams.d.mts +15 -0
- package/dist/esm/api/types/XfyunDialectAsrParams.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +20 -0
- package/dist/esm/api/types/index.mjs +20 -0
- package/dist/esm/core/domain/index.d.mts +2 -1
- package/dist/esm/core/domain/index.mjs +4 -2
- package/dist/esm/index.d.mts +3 -2
- package/dist/esm/index.mjs +6 -6
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
|
@@ -9,16 +9,23 @@ export * from "./Asr.mjs";
|
|
|
9
9
|
export * from "./AsrLanguage.mjs";
|
|
10
10
|
export * from "./AssemblyAiAsr.mjs";
|
|
11
11
|
export * from "./AssemblyAiAsrParams.mjs";
|
|
12
|
+
export * from "./BytedanceDuplexTts.mjs";
|
|
13
|
+
export * from "./BytedanceDuplexTtsParams.mjs";
|
|
14
|
+
export * from "./BytedanceTts.mjs";
|
|
15
|
+
export * from "./BytedanceTtsParams.mjs";
|
|
12
16
|
export * from "./CartesiaTts.mjs";
|
|
13
17
|
export * from "./CartesiaTtsOutputFormat.mjs";
|
|
14
18
|
export * from "./CartesiaTtsParams.mjs";
|
|
15
19
|
export * from "./CartesiaTtsVoice.mjs";
|
|
20
|
+
export * from "./CosyvoiceTts.mjs";
|
|
21
|
+
export * from "./CosyvoiceTtsParams.mjs";
|
|
16
22
|
export * from "./DeepgramAsr.mjs";
|
|
17
23
|
export * from "./DeepgramAsrParams.mjs";
|
|
18
24
|
export * from "./DeepgramTts.mjs";
|
|
19
25
|
export * from "./DeepgramTtsParams.mjs";
|
|
20
26
|
export * from "./ElevenLabsTts.mjs";
|
|
21
27
|
export * from "./ElevenLabsTtsParams.mjs";
|
|
28
|
+
export * from "./FengmingAsr.mjs";
|
|
22
29
|
export * from "./FishAudioTts.mjs";
|
|
23
30
|
export * from "./FishAudioTtsParams.mjs";
|
|
24
31
|
export * from "./GoogleAsr.mjs";
|
|
@@ -55,7 +62,20 @@ export * from "./SarvamAsr.mjs";
|
|
|
55
62
|
export * from "./SarvamAsrParams.mjs";
|
|
56
63
|
export * from "./SarvamTts.mjs";
|
|
57
64
|
export * from "./SarvamTtsParams.mjs";
|
|
65
|
+
export * from "./SensetimeAvatarParams.mjs";
|
|
58
66
|
export * from "./SpeechmaticsAsr.mjs";
|
|
59
67
|
export * from "./SpeechmaticsAsrParams.mjs";
|
|
68
|
+
export * from "./StepfunTts.mjs";
|
|
69
|
+
export * from "./StepfunTtsParams.mjs";
|
|
60
70
|
export * from "./TelephonyErrorResponse.mjs";
|
|
71
|
+
export * from "./TencentAsr.mjs";
|
|
72
|
+
export * from "./TencentAsrParams.mjs";
|
|
73
|
+
export * from "./TencentTts.mjs";
|
|
74
|
+
export * from "./TencentTtsParams.mjs";
|
|
61
75
|
export * from "./Tts.mjs";
|
|
76
|
+
export * from "./XfyunAsr.mjs";
|
|
77
|
+
export * from "./XfyunAsrParams.mjs";
|
|
78
|
+
export * from "./XfyunBigmodelAsr.mjs";
|
|
79
|
+
export * from "./XfyunBigmodelAsrParams.mjs";
|
|
80
|
+
export * from "./XfyunDialectAsr.mjs";
|
|
81
|
+
export * from "./XfyunDialectAsrParams.mjs";
|
|
@@ -9,16 +9,23 @@ export * from "./Asr.mjs";
|
|
|
9
9
|
export * from "./AsrLanguage.mjs";
|
|
10
10
|
export * from "./AssemblyAiAsr.mjs";
|
|
11
11
|
export * from "./AssemblyAiAsrParams.mjs";
|
|
12
|
+
export * from "./BytedanceDuplexTts.mjs";
|
|
13
|
+
export * from "./BytedanceDuplexTtsParams.mjs";
|
|
14
|
+
export * from "./BytedanceTts.mjs";
|
|
15
|
+
export * from "./BytedanceTtsParams.mjs";
|
|
12
16
|
export * from "./CartesiaTts.mjs";
|
|
13
17
|
export * from "./CartesiaTtsOutputFormat.mjs";
|
|
14
18
|
export * from "./CartesiaTtsParams.mjs";
|
|
15
19
|
export * from "./CartesiaTtsVoice.mjs";
|
|
20
|
+
export * from "./CosyvoiceTts.mjs";
|
|
21
|
+
export * from "./CosyvoiceTtsParams.mjs";
|
|
16
22
|
export * from "./DeepgramAsr.mjs";
|
|
17
23
|
export * from "./DeepgramAsrParams.mjs";
|
|
18
24
|
export * from "./DeepgramTts.mjs";
|
|
19
25
|
export * from "./DeepgramTtsParams.mjs";
|
|
20
26
|
export * from "./ElevenLabsTts.mjs";
|
|
21
27
|
export * from "./ElevenLabsTtsParams.mjs";
|
|
28
|
+
export * from "./FengmingAsr.mjs";
|
|
22
29
|
export * from "./FishAudioTts.mjs";
|
|
23
30
|
export * from "./FishAudioTtsParams.mjs";
|
|
24
31
|
export * from "./GoogleAsr.mjs";
|
|
@@ -55,7 +62,20 @@ export * from "./SarvamAsr.mjs";
|
|
|
55
62
|
export * from "./SarvamAsrParams.mjs";
|
|
56
63
|
export * from "./SarvamTts.mjs";
|
|
57
64
|
export * from "./SarvamTtsParams.mjs";
|
|
65
|
+
export * from "./SensetimeAvatarParams.mjs";
|
|
58
66
|
export * from "./SpeechmaticsAsr.mjs";
|
|
59
67
|
export * from "./SpeechmaticsAsrParams.mjs";
|
|
68
|
+
export * from "./StepfunTts.mjs";
|
|
69
|
+
export * from "./StepfunTtsParams.mjs";
|
|
60
70
|
export * from "./TelephonyErrorResponse.mjs";
|
|
71
|
+
export * from "./TencentAsr.mjs";
|
|
72
|
+
export * from "./TencentAsrParams.mjs";
|
|
73
|
+
export * from "./TencentTts.mjs";
|
|
74
|
+
export * from "./TencentTtsParams.mjs";
|
|
61
75
|
export * from "./Tts.mjs";
|
|
76
|
+
export * from "./XfyunAsr.mjs";
|
|
77
|
+
export * from "./XfyunAsrParams.mjs";
|
|
78
|
+
export * from "./XfyunBigmodelAsr.mjs";
|
|
79
|
+
export * from "./XfyunBigmodelAsrParams.mjs";
|
|
80
|
+
export * from "./XfyunDialectAsr.mjs";
|
|
81
|
+
export * from "./XfyunDialectAsrParams.mjs";
|
|
@@ -23,7 +23,8 @@ export declare const EUWestRegionDomainPrefix = "api-eu-west-1";
|
|
|
23
23
|
export declare const EUCentralRegionDomainPrefix = "api-eu-central-1";
|
|
24
24
|
export declare const CNEastRegionDomainPrefix = "api-cn-east-1";
|
|
25
25
|
export declare const CNNorthRegionDomainPrefix = "api-cn-north-1";
|
|
26
|
-
export declare const
|
|
26
|
+
export declare const GlobalAPIPath = "/api/conversational-ai-agent";
|
|
27
|
+
export declare const CNAPIPath = "/cn/api/conversational-ai-agent";
|
|
27
28
|
/**
|
|
28
29
|
* Domain contains the regional prefixes and domain suffixes for an area
|
|
29
30
|
*/
|
|
@@ -37,7 +37,8 @@ export const EUWestRegionDomainPrefix = "api-eu-west-1";
|
|
|
37
37
|
export const EUCentralRegionDomainPrefix = "api-eu-central-1";
|
|
38
38
|
export const CNEastRegionDomainPrefix = "api-cn-east-1";
|
|
39
39
|
export const CNNorthRegionDomainPrefix = "api-cn-north-1";
|
|
40
|
-
export const
|
|
40
|
+
export const GlobalAPIPath = "/api/conversational-ai-agent";
|
|
41
|
+
export const CNAPIPath = "/cn/api/conversational-ai-agent";
|
|
41
42
|
/**
|
|
42
43
|
* RegionDomain maps areas to their domain configurations
|
|
43
44
|
*/
|
|
@@ -140,7 +141,8 @@ export class Pool {
|
|
|
140
141
|
getCurrentURL() {
|
|
141
142
|
const currentRegion = this.currentRegionPrefixes[0];
|
|
142
143
|
const currentDomain = this.currentDomain;
|
|
143
|
-
|
|
144
|
+
const apiPath = this.domainArea === Area.CN ? CNAPIPath : GlobalAPIPath;
|
|
145
|
+
return `https://${currentRegion}.${currentDomain}${apiPath}`;
|
|
144
146
|
}
|
|
145
147
|
/**
|
|
146
148
|
* Get the current area
|
package/dist/esm/index.d.mts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export type { AgoraAuthMode } from "./AgoraPoolClient.mjs";
|
|
2
2
|
export { AgoraClient } from "./AgoraPoolClient.mjs";
|
|
3
|
-
export type {
|
|
4
|
-
export {
|
|
3
|
+
export type { AgoraArea, AreaScope, GlobalArea } from "./agentkit/area.mjs";
|
|
4
|
+
export type { AdvancedFeatures, AgentConfig, AgentConfigUpdate, AgentOptions, AgentPreset, AgentSessionEvent, AgentSessionEventHandler, AgentSessionOptions, AgentsClient, AkoolAvatarConfig, AkoolAvatarOptions, AkoolSampleRate, AliyunLLMOptions, AmazonBedrockOptions, AmazonSTTOptions, AmazonTTSOptions, AmazonTts, AmazonTtsParams, AnamAvatarConfig, AnamAvatarOptions, AnthropicOptions, AresSTTOptions, AsrConfig, AsrPreset, AsrVendorName, AssemblyAISTTOptions, AvatarConfig, AvatarVendor, AvatarWireVendor, AzureOpenAIOptions, BytedanceDuplexTTSOptions, BytedanceLLMOptions, BytedanceTTSOptions, CartesiaSampleRate, CartesiaTTSOptions, CartesiaTts, CartesiaTtsParams, CNAvatarVendor, CNLlmVendor, CNSttVendor, CNTtsVendor, ConversationHistory, ConversationRole, ConversationSessionTurn, ConversationTurn, ConversationTurns, CustomLLMOptions, DeepgramSTTOptions, DeepgramTTSOptions, DeepSeekLLMOptions, DifyOptions, Eagerness, ElevenLabsSampleRate, ElevenLabsTTSOptions, ElevenLabsTts, ElevenLabsTtsParams, EndOfSpeechConfig, EndOfSpeechMode, EndOfSpeechSemanticConfig, EndOfSpeechVadConfig, FarewellConfig, FillerWordsConfig, FillerWordsContent, FillerWordsContentSelectionRule, FillerWordsContentStaticConfig, FillerWordsTrigger, FillerWordsTriggerFixedTimeConfig, FishAudioTTSOptions, FishAudioTts, FishAudioTtsParams, GeminiLiveOptions, GeminiOptions, GenerateConvoAITokenOptions, GenerateTokenOptions, GenericAvatarConfig, GenericAvatarOptions, GeofenceArea, GeofenceConfig, GeofenceExcludeArea, GetTurnsOptions, GlobalAvatarVendor, GlobalLlmVendor, GlobalSttVendor, GlobalTtsVendor, GoogleSTTOptions, GoogleTTSOptions, GoogleTts, GoogleTtsParams, GroqOptions, HeyGenAvatarConfig, HeyGenAvatarOptions, HeyGenSampleRate, HumeAITTSOptions, HumeAiTts, HumeAiTtsParams, InterruptionConfig, InterruptionMode, InterruptMode, Labels, LiveAvatarAvatarConfig, LiveAvatarAvatarOptions, LiveAvatarSampleRate, LlmConfig, LlmGreetingConfigs, LlmGreetingConfigsMode, LlmPreset, LlmStyle, LlmVendor, McpServersItem, MicrosoftCNSampleRate, MicrosoftCNSTTOptions, MicrosoftCNTTSOptions, MicrosoftSampleRate, MicrosoftSTTOptions, MicrosoftTTSOptions, MicrosoftTts, MicrosoftTtsParams, MiniMaxCNTTSOptions, MiniMaxTTSOptions, MinimaxTts, MinimaxTtsParams, MllmConfig, MllmTurnDetectionConfig, MllmTurnDetectionMode, MllmVendor, MurfTTSOptions, MurfTts, MurfTtsParams, OpenAIOptions, OpenAIRealtimeOptions, OpenAISTTOptions, OpenAITTSOptions, OpenAiTts, OpenAiTtsParams, ParametersAudioScenario, ParametersDataChannel, PresetCategory, PresetInput, RimeTTSOptions, RimeTts, RimeTtsParams, RtcConfig, SalConfig, SalMode, SampleRate, SarvamSTTOptions, SarvamTTSOptions, SarvamTts, SarvamTtsParams, SayOptions, SensetimeAvatarConfig, SensetimeAvatarOptions, SessionInfo, SessionListResponse, SessionOptions, SessionParams, SessionParamsInput, SessionStatus, SessionSummary, SilenceAction, SilenceConfig, SpeakPriority, SpeechmaticsSTTOptions, StartOfSpeechConfig, StartOfSpeechDisabledConfig, StartOfSpeechDisabledConfigStrategy, StartOfSpeechKeywordsConfig, StartOfSpeechMode, StartOfSpeechVadConfig, StepFunTTSOptions, StrictAvatarConfig, SttConfig, SttVendor, TencentLLMOptions, TencentSTTOptions, TencentTTSOptions, ThinkOnListeningAction, ThinkOnSpeakingAction, ThinkOnThinkingAction, ThinkOptions, ThinkResponse, TtsConfig, TtsPreset, TtsVendor, TurnDetectionConfig, TurnDetectionLanguage, TurnDetectionNestedConfig, TurnDetectionType, VertexAILLMOptions, VertexAIOptions, XaiGrokOptions, XfyunBigModelSTTOptions, XfyunDialectSTTOptions, XfyunSTTOptions, } from "./agentkit/index.mjs";
|
|
5
|
+
export { Agent, AgentPresets, AgentSession, AkoolAvatar, AliyunLLM, AmazonBedrock, AmazonSTT, AmazonTTS, AnamAvatar, Anthropic, AresSTT, AssemblyAISTT, AudioScenario, AzureOpenAI, BaseAvatar, BaseCNAvatar, BaseCNLLM, BaseCNSTT, BaseCNTTS, BaseLLM, BaseMLLM, BaseSTT, BaseTTS, BytedanceDuplexTTS, BytedanceLLM, BytedanceTTS, CartesiaTTS, CosyVoiceTTS, CustomLLM, DataChannel, DeepgramSTT, DeepgramTTS, DeepSeekLLM, Dify, ElevenLabsTTS, ExpiresIn, FengmingSTT, FillerWordsSelectionRule, FishAudioTTS, Gemini, GeminiLive, GenericAvatar, Geofence, GoogleSTT, GoogleTTS, Groq, generateConvoAIToken, generateRtcToken, HeyGenAvatar, HumeAITTS, InterruptionDisabledStrategy, InterruptionDisabledStrategyAppend, InterruptionDisabledStrategyIgnore, InterruptionModeKeywords, InterruptionModeStartOfSpeech, InterruptionModeValues, isAkoolAvatar, isAnamAvatar, isAvatarTokenManaged, isGenericAvatar, isHeyGenAvatar, isLiveAvatarAvatar, isSensetimeAvatar, LiveAvatarAvatar, MAX_EXPIRY_SECONDS, MicrosoftCNSTT, MicrosoftCNTTS, MicrosoftSTT, MicrosoftTTS, MiniMaxCNTTS, MiniMaxTTS, MllmTurnDetectionModeAgoraVad, MllmTurnDetectionModeSemanticVad, MllmTurnDetectionModeServerVad, MllmTurnDetectionModeValues, MurfTTS, normalizePresetInput, OpenAI, OpenAIRealtime, OpenAISTT, OpenAITTS, RimeTTS, SalModeValues, SarvamSTT, SarvamTTS, SensetimeAvatar, SilenceActionValues, SpeakPriorityAppend, SpeakPriorityIgnore, SpeakPriorityInterrupt, SpeakPriorityValues, SpeechmaticsSTT, StepFunTTS, TencentLLM, TencentSTT, TencentTTS, ThinkOnListeningActionIgnore, ThinkOnListeningActionInject, ThinkOnListeningActionInterrupt, ThinkOnSpeakingActionIgnore, ThinkOnSpeakingActionInterrupt, ThinkOnThinkingActionIgnore, ThinkOnThinkingActionInterrupt, TurnDetectionTypeValues, toBaseAvatarConfig, VertexAI, VertexAILLM, validateAvatarConfig, validateTtsSampleRate, XaiGrok, XfyunBigModelSTT, XfyunDialectSTT, XfyunSTT, } from "./agentkit/index.mjs";
|
|
5
6
|
export * as Agora from "./api/index.mjs";
|
|
6
7
|
export type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
|
|
7
8
|
export { Area } from "./core/domain/index.mjs";
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export { AgoraClient } from "./AgoraPoolClient.mjs";
|
|
2
2
|
// Agentkit layer exports - clean, ergonomic API
|
|
3
|
-
export { Agent, AgentPresets, AgentSession, AkoolAvatar, AmazonBedrock, AmazonSTT, AmazonTTS, AnamAvatar, Anthropic, AresSTT, AssemblyAISTT, AudioScenario, AzureOpenAI, BaseAvatar,
|
|
3
|
+
export { Agent, AgentPresets, AgentSession, AkoolAvatar, AliyunLLM, AmazonBedrock, AmazonSTT, AmazonTTS, AnamAvatar, Anthropic, AresSTT, AssemblyAISTT, AudioScenario, AzureOpenAI, BaseAvatar, BaseCNAvatar, BaseCNLLM, BaseCNSTT, BaseCNTTS,
|
|
4
4
|
// Base vendor classes
|
|
5
|
-
BaseLLM, BaseMLLM, BaseSTT, BaseTTS, CartesiaTTS, CustomLLM, DataChannel, DeepgramSTT, DeepgramTTS, Dify,
|
|
5
|
+
BaseLLM, BaseMLLM, BaseSTT, BaseTTS, BytedanceDuplexTTS, BytedanceLLM, BytedanceTTS, CartesiaTTS, CosyVoiceTTS, CustomLLM, DataChannel, DeepgramSTT, DeepgramTTS, DeepSeekLLM, Dify,
|
|
6
6
|
// TTS vendors
|
|
7
|
-
ElevenLabsTTS, ExpiresIn, FillerWordsSelectionRule, FishAudioTTS, Gemini, GeminiLive, GenericAvatar, Geofence, GoogleSTT, GoogleTTS, Groq, generateConvoAIToken, generateRtcToken,
|
|
7
|
+
ElevenLabsTTS, ExpiresIn, FengmingSTT, FillerWordsSelectionRule, FishAudioTTS, Gemini, GeminiLive, GenericAvatar, Geofence, GoogleSTT, GoogleTTS, Groq, generateConvoAIToken, generateRtcToken,
|
|
8
8
|
// Avatar vendors
|
|
9
|
-
HeyGenAvatar, HumeAITTS, InterruptionDisabledStrategy, InterruptionDisabledStrategyAppend, InterruptionDisabledStrategyIgnore, InterruptionModeKeywords, InterruptionModeStartOfSpeech, InterruptionModeValues, isAkoolAvatar, isAnamAvatar, isAvatarTokenManaged, isGenericAvatar, isHeyGenAvatar, isLiveAvatarAvatar, LiveAvatarAvatar, MAX_EXPIRY_SECONDS, MicrosoftSTT, MicrosoftTTS, MiniMaxTTS, MllmTurnDetectionModeAgoraVad, MllmTurnDetectionModeSemanticVad, MllmTurnDetectionModeServerVad, MllmTurnDetectionModeValues, MurfTTS, normalizePresetInput,
|
|
9
|
+
HeyGenAvatar, HumeAITTS, InterruptionDisabledStrategy, InterruptionDisabledStrategyAppend, InterruptionDisabledStrategyIgnore, InterruptionModeKeywords, InterruptionModeStartOfSpeech, InterruptionModeValues, isAkoolAvatar, isAnamAvatar, isAvatarTokenManaged, isGenericAvatar, isHeyGenAvatar, isLiveAvatarAvatar, isSensetimeAvatar, LiveAvatarAvatar, MAX_EXPIRY_SECONDS, MicrosoftCNSTT, MicrosoftCNTTS, MicrosoftSTT, MicrosoftTTS, MiniMaxCNTTS, MiniMaxTTS, MllmTurnDetectionModeAgoraVad, MllmTurnDetectionModeSemanticVad, MllmTurnDetectionModeServerVad, MllmTurnDetectionModeValues, MurfTTS, normalizePresetInput,
|
|
10
10
|
// LLM vendors
|
|
11
11
|
OpenAI,
|
|
12
12
|
// MLLM vendors
|
|
13
|
-
OpenAIRealtime, OpenAISTT, OpenAITTS, RimeTTS, SalModeValues, SarvamSTT, SarvamTTS, SilenceActionValues, SpeakPriorityAppend, SpeakPriorityIgnore, SpeakPriorityInterrupt, SpeakPriorityValues,
|
|
13
|
+
OpenAIRealtime, OpenAISTT, OpenAITTS, RimeTTS, SalModeValues, SarvamSTT, SarvamTTS, SensetimeAvatar, SilenceActionValues, SpeakPriorityAppend, SpeakPriorityIgnore, SpeakPriorityInterrupt, SpeakPriorityValues,
|
|
14
14
|
// STT vendors
|
|
15
|
-
SpeechmaticsSTT, ThinkOnListeningActionIgnore, ThinkOnListeningActionInject, ThinkOnListeningActionInterrupt, ThinkOnSpeakingActionIgnore, ThinkOnSpeakingActionInterrupt, ThinkOnThinkingActionIgnore, ThinkOnThinkingActionInterrupt, TurnDetectionTypeValues, toBaseAvatarConfig, VertexAI, VertexAILLM, validateAvatarConfig, validateTtsSampleRate, XaiGrok, } from "./agentkit/index.mjs";
|
|
15
|
+
SpeechmaticsSTT, StepFunTTS, TencentLLM, TencentSTT, TencentTTS, ThinkOnListeningActionIgnore, ThinkOnListeningActionInject, ThinkOnListeningActionInterrupt, ThinkOnSpeakingActionIgnore, ThinkOnSpeakingActionInterrupt, ThinkOnThinkingActionIgnore, ThinkOnThinkingActionInterrupt, TurnDetectionTypeValues, toBaseAvatarConfig, VertexAI, VertexAILLM, validateAvatarConfig, validateTtsSampleRate, XaiGrok, XfyunBigModelSTT, XfyunDialectSTT, XfyunSTT, } from "./agentkit/index.mjs";
|
|
16
16
|
export * as Agora from "./api/index.mjs";
|
|
17
17
|
export { Area } from "./core/domain/index.mjs";
|
|
18
18
|
export { AgoraEnvironment } from "./environments.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v2.
|
|
1
|
+
export declare const SDK_VERSION = "v2.2.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "v2.
|
|
1
|
+
export const SDK_VERSION = "v2.2.0";
|