本页还没有译文
本页 24 段还没译成Русский,下面显示的是英文原文。ToolDefinitionConfig
还没翻译译自英文(tanstack.com)本页 24 段都还没译
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
Type Declaration
description
description: string;execution?
optional execution?: "task";inputSchema?
optional inputSchema?: TInput;lazy?
optional lazy?: boolean;metadata?
optional metadata?: Record<string, unknown>;name
name: TName;outputSchema?
optional outputSchema?: TOutput;replay?
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.
Type Parameters
TInput
TInput extends SchemaInput | undefined = undefined
TOutput
TOutput extends SchemaInput | undefined = undefined
TName
TName extends string = string
TNeedsApproval
TNeedsApproval extends boolean = false
TApprovalSchema
TApprovalSchema extends ApprovalSchemaConfig | undefined = undefined
AI 翻译查看英文原文