AG-Kit TS
English
cURL
curl --request POST \ --url http://{your-domain}/v1/aibot/bots/{AgentId}/openai/chat/completions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "model": "Agent-xxxxx", "messages": [ { "role": "user", "content": "This is a conversation message" } ], "stream": false } '
{ "id": "record-427d3652", "object": "chat.completion", "created": "1726030224", "model": "Agent-xxxx", "choices": [ { "index": 0, "delta": { "role": "assistant", "content": "Hello" }, "finish_reason": "continue" } ] }
Token corresponding to the environment ID, obtained through login authentication
Agent ID
"Agent-xxxxx"
Messages
Show child attributes
Whether to return streaming response
false
Agent conversation successful, streaming response
Chat record ID
"record-427d3652"
Interface type
"chat.completion"
Conversation timestamp
"1726030224"
"Agent-xxxx"
choices
Was this page helpful?