Files
turboquant/benchmarks/tool-call-regression.json
PRIMA 02c0cc2b23
All checks were successful
Smoke Test / smoke (pull_request) Successful in 15s
test: tool call regression suite for compressed models (closes #96)
tests/tool_call_regression.py:
- 10 test cases covering 5 hermes tools: read_file, web_search, terminal,
  execute_code, delegate_task
- Schema validation (OpenAI-compatible tool call format)
- Argument validation (correct tool + expected args)
- Parallel tool calling test (multiple tools in one response)
- Dry-run mode for CI (schema validation without server)
- Full server mode with latency tracking
- Markdown report generation with results matrix
- JSON results output for programmatic consumption
- 95% accuracy threshold gate (exit code 1 on failure)

benchmarks/tool-call-regression.md:
- Results template with model/preset matrix
- Tool coverage tracking table

.gitea/workflows/smoke.yml:
- Added dry-run tool call schema validation step
2026-04-15 21:58:34 -04:00

135 lines
3.2 KiB
JSON

{
"timestamp": "2026-04-16T01:56:48.462512+00:00",
"model": "dry-run",
"endpoint": "none",
"kv_type": "none",
"total": 10,
"passed": 10,
"failed": 0,
"accuracy": 1.0,
"meets_threshold": true,
"threshold": 1.0,
"results": [
{
"id": "read_file_basic",
"name": "Read File \u2014 basic path",
"passed": true,
"tool_called": null,
"expected_tool": "read_file",
"schema_valid": true,
"args_valid": true,
"latency_ms": 0.0,
"raw_response": "",
"error": null
},
{
"id": "read_file_offset",
"name": "Read File \u2014 with offset",
"passed": true,
"tool_called": null,
"expected_tool": "read_file",
"schema_valid": true,
"args_valid": true,
"latency_ms": 0.0,
"raw_response": "",
"error": null
},
{
"id": "web_search_basic",
"name": "Web Search \u2014 basic query",
"passed": true,
"tool_called": null,
"expected_tool": "web_search",
"schema_valid": true,
"args_valid": true,
"latency_ms": 0.0,
"raw_response": "",
"error": null
},
{
"id": "terminal_basic",
"name": "Terminal \u2014 simple command",
"passed": true,
"tool_called": null,
"expected_tool": "terminal",
"schema_valid": true,
"args_valid": true,
"latency_ms": 0.0,
"raw_response": "",
"error": null
},
{
"id": "terminal_complex",
"name": "Terminal \u2014 complex command",
"passed": true,
"tool_called": null,
"expected_tool": "terminal",
"schema_valid": true,
"args_valid": true,
"latency_ms": 0.0,
"raw_response": "",
"error": null
},
{
"id": "code_exec_basic",
"name": "Code Execution \u2014 python",
"passed": true,
"tool_called": null,
"expected_tool": "execute_code",
"schema_valid": true,
"args_valid": true,
"latency_ms": 0.0,
"raw_response": "",
"error": null
},
{
"id": "code_exec_complex",
"name": "Code Execution \u2014 multi-line",
"passed": true,
"tool_called": null,
"expected_tool": "execute_code",
"schema_valid": true,
"args_valid": true,
"latency_ms": 0.0,
"raw_response": "",
"error": null
},
{
"id": "delegate_basic",
"name": "Delegate Task \u2014 simple",
"passed": true,
"tool_called": null,
"expected_tool": "delegate_task",
"schema_valid": true,
"args_valid": true,
"latency_ms": 0.0,
"raw_response": "",
"error": null
},
{
"id": "delegate_context",
"name": "Delegate Task \u2014 with context",
"passed": true,
"tool_called": null,
"expected_tool": "delegate_task",
"schema_valid": true,
"args_valid": true,
"latency_ms": 0.0,
"raw_response": "",
"error": null
},
{
"id": "parallel_two",
"name": "Parallel Tools \u2014 two in one response",
"passed": true,
"tool_called": null,
"expected_tool": "read_file",
"schema_valid": true,
"args_valid": true,
"latency_ms": 0.0,
"raw_response": "",
"error": null
}
],
"error": null
}