ActionSchema class

JSON Schema (draft-07) constraining a single model decision.

Composed fresh on every turn from the merged tool list (PRD §16.2): action is a oneOf discriminated union over each tool's name and inputSchema. Schema-violating output throws SchemaRejection; the loop driver retries once per PRD §17.

Constructors

ActionSchema.fromJson(Map<String, dynamic> root)
Reconstructs a transported schema and its draft-07 validator.
factory
ActionSchema.fromToolList(List<ToolDescriptor> tools)
Compose a fresh schema from the merged tool list.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
jsonSchema Map<String, dynamic>
The composed JSON Schema document.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns the composed JSON Schema document unchanged.
toString() String
A string representation of this object.
inherited
validate(String rawOutput) Map<String, dynamic>
Decode and validate a raw model output against this schema.

Operators

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