SemanticAction class
A user interaction captured from a rendered view (spec Key Entities).
Constructors
-
SemanticAction({required String actionId, Map<
String, Object?> args = const <String, Object?>{}, ActionTier tier = ActionTier.safe, String? viewId}) -
const
Properties
- actionId → String
-
Identifier declared by the agent on the node (e.g.
select_offer_42).final -
args
→ Map<
String, Object?> -
Arbitrary arguments the host UI captured (e.g. the selected option's
value). Free-form so different component types can carry different
payloads.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tier → ActionTier
-
Risk tier — gates whether this action must pass through the PolicyGate
(FR-006).
final
- viewId → String?
-
View id of the rendered tree that emitted this action. Set by the
UiRenderToolwhen delivering the action so the agent knows which view to update.final
Methods
-
copyWith(
{String? actionId, Map< String, Object?> ? args, ActionTier? tier, String? viewId}) → SemanticAction -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited