StructuredOutputMode class
How commons applies StructuredOutputOptions on the ordinary LLM generate path. Platform SDKs must not invent a second policy.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
This enum's name, as specified in the .proto file.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → int
-
This enum's integer value, as specified in the .proto file.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns this enum's
nameor thevalueif names are not represented.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
valueOf(
int value) → StructuredOutputMode?
Constants
- STRUCTURED_OUTPUT_MODE_CONSTRAINED → const StructuredOutputMode
- Compile schema→GBNF (or honor grammar/regex) and constrain decoding.
- STRUCTURED_OUTPUT_MODE_REPAIR → const StructuredOutputMode
- Constrained (when a decoder arm is present), then one repair retry if the first answer fails schema validation.
- STRUCTURED_OUTPUT_MODE_UNSPECIFIED → const StructuredOutputMode
- STRUCTURED_OUTPUT_MODE_VALIDATION_ONLY → const StructuredOutputMode
- Do not constrain decoding; validate the free-text result against schema.
-
values
→ const List<
StructuredOutputMode>