AgentChatCompletionsResponsePayload
AgentChatCompletionsResponsePayload
Chat-completions from an agent.
JSON Example
{
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"content": "Hello! I am an AI assistant",
"role": "assistant"
}
}
],
"created": 1700173217,
"id": "3cdb958c-e4cc-4834-b52b-1d1a7f324714",
"model": "llama-2-70b-chat-hf",
"object": "chat.completion",
"usage": {
"completion_tokens": 8,
"prompt_tokens": 10,
"total_tokens": 18
}
}
string As uuid
As uuid
session_id
Optional
ID of the session created by the agent.
array of
IndexContextInfo
index_context_info
Optional
Context used by the agent for creating the response.
string
id
Optional
id
string
object
Optional
Constraints:
default: chat.completion
object
integer
created
Required
created
string
model
Required
model