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 StructuredToolCallInput<ZodObject<__type, "strip", ZodTypeAny, __type, __type>, __type>
>(
func: (inputs: T[], options: Partial<RunnableConfig<Record<string, any>>>[], runManagers: CallbackManagerForChainRun | undefined[], batchOptions: RunnableBatchOptions) => Promise<any[]>, inputs: T[], options: Partial<RunnableConfig<Record<string, any>> __type> | Partial<RunnableConfig<Record<string, any>> __type>[], batchOptions: RunnableBatchOptions
): Promise<any[]>| Name | Type | Description |
|---|---|---|
func* | (inputs: T[], options?: Partial<RunnableConfig<Record<string, any>>>[], runManagers?: CallbackManagerForChainRun | undefined[], batchOptions?: RunnableBatchOptions) => Promise<any[]> | 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 |