Baseten · Schema

ChatCompletionToolsParam

A tool that the model can call.

AIMLInferenceDeploymentMLOpsOpenAI CompatibleAnthropic CompatibleTruss

Properties

Name Type Description
type string The type of tool, always `function`.
function object The function definition.
View JSON Schema on GitHub

JSON Schema

baseten-chatcompletiontoolsparam-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ChatCompletionToolsParam",
  "title": "ChatCompletionToolsParam",
  "additionalProperties": false,
  "properties": {
    "type": {
      "const": "function",
      "default": "function",
      "title": "Type",
      "type": "string",
      "description": "The type of tool, always `function`."
    },
    "function": {
      "$ref": "#/components/schemas/FunctionDefinition",
      "description": "The function definition."
    }
  },
  "required": [
    "function"
  ],
  "type": "object",
  "description": "A tool that the model can call."
}