Skip to content
ML Academy

LLMs, GenAI, RAG, agents, evaluation · insight-1513

Score tool calls on argument match and on executed outcome, since each alone misleads

Evidence type
documented fact
Difficulty
medium
Roles
Applied AI, ML engineer
Industries
aviation, cross-industry

Summary: situation, action, reason, boundary

  1. Situation

    A flight-change agent is evaluated by exact string comparison of its tool-call JSON against a reference call.

  2. Action

    Compare calls structurally with documented normalisation (function name, required and no extra parameters, types, accepted value variants), execute them against a sandbox or recorded service to compare outcomes, report both, and include cases where no call is correct.

  3. Reason

    The Berkeley Function Calling Leaderboard pairs AST matching with executable evaluation because not every function is easily executable, and tests relevance detection, where no function fits and none should be called.

  4. Boundary

    Function-calling agents whose tools are deterministic or can be sandboxed.

Symptom or risk

Equivalent calls (reordered keys, AYT versus ayt, another ISO date form) are marked wrong, while calls that match the reference but hit a stale or unavailable service pass.

Exceptions

Tools with side effects that cannot be sandboxed, where structural matching plus review is what remains.

Trade-offs

Normalisation rules need maintenance and executable tests need fixtures.

Pitfalls

Leaving out the cases where the right behaviour is to make no call.

Lessons and concepts

Claims and their sources