ComfyUI Node
llama.cpp Structured Output
Builds a JSON Schema, JSON object, or GBNF grammar constraint for ADV++ generation.
llama.cpp Structured Output
- structured_output
◄modejson_schema►
◄constraint►
◄enabletrue►
◄schema_namecomfyui_output►
◄stricttrue►
CategoryLlamaCpp
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| mode | COMBO | json_schema | Constraint type to send to llama-server. |
| constraint | STRING | JSON schema object, or GBNF grammar for grammar mode. | |
| enable | BOOLEAN | true | Enable or bypass this constraint. |
| schema_nameopt | STRING | comfyui_output | OpenAI JSON schema name. |
| strictopt | BOOLEAN | true | Request strict JSON schema adherence. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| structured_output | STRUCTURED_OUTPUT | Validated structured-output constraint for an ADV++ Prompt node. |