_evaluate_agent_trajectory() — langchain Function Reference
Architecture documentation for the _evaluate_agent_trajectory() function in schema.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD dead35f2_5d91_cb2b_4630_f4d666053668["_evaluate_agent_trajectory()"] 942e26b5_86b7_44c9_5c6d_e12c17d223b8["AgentTrajectoryEvaluator"] dead35f2_5d91_cb2b_4630_f4d666053668 -->|defined in| 942e26b5_86b7_44c9_5c6d_e12c17d223b8 f9083201_751d_03a7_715e_48b36d32dabf["evaluate_agent_trajectory()"] f9083201_751d_03a7_715e_48b36d32dabf -->|calls| dead35f2_5d91_cb2b_4630_f4d666053668 style dead35f2_5d91_cb2b_4630_f4d666053668 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/evaluation/schema.py lines 392–413
def _evaluate_agent_trajectory(
self,
*,
prediction: str,
agent_trajectory: Sequence[tuple[AgentAction, str]],
input: str, # noqa: A002
reference: str | None = None,
**kwargs: Any,
) -> dict:
"""Evaluate a trajectory.
Args:
prediction: The final predicted response.
agent_trajectory:
The intermediate steps forming the agent trajectory.
input: The input to the agent.
reference: The reference answer.
**kwargs: Additional keyword arguments.
Returns:
The evaluation result.
"""
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does _evaluate_agent_trajectory() do?
_evaluate_agent_trajectory() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/evaluation/schema.py.
Where is _evaluate_agent_trajectory() defined?
_evaluate_agent_trajectory() is defined in libs/langchain/langchain_classic/evaluation/schema.py at line 392.
What calls _evaluate_agent_trajectory()?
_evaluate_agent_trajectory() is called by 1 function(s): evaluate_agent_trajectory.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free