Home / Function/ output_keys() — langchain Function Reference

output_keys() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  10767a86_61eb_161f_8496_3b2e84237ab9["output_keys()"]
  daa08d88_1d2b_5650_6257_d688074121b7["ElasticsearchDatabaseChain"]
  10767a86_61eb_161f_8496_3b2e84237ab9 -->|defined in| daa08d88_1d2b_5650_6257_d688074121b7
  style 10767a86_61eb_161f_8496_3b2e84237ab9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/chains/elasticsearch_database/base.py lines 76–80

    def output_keys(self) -> list[str]:
        """Return the singular output key."""
        if not self.return_intermediate_steps:
            return [self.output_key]
        return [self.output_key, INTERMEDIATE_STEPS_KEY]

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free