Interface RunnableInterface<RunInput, RunOutput, CallOptions>
Type Parameters
-
RunInput = any
-
RunOutput = any
-
Methods
batch
- batch(inputs, options?, batchOptions?): Promise<RunOutput[]>
-
Parameters
-
inputs: RunInput[]
-
Optional
options: Partial<CallOptions> | Partial<CallOptions>[]
-
Optional
batchOptions: RunnableBatchOptions & {
returnExceptions?: false;
}
Returns Promise<RunOutput[]>
- batch(inputs, options?, batchOptions?): Promise<(RunOutput | Error)[]>
-
Parameters
-
inputs: RunInput[]
-
Optional
options: Partial<CallOptions> | Partial<CallOptions>[]
-
Optional
batchOptions: RunnableBatchOptions & {
returnExceptions: true;
}
Returns Promise<(RunOutput | Error)[]>
- batch(inputs, options?, batchOptions?): Promise<(RunOutput | Error)[]>
-
Parameters
-
inputs: RunInput[]
-
Optional
options: Partial<CallOptions> | Partial<CallOptions>[]
-
Returns Promise<(RunOutput | Error)[]>
invoke
- invoke(input, options?): Promise<RunOutput>
-
Parameters
-
input: RunInput
-
Optional
options: Partial<CallOptions>
Returns Promise<RunOutput>
stream
- stream(input, options?): Promise<IterableReadableStreamInterface<RunOutput>>
-
Parameters
-
input: RunInput
-
Optional
options: Partial<CallOptions>
Returns Promise<IterableReadableStreamInterface<RunOutput>>
transform
- transform(generator, options): AsyncGenerator<RunOutput, any, unknown>
-
Parameters
-
generator: AsyncGenerator<RunInput, any, unknown>
-
options: Partial<CallOptions>
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.