make_options_spec#
- langchain_core.runnables.configurable.make_options_spec(spec: ConfigurableFieldSingleOption | ConfigurableFieldMultiOption, description: str | None) ConfigurableFieldSpec [source]#
Make a ConfigurableFieldSpec for a ConfigurableFieldSingleOption or ConfigurableFieldMultiOption.
- Parameters:
spec (ConfigurableFieldSingleOption | ConfigurableFieldMultiOption) – The ConfigurableFieldSingleOption or ConfigurableFieldMultiOption.
description (str | None) – The description to use if the spec does not have one.
- Returns:
The ConfigurableFieldSpec.
- Return type: