A function available to an agent.

See:

Example Usage

import { ToolFunction } from "syllable-sdk/models/components";

let value: ToolFunction = {
  name: "weather_fetcher",
  description: "Fetches weather data",
  parameters: "<value>",
};

Fields

FieldTypeRequiredDescriptionExample
namestringTRUEThe name of the function/tool call.weather_fetcher
descriptionstringTRUEThe description of the tool.Fetches weather data
parametersanyTRUEThe JSON Schema of parameters of the function/tool call.