Home / Function/ output_keys() — langchain Function Reference

output_keys() — langchain Function Reference

Architecture documentation for the output_keys() function in string_run_evaluator.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  2270a289_d8d5_e578_682e_87d6e2193aa4["output_keys()"]
  6513456f_be2b_21ef_06af_21023f648595["StringRunMapper"]
  2270a289_d8d5_e578_682e_87d6e2193aa4 -->|defined in| 6513456f_be2b_21ef_06af_21023f648595
  049c89ef_0ad2_3788_aeba_88ffacedb13a["output_keys()"]
  2270a289_d8d5_e578_682e_87d6e2193aa4 -->|calls| 049c89ef_0ad2_3788_aeba_88ffacedb13a
  style 2270a289_d8d5_e578_682e_87d6e2193aa4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/smith/evaluation/string_run_evaluator.py lines 42–44

    def output_keys(self) -> list[str]:
        """The keys to extract from the run."""
        return ["prediction", "input"]

Domain

Subdomains

Frequently Asked Questions

What does output_keys() do?
output_keys() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/smith/evaluation/string_run_evaluator.py.
Where is output_keys() defined?
output_keys() is defined in libs/langchain/langchain_classic/smith/evaluation/string_run_evaluator.py at line 42.
What does output_keys() call?
output_keys() calls 1 function(s): output_keys.

Analyze Your Own Codebase

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

Try Supermodel Free