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 DocumentInterface<Record<string, any>>[]
>(
func: (inputs: T[], options: Partial<RunnableConfig<Record<string, any>>>[], runManagers: CallbackManagerForChainRun | undefined[], batchOptions: RunnableBatchOptions) => Promise<DocumentInterface<Record<string, any>>[] | Error[]>, inputs: T[], options: Partial<RunnableConfig<Record<string, any>> __type> | Partial<RunnableConfig<Record<string, any>> __type>[], batchOptions: RunnableBatchOptions
): Promise<DocumentInterface<Record<string, any>>[] | Error[]>| Name | Type | Description |
|---|---|---|
func* | (inputs: T[], options?: Partial<RunnableConfig<Record<string, any>>>[], runManagers?: CallbackManagerForChainRun | undefined[], batchOptions?: RunnableBatchOptions) => Promise<DocumentInterface<Record<string, any>>[] | Error[]> | The function to be executed for each input value. |
inputs* | T[] | |
options | Partial<RunnableConfig<Record<string, any>> & __type> | Partial<RunnableConfig<Record<string, any>> & __type>[] | |
batchOptions | RunnableBatchOptions |