已弃用

请使用 ToolNode 代替。

interface ToolExecutorArgs {
    invalidToolMsgTemplate?: string;
    tools: (RunnableToolLike<ZodType<any, ZodTypeDef, any>, unknown> | StructuredToolInterface<ZodObjectAny>)[];
}

属性

无效工具消息模板?: string

默认

{INVALID_TOOL_MSG_TEMPLATE}
工具: (RunnableToolLike<ZodType<any, ZodTypeDef, any>, unknown> | StructuredToolInterface<ZodObjectAny>)[]