ReliabilityEvaluator is a post-execution assertion engine that verifies an agent’s tool-calling behavior. It checks whether the expected tools were invoked, in the correct order if required, and flags any unexpected tool calls.
How It Works
- Run your agent, team, or graph to completion.
- Pass the completed result (a
Task,List[Task], orGraph) to the evaluator. - The evaluator extracts tool call history and compares it against the expected list.
- Returns a structured result with pass/fail status, per-tool checks, and missing/unexpected lists.
Parameters
Input Types
Therun() method accepts:
Result Structure
ReliabilityEvaluationResult contains:
passed— Overall pass/fail booleansummary— Human-readable explanationexpected_tool_calls— The original expected listactual_tool_calls— Ordered list of tools actually calledchecks— List ofToolCallCheckobjects (one per expected tool)missing_tool_calls— Expected tools that were not invokedunexpected_tool_calls— Tools called but not expected (only whenexact_match=True)
ToolCallCheck includes:
tool_name— Name of the toolwas_called— Whether the tool was found in historytimes_called— How many times it was invoked
Usage Examples
Agent
Verify agent tool calls
Team
Verify team tool calls
Graph
Verify graph tool calls

