Home / Class/ ConfigurableFieldMultiOption Class — langchain Architecture

ConfigurableFieldMultiOption Class — langchain Architecture

Architecture documentation for the ConfigurableFieldMultiOption class in utils.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  6ad04c68_111c_8149_99cc_1b730b0bec76["ConfigurableFieldMultiOption"]
  ca66092c_447c_d201_0d3c_cfa6ca2cc9d3["utils.py"]
  6ad04c68_111c_8149_99cc_1b730b0bec76 -->|defined in| ca66092c_447c_d201_0d3c_cfa6ca2cc9d3
  fcd271ae_04ab_9ce7_6532_6c743eae1dc7["__hash__()"]
  6ad04c68_111c_8149_99cc_1b730b0bec76 -->|method| fcd271ae_04ab_9ce7_6532_6c743eae1dc7

Relationship Graph

Source Code

libs/core/langchain_core/runnables/utils.py lines 596–614

class ConfigurableFieldMultiOption(NamedTuple):
    """Field that can be configured by the user with multiple default values."""

    id: str
    """The unique identifier of the field."""
    options: Mapping[str, Any]
    """The options for the field."""
    default: Sequence[str]
    """The default values 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()), tuple(self.default)))

Frequently Asked Questions

What is the ConfigurableFieldMultiOption class?
ConfigurableFieldMultiOption is a class in the langchain codebase, defined in libs/core/langchain_core/runnables/utils.py.
Where is ConfigurableFieldMultiOption defined?
ConfigurableFieldMultiOption is defined in libs/core/langchain_core/runnables/utils.py at line 596.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free