已弃用

请改用 ToolNode

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

属性

invalidToolMsgTemplate?: string

默认值

{INVALID_TOOL_MSG_TEMPLATE}
tools: (StructuredToolInterface<ToolInputSchemaBase, any, any> | RunnableToolLike<InteropZodType, unknown>)[]