跳转到内容

ToolOptions

此内容尚不支持你的语言。

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

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

TOutputSchema extends | ToolOutputSchema | undefined

undefined