Skip to main content

Tools

Tool types for function calling with LLMs.

ToolType

Tools allow LLMs to invoke external functions. Define tools with a name, description, and JSON Schema parameters.

Fields

string
required
The tool type. Currently only "function" is supported.
object
required
function
An async function that executes when the tool is called via gateway.getToolResponses(). Receives the parsed arguments and returns the result.