A2uiOptions class base

Configuration for the a2ui middleware.

Constructors

A2uiOptions({String? catalog, String? instructions, String? validate, String? version, bool? repair})
A2uiOptions.fromJson(Map<String, dynamic> json)
Creates a A2uiOptions from a JSON map.
factory

Properties

catalog ↔ String?
The id of the catalog describing what the agent may render. Defaults to 'basic' (the bundled basic catalog). Register additional catalogs with loadCatalog(ai, id: ..., catalog: ...) and reference them by id.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
instructions ↔ String?
Where to inject the catalog's capabilities. 'system' (default) appends A2UI instructions to the system prompt; 'none' injects nothing (useful if you supply your own instructions).
getter/setter pair
repair ↔ bool?
Whether to ask the model to fix a block that failed to compile. Defaults to true.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
validate ↔ String?
What to do with a block that fails to compile or validate. 'warn' (default) logs a warning and drops the block, keeping the rest of the turn alive; 'strict' throws (best during development); 'off' skips the renderer-side checks (dangling references, missing root) and drops a block that does not compile without logging a warning.
getter/setter pair
version ↔ String?
The A2UI protocol version to emit. Only 'v0.9' (the default) is supported.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes this A2uiOptions to a JSON map.
toString() → String
A string representation of this object.
override

Operators

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

Constants

$schema → const SchemanticType<A2uiOptions>
The JSON schema and type descriptor for A2uiOptions.