octave_compile_grammar
Compile OCTAVE schema or contract into GBNF or JSON Schema constraint grammar to regulate AI model outputs.
Instructions
Compile OCTAVE schema or contract to constraint grammar. Supports GBNF (llama.cpp) and JSON Schema (vLLM) output formats. Provide either a builtin schema name or inline OCTAVE content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | No | Builtin schema name to compile grammar from (e.g., 'SKILL', 'META'). Mutually exclusive with content. | |
| content | No | Inline OCTAVE document content with META.CONTRACT or FIELDS block. Mutually exclusive with schema. | |
| format | No | Output format: gbnf (default) or json_schema. |