Baseten · Schema

Function

The arguments to call the function with, as generated by the model in JSON format. The model may not always generate valid JSON and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.

AIMLInferenceDeploymentMLOpsOpenAI CompatibleAnthropic CompatibleTruss

Properties

Name Type Description
arguments object The function arguments as a JSON string or object.
name string The name of the function.
View JSON Schema on GitHub

JSON Schema

baseten-function-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Function",
  "title": "Function",
  "additionalProperties": false,
  "properties": {
    "arguments": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "additionalProperties": true,
          "type": "object"
        }
      ],
      "title": "Arguments",
      "description": "The function arguments as a JSON string or object."
    },
    "name": {
      "title": "Name",
      "type": "string",
      "description": "The name of the function."
    }
  },
  "required": [
    "arguments",
    "name"
  ],
  "type": "object",
  "description": "The arguments to call the function with, as generated by the model in JSON format. The model may not always generate valid JSON and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function."
}