Home / Function/ input_keys() — langchain Function Reference

input_keys() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  50383411_6d7b_6641_43b5_e50a6a4e5904["input_keys()"]
  ccf50fe1_4990_cf19_1e2d_25efe83f53c5["LLMChain"]
  50383411_6d7b_6641_43b5_e50a6a4e5904 -->|defined in| ccf50fe1_4990_cf19_1e2d_25efe83f53c5
  style 50383411_6d7b_6641_43b5_e50a6a4e5904 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/chains/llm.py lines 101–103

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

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/llm.py.
Where is input_keys() defined?
input_keys() is defined in libs/langchain/langchain_classic/chains/llm.py at line 101.

Analyze Your Own Codebase

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

Try Supermodel Free