Skip to main content

ChatCompletionMessage

roleRole (string)required

Possible values: [system, user, assistant, developer, tool, function]

content object
anyOf
string
reasoning_content object
anyOf
string
name object
anyOf
string
tool_calls object
anyOf
  • Array [
  • idId (string)required
    index object
    anyOf
    integer
    typeType (string)
    Constant value: function
    Default value: function
    function objectrequired
    idId (string)
    nameName (string)required
    argumentsArguments (string)required
  • ]
  • tool_call_id object
    anyOf
    string
    function_call object
    anyOf
    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": {}
    }