mistralrs::llguidance::ffi

Function llg_new_constraint

pub extern "C" fn llg_new_constraint(
    init: &LlgConstraintInit,
    grammar_json: *const i8,
) -> *mut LlgConstraint
Expand description

Create a new constraint from a grammar JSON string Always returns a non-null value. Call llg_get_error() on the result to check for errors.