_batchWithConfig<
T extends BaseLanguageModelInput
>(
func: (inputs: T[], options| Name | Type | Description |
|---|---|---|
func* | (inputs: T[], options?: Partial<BaseChatModelCallOptions>[], runManagers?: CallbackManagerForChainRun | undefined[], batchOptions?: RunnableBatchOptions) => Promise<AIMessageChunk<MessageStructure<MessageToolSet>> | Error[]> | |
inputs* | T[] | |
options | Partial<BaseLanguageModelCallOptions & __type & __type> | Partial<BaseLanguageModelCallOptions & __type & __type>[] | |
batchOptions | RunnableBatchOptions |
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.
The function to be executed for each input value.