Files
marketplace-ai/tests/netexpert_scenarios/README.md
T
2026-11-27 14:11:56 +03:00

1.3 KiB

NetExpert scenario replay

The eight recordings use sanitized example data, including reserved .invalid publisher URLs. The runner is offline and uses only Python's standard library.

python3 tests/netexpert_scenarios/evaluate.py list
python3 tests/netexpert_scenarios/evaluate.py prompt vpn-no-traffic

Give the prompt and available tool names to the candidate alongside the installed plugin. Record the selected skill, observed calls in order, and the final answer in a JSON trace. Use the unqualified skill and tool names. Use web for a recorded publisher lookup.

{
  "skill": "diagnostics",
  "calls": [
    {"tool": "search_docs", "arguments": {"query": "VPN route counters", "freshness": "cached"}}
  ]
}

Run replay after each new call and give the last recorded result to the candidate. For tool failures, include the recorded HTTP status and headers. Add the final user-facing text as answer before grading the trace.

python3 tests/netexpert_scenarios/evaluate.py replay vpn-no-traffic trace.json
python3 tests/netexpert_scenarios/evaluate.py grade vpn-no-traffic trace.json

The grader checks the skill, ordered call budget, key arguments, expected citations, answer context, and fixture secret canaries. Pytest exercises the fixtures and the grader. Evaluating a skill run requires an observed candidate trace.