AgentCompletionsResponsePayload
AgentCompletionsResponsePayload
Completions from an agent.
JSON Example
{
"choices": [
{
"finish_reason": "length",
"index": 0,
"text": "Hello! I am an AI Assistant!"
}
],
"created": 1589478378,
"id": "cmpl-123",
"model": "gpt-4",
"object": "text_completion",
"usage": {
"completion_tokens": 7,
"prompt_tokens": 5,
"total_tokens": 12
}
}
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: text_completion
object
integer
created
Required
created
string
model
Required
model