Internal method that handles batching and configuration for a runnable It takes a function, input values, and optional configuration, and returns a promise that resolves to the output values.
_batchWithConfig<
T extends BaseLanguageModelInput
>(
func: (inputs: T[], options: Partial<CallOptions>[], runManagers: CallbackManagerForChainRun | undefined[], batchOptions: RunnableBatchOptions) => Promise<AIMessageChunk<MessageStructure<MessageToolSet>> | Error[]>, inputs: T[], options: Partial<CallOptions __type> | Partial<CallOptions __type>[], batchOptions: RunnableBatchOptions
): Promise<AIMessageChunk<MessageStructure<MessageToolSet>> | Error[]>| Name | Type | Description |
|---|---|---|
func* | (inputs: T[], options?: Partial<CallOptions>[], runManagers?: CallbackManagerForChainRun | undefined[], batchOptions?: RunnableBatchOptions) => Promise<AIMessageChunk<MessageStructure<MessageToolSet>> | Error[]> | The function to be executed for each input value. |
inputs* | T[] | |
options | Partial<CallOptions & __type> | Partial<CallOptions & __type>[] | |
batchOptions | RunnableBatchOptions |