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<(RunOutput | Error)[]>

  • Parameters

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

    Returns Promise<(RunOutput | Error)[]>

  • Parameters

    • input: RunInput
    • Optional options: Partial<CallOptions>

    Returns Promise<RunOutput>

  • Parameters

    • input: RunInput
    • Optional options: Partial<CallOptions>

    Returns Promise<IterableReadableStreamInterface<RunOutput>>

  • Parameters

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

    Returns AsyncGenerator<RunOutput, any, unknown>

Generated using TypeDoc