StructuredOutput class
Schema constraint applied to a generation's output.
Constructors
- StructuredOutput({required String schema, bool strict = true})
-
Constrain output to
schema.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- schema → String
-
JSON Schema the output must satisfy, as raw JSON Schema text.
final
- strict → bool
-
True rejects output that does not validate instead of repairing it.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toProto(
) → StructuredOutputOptions - Build the generated structured-output options.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited