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.

interface RunnableInterface<RunInput, RunOutput, CallOptions> {
    batch(inputs, options?, batchOptions?): Promise<RunOutput[]>;
    batch(inputs, options?, batchOptions?): Promise<(Error | RunOutput)[]>;
    batch(inputs, options?, batchOptions?): Promise<(Error | RunOutput)[]>;
    getName(suffix?): string;
    invoke(input, options?): Promise<RunOutput>;
    stream(input, options?): Promise<IterableReadableStreamInterface<RunOutput>>;
    transform(generator, options): AsyncGenerator<RunOutput, any, unknown>;
}

Type Parameters

Hierarchy (view full)

Implemented by

Methods

Generated using TypeDoc