Skip to main content
Tools are the interface between a service and its consumers. Each tool is a typed function with input/output schemas and metadata about its behavior.

ToolDefinition

Example

Streaming tools

Set streaming: true for tools that return data incrementally. Streaming handlers return an AsyncGenerator:

Mutation flag