콘텐츠로 이동

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