Baseten · Schema

FunctionDefinition

A function definition that the model can call.

AIMLInferenceDeploymentMLOpsOpenAI CompatibleAnthropic CompatibleTruss

Properties

Name Type Description
name string The name of the function.
description string A description of what the function does.
parameters object The parameters the function accepts, as a JSON Schema object.
strict boolean If `true`, enables strict schema adherence.
View JSON Schema on GitHub

JSON Schema

baseten-functiondefinition-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/FunctionDefinition",
  "title": "FunctionDefinition",
  "additionalProperties": false,
  "properties": {
    "name": {
      "title": "Name",
      "type": "string",
      "description": "The name of the function."
    },
    "description": {
      "default": null,
      "title": "Description",
      "description": "A description of what the function does.",
      "type": "string"
    },
    "parameters": {
      "default": null,
      "title": "Parameters",
      "description": "The parameters the function accepts, as a JSON Schema object.",
      "additionalProperties": true,
      "type": "object"
    },
    "strict": {
      "default": false,
      "title": "Strict",
      "description": "If `true`, enables strict schema adherence.",
      "type": "boolean"
    }
  },
  "required": [
    "name"
  ],
  "type": "object",
  "description": "A function definition that the model can call."
}