mistralrs::llguidance::ffi

Function llg_new_constraint_json

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

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