Interface RunnableInterface<RunInput, RunOutput, CallOptions>
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
RunInput = any
RunOutput = any
Methods
batch
- batch(inputs, options?, batchOptions?): Promise<RunOutput[]>
Returns Promise<RunOutput[]>
- batch(inputs, options?, batchOptions?): Promise<(Error | RunOutput)[]>
Returns Promise<(Error | RunOutput)[]>
- batch(inputs, options?, batchOptions?): Promise<(Error | RunOutput)[]>
Returns Promise<(Error | RunOutput)[]>
getName
- getName(suffix?): string
Returns string
transform
- transform(generator, options): AsyncGenerator<RunOutput, any, unknown>
Parameters
generator: AsyncGenerator<RunInput, any, unknown>
Returns AsyncGenerator<RunOutput, any, unknown>
Base interface implemented by all runnables. Used for cross-compatibility between different versions of LangChain core.
Should not change on patch releases.