本接口用于创建 AI 智能体
https://brtc-api.baijiayun.com/vcs/aiagent/v1/create
{ "app_id": "string", "room_id": "string", "peer_user_id": [ "string" ], "type": 1, "force_create": false, "task_idle_time": 300, "interrupt_mode": 1, "avatar_enable": false, "external_agent_enable": false, "server3a_enable": false, "greeting_msg": "string", "self_introduction": "string", "llm_config": { "vendor": "string", "model": "string", "app_key": "string", "url": "string", "input_modalities": [ "text" ], "output_modalities": [ "text" ], "prompt": "string", "temperature": 0, "max_history": 0, "param": {} }, "asr_config": { "type": "tingwu", "param": { "domain": "string", "region": "string", "access_key_id": "string", "access_key_secret": "string", "app_key": "string" } }, "tts_config": { "type": "aliyunisi", "skip_symbol": [ 0 ], "param": { "domain": "string", "region": "string", "access_key_id": "string", "access_key_secret": "string", "app_key": "string", "ws_url": "string", "voice": "string" } }, "vad_config": { "interrupt_duration": 500, "prefix_padding": 200, "silence_duration": 500, "volume_threshold": 50, "detect_threshold": 0.5 }, "avatar_config": { "type": "string", "param": {} } }
返回示例
200 Response
{ "code": 200, "data": { "agent_id": "abcedafeaga1231", "agent_user_id": "record#1234" }, "msg": "succeed" }
创建AI智能体
描述
本接口用于创建 AI 智能体
接口请求地址
请求参数
- 1: 对话智能体
- 2: 语音转写智能体
- 1: 自动打断
- 2: 手动打断
请求参数 json 模板
返回参数
返回数据结构