Home / Function/ input_keys() — langchain Function Reference

input_keys() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  1279be43_06ff_3af8_82af_05ce61c47c82["input_keys()"]
  741a7f73_f662_9d17_6b91_e7e8709f4338["MultiRouteChain"]
  1279be43_06ff_3af8_82af_05ce61c47c82 -->|defined in| 741a7f73_f662_9d17_6b91_e7e8709f4338
  style 1279be43_06ff_3af8_82af_05ce61c47c82 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/chains/router/base.py lines 84–86

    def input_keys(self) -> list[str]:
        """Will be whatever keys the router chain prompt expects."""
        return self.router_chain.input_keys

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free