Skip to main content

OllamaMessage

roleRole (string)required

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

content object
anyOf
string
thinking object
anyOf
string
tool_calls object
anyOf
  • Array [
  • id object
    anyOf
    string
    type object
    anyOf
    string
    Constant value: function
    function objectrequired
    nameName (string)required
    arguments objectrequired
    anyOf
    object
    index object
    anyOf
    integer
  • ]
  • name object
    anyOf
    string
    tool_name object
    anyOf
    string
    images object
    anyOf
  • Array [
  • string
  • ]
  • OllamaMessage
    {
    "role": "system",
    "content": "string",
    "thinking": "string",
    "tool_calls": [
    {
    "id": "string",
    "type": "function",
    "function": {
    "name": "string",
    "arguments": {},
    "index": 0
    }
    }
    ],
    "name": "string",
    "tool_name": "string",
    "images": [
    "string"
    ]
    }