Run invoke in parallel on a list of inputs.
Yields results as they complete.
batch_as_completed(
self,
inputs: Sequence[Input],
config: RunnableConfig | Sequence[RunnableConfig] | None = None,
*,
return_exceptions: bool = False,
**kwargs: Any | None = {}
) -> Iterator[tuple[int, Output | Exception]]| Name | Type | Description |
|---|---|---|
inputs* | Sequence[Input] | A list of inputs to the |
config | RunnableConfig | Sequence[RunnableConfig] | None | Default: NoneA config to use when invoking the The config supports standard keys like Please refer to |
return_exceptions | bool | Default: FalseWhether to return exceptions instead of raising them. |
**kwargs | Any | None | Default: {}Additional keyword arguments to pass to the |