OptionalclassifierPluggable classifier for automatic tool selection.
Classifier function for custom logicfalse to disable classification entirelyOptionalincludeWhether to include all built-in default tools.
Defaults to true. Set to false to start with no defaults
and provide only custom tools via tools.
OptionalmaxMax multi-step tool loop iterations. Default: 10.
AI SDK language model instance. REQUIRED — no default provider.
OptionalonCalled after each classification. Use to observe selected tools or log.
OptionaloutputWhether to include output schemas on tools.
Defaults to true. Set to false for providers that don't support structured tool outputs.
OptionalprepareCustom prepareStep hook, composed with internal classification step.
Your activeTools are intersected with the classifier's selection.
OptionalstateCustom state slices merged alongside built-in state.
Only custom slices need to be provided — built-in slices are created automatically.
Accessible in custom tool execute via the state parameter.
OptionalsystemComplete system prompt that replaces the default.
If provided, systemPromptSuffix is ignored.
OptionalsystemAdditional text appended to the built-in prompt.
Ignored if systemPrompt is provided.
OptionaltoolsTool overrides merged with default tools.
ToolEntry values add a new tool or replace a default.false values exclude a default tool.When omitted, all default tools are used as-is.
Options for creating an agent toolkit.
Example: Custom state