Invokes the tool with the provided argument and configuration.
invoke<
TArg,
TConfig extends ToolRunnableConfig<Record<string, any>, any> | undefined
>(arg: TArg, configArg: TConfig): Promise<ToolReturnType<TArg, TConfig, ToolOutputT>>| Name | Type | Description |
|---|---|---|
arg* | TArg | The input argument for the tool. |
configArg | TConfig | Optional configuration for the tool call. |