ToolExecuteFunction
type ToolExecuteFunction<TInput, TOutput, TContext> = undefined extends TContext ? (args, context?) =>
| Promise<InferSchemaType<TOutput>>
| InferSchemaType<TOutput> : (args, context) =>
| Promise<InferSchemaType<TOutput>>
| InferSchemaType<TOutput>;Defined in: packages/ai/src/types.ts:929
Type Parameters
TInput
TInput extends SchemaInput | undefined = SchemaInput
TOutput
TOutput extends SchemaInput | undefined = SchemaInput
TContext
TContext = unknown