Skip to content

ToolOptions

type ToolOptions<TParameters, Context> =
| StrictToolOptions<Extract<TParameters, ToolInputParametersStrict>, Context>
| NonStrictToolOptions<Extract<TParameters, ToolInputParametersNonStrict>, Context>;

The options for a tool.

Type Parameter Default type Description

TParameters extends ToolInputParameters

The parameters of the tool

Context

UnknownContext

The context of the tool