Open History to see the last commit
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:938
Type Parameters#
TInput#
TInput extends SchemaInput | undefined = SchemaInput
TOutput#
TOutput extends SchemaInput | undefined = SchemaInput
TContext#
TContext = unknown