cohere · Schema

ToolCall

Properties

Name Type Description
id string The unique identifier for this tool call.
type string The type of tool call.
function object
View JSON Schema on GitHub

JSON Schema

cohere-toolcall-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ToolCall",
  "title": "ToolCall",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique identifier for this tool call."
    },
    "type": {
      "type": "string",
      "enum": [
        "function"
      ],
      "description": "The type of tool call."
    },
    "function": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the function to call."
        },
        "arguments": {
          "type": "string",
          "description": "The arguments to pass to the function, as a JSON string."
        }
      }
    }
  }
}