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
- Forming a set of tasks requiring tool invocation.
- Defining reference sequences of invocations.
- Running the agent and collecting trajectories.
- Comparing actual invocations with reference sequences.
- Calculating metrics for each task and aggregating.