Baseten · Schema

ToolCall

A tool call generated by the model.

AIMLInferenceDeploymentMLOpsOpenAI CompatibleAnthropic CompatibleTruss

Properties

Name Type Description
index integer The index of this tool call in the list of tool calls.
id string A unique identifier for this tool call.
type string The type of tool call (always `function`).
function object The function that the model called.
View JSON Schema on GitHub

JSON Schema

baseten-toolcall-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ToolCall",
  "title": "ToolCall",
  "additionalProperties": false,
  "properties": {
    "index": {
      "title": "Index",
      "type": "integer",
      "description": "The index of this tool call in the list of tool calls."
    },
    "id": {
      "title": "Id",
      "type": "string",
      "description": "A unique identifier for this tool call."
    },
    "type": {
      "const": "function",
      "default": "function",
      "title": "Type",
      "type": "string",
      "description": "The type of tool call (always `function`)."
    },
    "function": {
      "$ref": "#/components/schemas/FunctionCall",
      "description": "The function that the model called."
    }
  },
  "required": [
    "index",
    "function"
  ],
  "type": "object",
  "description": "A tool call generated by the model."
}