langchain_core.runnables.configurable
.prefix_config_spec¶
- langchain_core.runnables.configurable.prefix_config_spec(spec: ConfigurableFieldSpec, prefix: str) ConfigurableFieldSpec [source]¶
Prefix the id of a ConfigurableFieldSpec.
This is useful when a RunnableConfigurableAlternatives is used as a ConfigurableField of another RunnableConfigurableAlternatives.
- Parameters
spec – The ConfigurableFieldSpec to prefix.
prefix – The prefix to add.
Returns: