type ToolDefinitionConfig<TInput, TOutput, TName, TNeedsApproval, TApprovalSchema> = object & ApprovalConfig<TNeedsApproval, TApprovalSchema>;Defined in: packages/ai/src/activities/chat/tools/tool-definition.ts:215
Tool definition configuration
description: string;optional execution?: "task";optional inputSchema?: TInput;optional lazy?: boolean;optional metadata?: Record<string, unknown>;name: TName;optional outputSchema?: TOutput;optional replay?: "safe" | "never";Whether a host may run this tool again after a crash cut the run between the call and its result. 'safe' runs it again. Omit the field, or set 'never', when a second run is not safe. The host writes the model note. chat() does not read this field.
TInput extends SchemaInput | undefined = undefined
TOutput extends SchemaInput | undefined = undefined
TName extends string = string
TNeedsApproval extends boolean = false
TApprovalSchema extends ApprovalSchemaConfig | undefined = undefined