UiRenderTool class

The agent-facing ui.render tool (spec FR-001).

Constructors

UiRenderTool({VocabularyNarrowingConfig narrowingConfig = VocabularyNarrowingConfig.empty, UiVocabularySchema baseSchema = UiVocabularySchema.base, UiEventChannel? channel, MissionTraceRecorder? recorder, PolicyGate? policyGate, ActionRouter? actionRouter, String idGenerator()?})

Properties

actionRouter → ActionRouter
Action router delivering semantic actions back to the agent (FR-004).
final
activeMissionType → String?
Active mission type (read-only).
no setter
activeView → RenderedView?
Most-recently-rendered active view (or null).
no setter
baseSchema → UiVocabularySchema
Base schema used when no narrowing applies.
final
channel → UiEventChannel
Streaming event channel (FR-003).
final
hashCode → int
The hash code for this object.
no setterinherited
narrowingConfig → VocabularyNarrowingConfig
Active vocabulary narrowing config (FR-005).
final
policyGate → PolicyGate
Policy gate for confirm-tier actions (FR-006).
final
recorder → MissionTraceRecorder
Mission trace recorder (FR-008).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
views → Iterable<RenderedView>
All currently-known views (active and superseded).
no setter

Methods

activateMission(String? missionType) → void
Activate a mission (sets the mission type for vocabulary narrowing). Passing null deactivates the mission (subsequent render calls throw NoActiveMissionException).
dispose() → void
Tear down the tool, dropping any undecided confirm-tier decisions so a finished or abandoned mission does not leak pending decisions (FR-006).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(UiNode tree, {String? replaceViewId, String? hint}) → RenderedView
Render a component tree (FR-001).
renderProgressive(Stream<UiNode> partials, {String? hint}) → Stream<RenderedView>
Render a component tree progressively via a stream of partial trees (FR-003 acceptance 3 — "intermediate nodes arrive before the full tree completes").
routeInteraction(SemanticAction action) → Future<SemanticAction?>
Route a user interaction captured on a rendered tree back to the agent (FR-004). If the action is confirm-tier, it is intercepted by the PolicyGate (FR-006) and only delivered after approval.
toString() → String
A string representation of this object.
inherited
view(String viewId) → RenderedView?
Look up a rendered view by id (returns null if unknown or no longer active).

Operators

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