ConfigurableFieldSingleOption Class — langchain Architecture
Architecture documentation for the ConfigurableFieldSingleOption class in utils.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD aafe6953_7529_167c_40c0_96359489e16b["ConfigurableFieldSingleOption"] ca66092c_447c_d201_0d3c_cfa6ca2cc9d3["utils.py"] aafe6953_7529_167c_40c0_96359489e16b -->|defined in| ca66092c_447c_d201_0d3c_cfa6ca2cc9d3 1757c642_fa20_6fb1_9350_cedd248c8af3["__hash__()"] aafe6953_7529_167c_40c0_96359489e16b -->|method| 1757c642_fa20_6fb1_9350_cedd248c8af3
Relationship Graph
Source Code
libs/core/langchain_core/runnables/utils.py lines 575–593
class ConfigurableFieldSingleOption(NamedTuple):
"""Field that can be configured by the user with a default value."""
id: str
"""The unique identifier of the field."""
options: Mapping[str, Any]
"""The options for the field."""
default: str
"""The default value for the field."""
name: str | None = None
"""The name of the field. """
description: str | None = None
"""The description of the field. """
is_shared: bool = False
"""Whether the field is shared."""
@override
def __hash__(self) -> int:
return hash((self.id, tuple(self.options.keys()), self.default))
Defined In
Source
Frequently Asked Questions
What is the ConfigurableFieldSingleOption class?
ConfigurableFieldSingleOption is a class in the langchain codebase, defined in libs/core/langchain_core/runnables/utils.py.
Where is ConfigurableFieldSingleOption defined?
ConfigurableFieldSingleOption is defined in libs/core/langchain_core/runnables/utils.py at line 575.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free