ChatCompletionMessage
roleRole (string)required
Possible values: [system, user, assistant, developer, tool, function]
content object
anyOf
- string
- ChatCompletionMessageText
- ChatCompletionMessageImageUrl
- object[]
- null
string
reasoning_content object
anyOf
- string
- null
string
name object
anyOf
- string
- null
string
tool_calls object
anyOf
- object[]
- null
Array [
idId (string)required
index object
anyOf
- integer
- null
integer
typeType (string)
Constant value:
functionDefault value:
functionfunction objectrequired
idId (string)
nameName (string)required
argumentsArguments (string)required
]
tool_call_id object
anyOf
- string
- null
string
function_call object
anyOf
- object
- null
object
ChatCompletionMessage
{
"role": "system",
"content": "string",
"reasoning_content": "string",
"name": "string",
"tool_calls": [
{
"id": "string",
"index": 0,
"type": "function",
"function": {
"id": "string",
"name": "string",
"arguments": "string"
}
}
],
"tool_call_id": "string",
"function_call": {}
}