In short.
Agentic Evaluators is a practical guide for Python developers evaluating how Pydantic AI agents use tools, with visibility limited to locally recorded execution. It documents five deterministic evaluators for tool coverage, call sequences, argument matching and tool or model-request budgets. These evaluators make no LLM calls themselves. Missing traces produce failing results, and excluding telemetry content prevents the built-in argument check from working. The page includes setup guidance and recipes, but supplies no execution results, benchmark measurements, package compatibility guarantees or prices.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage is the complete Agentic Evaluators documentation page at [https://pydantic.dev/docs/ai/evals/evaluators/agentic/index.md], including its examples, documentation-index notice and query-parameter notice. Linked pages and the documentation index itself are excluded, as are package source files, distributions and license files. No code was executed. Runtime behavior, compatibility, performance and monetary costs remain unverified.
The overview
Identity
Agentic Evaluators is a Pydantic Evals documentation guide at [https://pydantic.dev/docs/ai/evals/evaluators/agentic/index.md]. It teaches developers to examine an agent's trajectory: the sequence of tool calls and the arguments passed to them.
The resource covers the Python evaluator classes ToolCorrectness, TrajectoryMatch, ArgumentCorrectness, MaxToolCalls and MaxModelRequests. It is documentation for integrating these checks into evaluation datasets.
Assessment
The guide is useful when a correct agent run should leave a predictable record of actions, such as searching before reranking, submitting a validated request or refunding a particular order. Its strongest feature is the detail about what gets counted and why a check passes or fails.
These checks establish whether recorded behavior matches configured expectations. They do not establish that the expectations are appropriate or that the final answer is correct. The page provides enough detail to plan an integration, while actual reliability and compatibility remain unverified.
Users
The main audience is developers building Pydantic AI agents and evaluation datasets. The examples address retrieval pipelines, support agents, ordered business processes and agents with tool-call or model-request budgets.
Beginners need familiarity with Python functions, agent tools and evaluation cases. Experienced developers will find details about retries, nested agents, telemetry settings and scoring semantics. Support for other agent frameworks is not established by this page.
Capabilities
ToolCorrectness checks tool names and their required repetition counts, ignoring order. Unexpected calls fail by default; allow_extra=True permits them. TrajectoryMatch compares ordered tool names using exact equality, order-sensitive similarity or order-independent similarity.
ArgumentCorrectness checks a selected invocation's arguments. Its default subset mode requires each expected top-level key and value to match; nested dictionaries must match as complete values. Exact mode also rejects unexpected keys. The selected occurrence can be first, last or a zero-based integer index.
MaxToolCalls and MaxModelRequests return separate boolean budget assertions. Boolean evaluators return an EvaluationReason containing a result and explanation; TrajectoryMatch returns a score between 0.0 and 1.0 with an explanation.
Using it
Requirements
The evaluators require the Logfire SDK to be installed and configured so they can read an OpenTelemetry span tree, which records events from the agent run. A Pydantic Logfire account is unnecessary for local span capture.
Tool checks depend on spans produced by locally executed tools. ArgumentCorrectness additionally needs tool arguments in those spans. Setting include_content=False retains tool names but removes the arguments needed for this check.
The page does not specify minimum Python, Pydantic AI, Pydantic Evals or Logfire versions.
Mechanism
The evaluators inspect recorded spans rather than asking an LLM to grade behavior. Failed tool attempts are excluded by default from ToolCorrectness, TrajectoryMatch and ArgumentCorrectness. MaxToolCalls includes failed attempts by default because they consume resources. Deferred calls are never counted because they did not execute during that run. Matching calls from nested sub-agents are included.
TrajectoryMatch uses exact sequence equality in exact mode. In in_order mode, the longest common subsequence determines precision and recall: its length is divided by the actual and expected call counts respectively. In any_order mode, the same calculation uses the multiset intersection, preserving repeated-call counts while ignoring order. Both similarity modes return F1, so extra and missing calls reduce the score.
All trajectory modes score 1.0 when both sequences are empty and 0.0 when only one is empty. MaxModelRequests prefers the requests value in evaluation metrics and otherwise counts LLM request spans.
When spans are unavailable, the documented behavior is a failing result with a configuration-related explanation: False for boolean checks and 0.0 for TrajectoryMatch.
Setup
The documented installation command is pip install 'pydantic-evals[logfire]'. The SDK then needs configuration to capture spans. Examples import Case and Dataset from pydantic_evals and attach evaluator instances to a dataset or individual cases.
For evaluation runs needing argument content, the page describes Agent.instrument_all(InstrumentationSettings(include_content=True)), with InstrumentationSettings imported from pydantic_ai. This sets defaults for agents without their own instrumentation settings; explicitly configured agents retain their settings.
Content captured during evaluation is exported wherever that process sends telemetry. If content must remain excluded, the page offers a custom evaluator that reads tool arguments from returned run messages instead.
Example
The support-agent recipe uses a refund case with order_id set to '12345'. ArgumentCorrectness checks that issue_refund received that order ID. Dataset-level evaluators allow at most four locally executed tool calls and two model requests. These numbers are example expectations, not library limits.
The scoring example expects ['a', 'b', 'c'] and observes ['a', 'x', 'b']. The longest common subsequence contains two calls, giving precision and recall of 2/3 and an in_order F1 score of approximately 0.667. This illustrates how an unexpected call and a missing call affect similarity.
These are documented configurations and illustrative calculations. The examples were not executed.
Assessment & evidence
Limitations
Provider-native tools, such as hosted file search or web search, do not produce the local execution spans these evaluators inspect. Their activity is invisible to these tool checks. Nested agent calls, however, contribute to the captured totals and can exceed expectations written only for the parent agent.
Missing instrumentation can produce a failing score even when the intended action occurred. With include_content=False, the name, trajectory and budget evaluators continue working, while ArgumentCorrectness returns False with an explanation because arguments are unavailable.
The message-based workaround has different semantics: it can see failed, retried and deferred calls, and the supplied example passes if any matching call has the expected arguments. That does not establish that the call executed successfully.
The budget evaluators assess observed counts. The page does not describe them as runtime controls that stop an agent, and it provides no token-budget or monetary-budget evaluator here.
Reasoning
Choose expectations according to the behavior that matters. ToolCorrectness suits a required collection of calls, including repetitions. TrajectoryMatch with exact mode suits a strict sequence; in_order gives partial credit for preserved order, while any_order measures coverage without order. A nonzero similarity score does not mean every required call occurred.
Argument checks add value when correct tool selection alone is insufficient, such as issuing a refund for the correct order. Request and tool-call budgets add separate assertions about resource use. Their counting rules should reflect whether failed attempts and delegated work belong in the budget.
Final task quality needs a separate assessment. The page explains that LLMJudge cannot automatically see the span tree or other evaluators' results. Its custom judging recipe explicitly extracts a trajectory and includes it in the material sent to the judge.
Alternatives
For lower-level trace conditions, the page points to HasMatchingSpan and SpanQuery. It suggests checking provider-owned spans, where available, or model output when native tools fall outside local tool tracing.
For arguments excluded from telemetry, the page supplies a custom evaluator over returned model messages. For qualitative completion judgments, it supplies a custom evaluator that sends an extracted tool trajectory to judge_input_output.
These are approaches described within the page. The linked reference pages and competing evaluation products are not assessed here.
Evidence
The documentation provides parameter definitions, defaults, return types, counting rules, scoring explanations and Python examples. It also documents failure behavior and the visibility limits of local tracing.
The supplied material contains no executed test results, measured benchmarks or independent validation. No code was executed, so installation, runtime behavior and compatibility remain unverified. Linked API references and package source code are outside the available evidence.
Access & freshness
Costs
The five built-in evaluators are deterministic and make no LLM calls themselves. The page describes them as cheap enough to use on every evaluation case, but supplies no timings, resource measurements or monetary estimates.
Local capture requires no Pydantic Logfire account. The evaluated agent can still make model requests, and the optional custom judging recipe invokes an LLM. Package prices, model charges, telemetry-service costs and total operating cost are unknown from this page.
Rights
The page supplies no license text or explicit redistribution grant for its documentation, examples or the Pydantic Evals library. Reuse and redistribution terms are therefore unknown from this evidence.
Freshness
The documentation copy was captured on 26 November 2026 at 10:07:45 UTC. The page states no publication date, last-updated date or supported package versions.
The capture date identifies when this copy was recorded; it does not establish when the APIs changed or whether a particular installed release supports them. Release compatibility and maintenance history are unknown.
Actions
Before adopting the examples, confirm that the intended package versions expose the named evaluators and configure local span capture. Start with a small case whose expected tool names, order and arguments are known, then inspect the recorded calls and evaluation reasons.
Decide how failed attempts and nested-agent calls should affect expectations. Choose exact sequence matching or a suitable similarity threshold deliberately, and assess final output quality separately.
For argument checks, decide whether evaluation telemetry may contain arguments and where that content will be exported. If using returned messages instead, account for their inclusion of attempted and deferred calls. Plan a separate assessment for provider-native tools.
