Home / Function/ input_keys() — langchain Function Reference

input_keys() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  74e7de63_4eca_4e6d_ef1b_798754a47678["input_keys()"]
  9066f65c_c5a3_1534_5336_72609f4ff02b["TrajectoryEvalChain"]
  74e7de63_4eca_4e6d_ef1b_798754a47678 -->|defined in| 9066f65c_c5a3_1534_5336_72609f4ff02b
  style 74e7de63_4eca_4e6d_ef1b_798754a47678 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/evaluation/agents/trajectory_eval_chain.py lines 258–264

    def input_keys(self) -> list[str]:
        """Get the input keys for the chain.

        Returns:
            The input keys.
        """
        return ["question", "agent_trajectory", "answer", "reference"]

Domain

Subdomains

Frequently Asked Questions

What does input_keys() do?
input_keys() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/evaluation/agents/trajectory_eval_chain.py.
Where is input_keys() defined?
input_keys() is defined in libs/langchain/langchain_classic/evaluation/agents/trajectory_eval_chain.py at line 258.

Analyze Your Own Codebase

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

Try Supermodel Free