创建会话
Create a text conversation with an agent. This does not run the agent, and the agent sends no first message. This endpoint is in alpha and may change.
请求头
xi-api-key
请求
This endpoint expects an object.
agent
执行这些轮次的智能体。
environment
用于解析环境变量的环境(例如“production”“staging”)。默认使用分支的环境,其次为“production”。
user_id
参与此对话的最终用户 ID(用于智能体所有者识别用户)
dynamic_variables
响应
成功响应
conversation_id
错误
422
Conversations Create Request Unprocessable Entity Error