Files
whetstone_DSL/tools/mcp/grammars/whetstone_classify_debug_stop_reason.gbnf

23 lines
1.8 KiB
Plaintext

# ---------------------------------------------------------------------------
# JSON primitives
# ---------------------------------------------------------------------------
ws ::= [ \t\n\r]*
string ::= "\"" ([^"\\\x7F\x00-\x1F] | "\\" (["\\/bfnrt] | "u" [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F]))* "\""
number ::= "-"? ([0-9] | [1-9] [0-9]*) ("." [0-9]+)? ([eE] [-+]? [0-9]+)?
integer ::= "-"? ([0-9] | [1-9] [0-9]*)
boolean ::= "true" | "false"
null ::= "null"
any-value ::= string | number | boolean | null | any-object | any-array
any-object ::= "{" ws (string ws ":" ws any-value (ws "," ws string ws ":" ws any-value)*)? ws "}"
any-array ::= "[" ws (any-value (ws "," ws any-value)*)? ws "]"
# --- whetstone_classify_debug_stop_reason ---
root ::= "{" ws "\"tool\"" ws ":" ws "\"whetstone_classify_debug_stop_reason\"" ws "," ws "\"arguments\"" ws ":" ws whetstone-classify-debug-stop-reason-args-obj-10 ws "}"
whetstone-classify-debug-stop-reason-args-budget_exceeded-pair-2 ::= "\"budget_exceeded\"" ws ":" ws boolean
whetstone-classify-debug-stop-reason-args-obj-10 ::= "{" ws (whetstone-classify-debug-stop-reason-args-opt-9 (ws "," ws whetstone-classify-debug-stop-reason-args-opt-9)*)? ws "}"
whetstone-classify-debug-stop-reason-args-opt-9 ::= whetstone-classify-debug-stop-reason-args-budget_exceeded-pair-2 | whetstone-classify-debug-stop-reason-args-patch_rejected-pair-4 | whetstone-classify-debug-stop-reason-args-policy_violation-pair-6 | whetstone-classify-debug-stop-reason-args-tests_failing-pair-8
whetstone-classify-debug-stop-reason-args-patch_rejected-pair-4 ::= "\"patch_rejected\"" ws ":" ws boolean
whetstone-classify-debug-stop-reason-args-policy_violation-pair-6 ::= "\"policy_violation\"" ws ":" ws boolean
whetstone-classify-debug-stop-reason-args-tests_failing-pair-8 ::= "\"tests_failing\"" ws ":" ws boolean