You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: assets/evaluators/builtin/tool_call_accuracy/evaluator/tool_call_accuracy.prompty
+15-2Lines changed: 15 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,16 @@ Evaluate based on these factors:
54
54
55
55
**Tool Assessment**: Focus solely on appropriate use of available tools, not on capabilities beyond what tools can provide.
56
56
57
+
## Status: Skipped
58
+
Before performing any evaluation, check for the following conditions. If ANY are true, return `status: "skipped"` immediately without scoring:
59
+
1. **No tool calls to evaluate**: The TOOL CALLS TO BE EVALUATED section is empty (tool calls appearing only in the CONVERSATION section do not count).
60
+
2. **Missing tool definitions**: Any tool call in TOOL CALLS TO BE EVALUATED references a tool that is not present in the TOOL DEFINITIONS.
## Please provide your evaluation for the assistant RESPONSE in relation to the user QUERY and tool definitions based on the Definitions and examples above.
142
152
Your output should consist only of a JSON object that has the following keys:
143
-
- score: an integer value between 1 and 5 that represents the level of tool call success, based on the level definitions mentioned before. You need to be very precise when deciding on this level. Ensure you are correctly following the rating system based on the description of each level.
144
-
- reasoning: a string that explains your thought process to decide on the tool call accuracy level, based on the Chain of Thought structure. Start this string with 'Let's think step by step:'.
153
+
- score: an integer value between 1 and 5 that represents the level of tool call success, based on the level definitions mentioned before. You need to be very precise when deciding on this level. Ensure you are correctly following the rating system based on the description of each level. Set to null when status is "skipped".
154
+
- status: a string indicating the evaluation status. Must be one of:
155
+
- "completed": tool calls were present, tool definitions were available, and evaluation was performed.
156
+
- "skipped": evaluation was not performed because there were no tool calls to evaluate, or tool definitions were missing for the tool calls. When skipped, set score to null and properties to null.
157
+
- reasoning: a string that explains your thought process to decide on the tool call accuracy level, based on the Chain of Thought structure. Start this string with 'Let's think step by step:'. When status is "skipped", explain why the evaluation was skipped.
145
158
- properties: a dictionary that contains the following keys:
146
159
- tool_calls_made_by_agent: total number of tool calls made by the agent
147
160
- correct_tool_calls_made_by_agent: total number of correct tool calls made by the agent
0 commit comments