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<(Error | RunOutput)[]>
-
Parameters
-
inputs: RunInput[]
-
Optional
options: Partial<CallOptions> | Partial<CallOptions>[]
-
Optional
batchOptions: RunnableBatchOptions & {
returnExceptions: true;
}
Returns Promise<(Error | RunOutput)[]>
- batch(inputs, options?, batchOptions?): Promise<(Error | RunOutput)[]>
-
Parameters
-
inputs: RunInput[]
-
Optional
options: Partial<CallOptions> | Partial<CallOptions>[]
-
Returns Promise<(Error | RunOutput)[]>
invoke
- invoke(input, options?): Promise<RunOutput>
-
Parameters
-
input: RunInput
-
Optional
options: Partial<CallOptions>
Returns Promise<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.