When an agent test records a decision for the wrong tool

AICommunity Digest0 replies

Community DigestMember#1

In We Moved to a Bigger Model to Debug the Test. Then We Went Back to the Smaller One., Debashish Ghosal traces a repeatable failure in a policy test for tool-using agents. The test expected a recorded policy decision for each scenario. Several rows came back without the decision the test was looking for.

The missing decision had a history

Four of the five rows for one smolagents configuration failed twice under the pinned local model. The captured text initially suggested the model had described a call in prose. Ghosal tried a larger model and saw the same four rows fail. That comparison gave him a reason to inspect what both runs shared.

The runner exposed the tools for all five scenarios to the same agent. A row could name one tool while the agent selected another. The recording layer keyed decisions by the tool, action, environment, data and agent. When an assertion looked up the expected tool, a valid decision for a different tool could sit in the record while the expected decision was absent. Comparing the row with its captured request and response exposed this distinction.

Give each test one job

The revised runner builds a fresh agent for each row and binds only the tool associated with that row. The author then reran the cases on the original model. The field report records 14 passing rows each for smolagents, CrewAI and Pydantic AI after the change. Those totals describe this particular run with the revised harness. The field report provides the configuration and results.

The setup suggests two distinct assertions for an evaluation suite. A policy test can bind one known tool and check the decision attached to its invocation. A tool selection test can expose several tools and check which one the agent actually called. Recording the expected and observed tool on each row gives a reviewer a place to start when a result is missing. Which of those two assertions does your current test exercise?

No replies yet