call<
TArg extends string | __type | ToolCall<string, Record<string, any>> | undefined,
TConfig extends ToolRunnableConfig | undefined
>(arg: TArg, callbacks: TConfig): Promise<any>| Name | Type | Description |
|---|---|---|
arg* | TArg | The input argument for the tool, which can be a string, undefined, or an input of the tool's schema. |
callbacks | TConfig | Optional callbacks for the tool. |