Interface RunnableInterface<RunInput, RunOutput, CallOptions>

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

Should not change on patch releases.

Type Parameters

Hierarchy

Implemented by

Methods

  • Parameters

    • inputs: RunInput[]
    • Optional options: Partial<CallOptions> | Partial<CallOptions>[]
    • Optional batchOptions: RunnableBatchOptions & {
          returnExceptions?: false;
      }

    Returns Promise<RunOutput[]>

  • Parameters

    • inputs: RunInput[]
    • Optional options: Partial<CallOptions> | Partial<CallOptions>[]
    • Optional batchOptions: RunnableBatchOptions & {
          returnExceptions: true;
      }

    Returns Promise<(Error | RunOutput)[]>

  • Parameters

    • inputs: RunInput[]
    • Optional options: Partial<CallOptions> | Partial<CallOptions>[]
    • Optional batchOptions: RunnableBatchOptions

    Returns Promise<(Error | RunOutput)[]>

  • Parameters

    • generator: AsyncGenerator<RunInput, any, unknown>
    • options: Partial<CallOptions>

    Returns AsyncGenerator<RunOutput, any, unknown>

Generated using TypeDoc