Letta · Schema
ChatCompletionMessage
A chat completion message generated by the model.
AIAgentsStateful AgentsMemoryMemGPTContinual LearningMCPMulti-AgentRAGOpen Source
Properties
| Name | Type | Description |
|---|---|---|
| content | object | |
| refusal | object | |
| role | string | |
| annotations | object | |
| audio | object | |
| function_call | object | |
| tool_calls | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/ChatCompletionMessage",
"title": "ChatCompletionMessage",
"properties": {
"content": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Content"
},
"refusal": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Refusal"
},
"role": {
"type": "string",
"const": "assistant",
"title": "Role"
},
"annotations": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/Annotation"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Annotations"
},
"audio": {
"anyOf": [
{
"$ref": "#/components/schemas/ChatCompletionAudio"
},
{
"type": "null"
}
]
},
"function_call": {
"anyOf": [
{
"$ref": "#/components/schemas/FunctionCall-Output"
},
{
"type": "null"
}
]
},
"tool_calls": {
"anyOf": [
{
"items": {
"anyOf": [
{
"$ref": "#/components/schemas/ChatCompletionMessageFunctionToolCall-Output"
},
{
"$ref": "#/components/schemas/ChatCompletionMessageCustomToolCall"
}
]
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Tool Calls"
}
},
"additionalProperties": true,
"type": "object",
"required": [
"role"
],
"description": "A chat completion message generated by the model."
}