Constraint class final

The LLGuidance constraint of a conversation: a JSON Schema or a regex.

Annotations
  • @immutable

Constructors

Constraint.jsonSchema(String text)
const
Constraint.regex(String text)
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
regex → bool
Whether text is a regex rather than a JSON Schema.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → String
The schema (JSON) or the pattern.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override