Skip to main content

check_structured_output

Function check_structured_output 

Source
pub fn check_structured_output(
    config: &Config,
    model_id: &str,
) -> Result<CheckOutcome, CloudflareError>
Expand description

Check (d): structured output. Acceptance (feedback 02 50-structured-output): the completion content parses as a JSON object with sentinel exactly CF_HERMES_OK. Prompt-only constraint - no response_format parameter, so the model must honor a natural-language shape instruction.