@bdky/aaas-pilot-kit 1.0.2 → 1.0.3
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 +5 -1
- package/dist/index.cjs.js +7 -7
- package/dist/index.esm.js +4 -4
- package/dist/index.umd.js +3 -3
- package/dist/ky-aaas-pilot-kit.umd.js +3 -3
- package/dist/libs/aaas-pilot-kit/src/lib/aaas-pilot-kit.d.ts +2 -2
- package/dist/libs/aaas-pilot-kit/src/lib/api/request.d.ts +3 -3
- package/dist/libs/aaas-pilot-kit/src/lib/controller.d.ts +3 -3
- package/dist/libs/aaas-pilot-kit/src/lib/error/codes.d.ts +1 -0
- package/dist/libs/aaas-pilot-kit/src/lib/error/services/AsrError.d.ts +3 -0
- package/dist/libs/aaas-pilot-kit/src/lib/service/agent/baseAgentService.d.ts +3 -3
- package/dist/libs/aaas-pilot-kit/src/lib/service/conversation/aiWorkerConversationBean.d.ts +4 -4
- package/dist/libs/aaas-pilot-kit/src/lib/service/conversation/clientConversationBean.d.ts +4 -4
- package/dist/libs/aaas-pilot-kit/src/lib/service/conversation/conversationBean.d.ts +3 -3
- package/dist/libs/aaas-pilot-kit/src/lib/service/conversation/conversationService.d.ts +3 -3
- package/dist/libs/aaas-pilot-kit/src/lib/service/digital-human/BaseDigitalHumanService.d.ts +1 -1
- package/dist/libs/aaas-pilot-kit/src/lib/service/rtc-asr/asr/baseAsrService.d.ts +3 -3
- package/dist/libs/aaas-pilot-kit/src/lib/service/rtc-asr/signal/base.d.ts +3 -3
- package/dist/libs/aaas-pilot-kit/src/lib/service/rtc-asr/signal/brtc.d.ts +2 -2
- package/dist/libs/aaas-pilot-kit/src/lib/utils/ua.d.ts +16 -0
- package/dist/libs/aaas-pilot-kit/src/types/config.d.ts +31 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -62,12 +62,16 @@ await controller.mount(document.getElementById('container'));
|
|
|
62
62
|
interface IOptions {
|
|
63
63
|
figureId: string; // 数字人 ID
|
|
64
64
|
ttsPer: string; // TTS 音色
|
|
65
|
-
agentConfig
|
|
65
|
+
agentConfig?: {
|
|
66
66
|
token?: string; // Agent Token
|
|
67
67
|
robotId?: string; // 机器人 ID
|
|
68
68
|
};
|
|
69
|
+
agentService?: typeof CustomAgentService; // 自定义 Agent
|
|
69
70
|
// ... 更多配置选项
|
|
70
71
|
}
|
|
72
|
+
|
|
73
|
+
// ⚠️ 未提供 agentService 时,需配置 agentConfig(token 或 robotId)。
|
|
74
|
+
// ✅ 已提供 agentService 时,可省略 agentConfig,由自定义服务接管对话流程。
|
|
71
75
|
```
|
|
72
76
|
|
|
73
77
|
### 控制器方法
|