A2uiClientAction class
A client -> server user action reported by a rendered surface (e.g. a button press). Sent back to the agent as the next turn's input.
Constructors
-
A2uiClientAction({required String name, required String surfaceId, required String sourceComponentId, required String timestamp, Map<
String, dynamic> context = const {}}) -
Creates an A2uiClientAction.
const
-
A2uiClientAction.fromJson(Map<
String, dynamic> json) -
Builds an A2uiClientAction from its raw JSON shape.
factory
Properties
-
context
→ Map<
String, dynamic> -
The action's context payload (e.g. resolved data-model bindings).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The event name declared by the interactive component's
action.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceComponentId → String
-
The id of the component that fired the action.
final
- surfaceId → String
-
The id of the surface the action originated from.
final
- timestamp → String
-
An ISO-8601 timestamp of when the action fired.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serializes this action to its raw JSON shape.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited