Execute a tool invocation
The tool to invoke and the input to pass to it.
Optionalconfig: RunnableConfig<Record<string, any>>Optional configuration to pass to the tool when invoked.
Either the result of the tool invocation (string or ToolMessage, set by the ToolOutput generic) or a string error message.
Deprecated
Use ToolNode instead.