Home / Function/ input_keys() — langchain Function Reference

input_keys() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  eba221c9_aa38_e298_cf9a_bcbc4aed2278["input_keys()"]
  6583c2eb_e73e_04a5_2dfe_d3e26b9ec1eb["LLMRouterChain"]
  eba221c9_aa38_e298_cf9a_bcbc4aed2278 -->|defined in| 6583c2eb_e73e_04a5_2dfe_d3e26b9ec1eb
  style eba221c9_aa38_e298_cf9a_bcbc4aed2278 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/chains/router/llm_router.py lines 120–122

    def input_keys(self) -> list[str]:
        """Will be whatever keys the LLM chain prompt expects."""
        return self.llm_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/llm_router.py.
Where is input_keys() defined?
input_keys() is defined in libs/langchain/langchain_classic/chains/router/llm_router.py at line 120.

Analyze Your Own Codebase

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

Try Supermodel Free