Skip to content

Tool Use Evaluation Metrics

Definition

Tool Use Evaluation Metrics are metrics used for quantitative assessment of an LLM-agent's ability to correctly select, invoke, and handle the results of tools. The evaluation goes beyond simple response accuracy and focuses on the quality of interaction with external functions.

Key Metrics

Metric Description
Tool Selection Accuracy The proportion of cases where the correct tool is selected
Argument Correctness The correctness of the formed invocation arguments
Execution Success Rate The proportion of successfully executed invocations
Result Utilization The extent to which the tool result is used in the final response
Hallucinated Tool Calls The proportion of calls to non-existent or irrelevant tools

Evaluation Methodology

  1. Forming a set of tasks requiring tool invocation.
  2. Defining reference sequences of invocations.
  3. Running the agent and collecting trajectories.
  4. Comparing actual invocations with reference sequences.
  5. Calculating metrics for each task and aggregating.

See Also