Home / Function/ _run_output_key() — langchain Function Reference

_run_output_key() — langchain Function Reference

Architecture documentation for the _run_output_key() function in base.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  03f356e0_135b_e3d8_c423_2c3ad4897ef8["_run_output_key()"]
  f3cef70e_11b0_61c9_7ec0_7308f4b45056["Chain"]
  03f356e0_135b_e3d8_c423_2c3ad4897ef8 -->|defined in| f3cef70e_11b0_61c9_7ec0_7308f4b45056
  style 03f356e0_135b_e3d8_c423_2c3ad4897ef8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/chains/base.py lines 570–577

    def _run_output_key(self) -> str:
        if len(self.output_keys) != 1:
            msg = (
                f"`run` not supported when there is not exactly "
                f"one output key. Got {self.output_keys}."
            )
            raise ValueError(msg)
        return self.output_keys[0]

Subdomains

Frequently Asked Questions

What does _run_output_key() do?
_run_output_key() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/chains/base.py.
Where is _run_output_key() defined?
_run_output_key() is defined in libs/langchain/langchain_classic/chains/base.py at line 570.

Analyze Your Own Codebase

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

Try Supermodel Free