TrajectoryEval Class — langchain Architecture
Architecture documentation for the TrajectoryEval class in trajectory_eval_chain.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 2009e6b4_87c6_4d12_2180_4badc6c4b0e2["TrajectoryEval"] c646e46b_908e_bc3a_44e1_fafa62570a54["trajectory_eval_chain.py"] 2009e6b4_87c6_4d12_2180_4badc6c4b0e2 -->|defined in| c646e46b_908e_bc3a_44e1_fafa62570a54
Relationship Graph
Source Code
libs/langchain/langchain_classic/evaluation/agents/trajectory_eval_chain.py lines 40–46
class TrajectoryEval(TypedDict):
"""A named tuple containing the score and reasoning for a trajectory."""
score: float
"""The score for the trajectory, normalized from 0 to 1."""
reasoning: str
"""The reasoning for the score."""
Source
Frequently Asked Questions
What is the TrajectoryEval class?
TrajectoryEval is a class in the langchain codebase, defined in libs/langchain/langchain_classic/evaluation/agents/trajectory_eval_chain.py.
Where is TrajectoryEval defined?
TrajectoryEval is defined in libs/langchain/langchain_classic/evaluation/agents/trajectory_eval_chain.py at line 40.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free