{
"title": "agent.completions.message.AssistantMessage",
"description": "An assistant message (model's previous response).",
"type": "object",
"properties": {
"content": {
"description": "The message content, if any.",
"anyOf": [
{
"$ref": "agent.completions.message.RichContent"
},
{
"type": "null"
}
],
"omitempty": true
},
"name": {
"description": "Optional name for the assistant.",
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"omitempty": true
},
"reasoning": {
"description": "Reasoning content from models that support chain-of-thought.",
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"omitempty": true
},
"refusal": {
"description": "Refusal message if the model declined to respond.",
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"omitempty": true
},
"tool_calls": {
"description": "Tool calls made by the assistant.",
"anyOf": [
{
"type": "array",
"items": {
"$ref": "agent.completions.message.AssistantToolCall"
}
},
{
"type": "null"
}
],
"omitempty": true
}
}
}