get_config_list#
- langchain_core.runnables.config.get_config_list(config: RunnableConfig | Sequence[RunnableConfig] | None, length: int) list[RunnableConfig] [source]#
Get a list of configs from a single config or a list of configs.
It is useful for subclasses overriding batch() or abatch().
- Parameters:
config (Optional[Union[RunnableConfig, List[RunnableConfig]]]) – The config or list of configs.
length (int) – The length of the list.
- Returns:
The list of configs.
- Return type:
List[RunnableConfig]
- Raises:
ValueError – If the length of the list is not equal to the length of the inputs.