Base interface implemented by all runnables. Used for cross-compatibility between different versions of LangChain core.

Should not change on patch releases.

Hierarchy

Properties

description: string
name: string
returnDirect: boolean
schema: ZodObject<any, any, any, any, {}> | ZodEffects<ZodObject<any, any, any, any, {}>, any, {}>

Methods

  • Calls the tool with the provided argument and callbacks. It handles string inputs specifically.

    Parameters

    • arg: undefined | string | {}

      The input argument for the tool, which can be a string, undefined, or an input of the tool's schema.

    • Optional callbacks: Callbacks | RunnableConfig

      Optional callbacks for the tool.

    Returns Promise<string>

    A Promise that resolves with a string.

Generated using TypeDoc