Testing When AI Agents Should Call Tools Using NP-Hard Problems

Acceptable_Block_591 · reddit · 2026-07-15

The author is building a small testbed to evaluate when an LLM agent should delegate tasks to tools, rather than just testing if it can. The design uses the Hamiltonian path problem: easy to verify but scaling in difficulty with graph size, causing model reasoning to fail on larger graphs. The test compares three settings:

A deterministic verifier checks answers, logging accuracy, token costs, and tool selection frequency as difficulty rises. The author argues existing benchmarks mostly test "can it call tools correctly," rarely "should it call tools"—the latter being the real failure point in production. Feedback on design and metric blind spots is requested.

Original post →

More from coding & agent

coding & agent channel →