InferenceAI

Enter at least two characters to search.

Start free

Agent Tool Failure Rate

mediumSQL for AI20 min25 XP

From tool_calls(tool, success), return each tool and failure percentage as failure_pct rounded to one decimal, worst first.

Examples

EXAMPLE WALKTHROUGHfailure percentages

A guided view of the published example, not a trace of your code.

INPUT["CREATE TABLE tool_calls(tool TEXT,success INT); INSERT INTO tool_calls VALUES('search',1),('search',0),('db',1),('db',1);"]
TASKquery()
EXPECTED OUTPUT[["search",50],["db",0]]

Start with the input values shown in this example.

Input: CREATE TABLE tool_calls(tool TEXT,success INT); INSERT INTO tool_calls VALUES('search',1),('search',0),('db',1),('db',1);

Output: [["search",50],["db",0]]

Explanation: failure percentages

Hint 1

Check column aliases and required ordering.

Topics

SQLAnalyticsAI Systems