Function llg_new_constraint_any
pub extern "C" fn llg_new_constraint_any(
init: &LlgConstraintInit,
constraint_type: *const i8,
data: *const i8,
) -> *mut LlgConstraint
Expand description
Create a new constraint with specified type Type can be one of “regex”, “json_schema” (or “json”), “lark”, “llguidance” (or “guidance”) Always returns a non-null value. Call llg_get_error() on the result to check for errors.