A2uiAction

data class A2uiAction(val surfaceId: String, val name: String, val sourceComponentId: String, val context: JsonObject, val userMessage: String? = null, val timestamp: String = Instant.now().toString(), val dataModel: JsonElement? = null)(source)

A user action on a surface, as the A2UI renderer-to-agent action message (toMessage).

Constructors

Link copied to clipboard
constructor(surfaceId: String, name: String, sourceComponentId: String, context: JsonObject, userMessage: String? = null, timestamp: String = Instant.now().toString(), dataModel: JsonElement? = null)

Properties

Link copied to clipboard
val context: JsonObject
Link copied to clipboard
val dataModel: JsonElement?

The surface's data model when it asked for it (sendDataModel); for the transport's metadata.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

This action as the data parts of a user turn: the A2UI action message (DataPart.A2UI) and, when the surface asked for it, its data model (DataPart.A2UI_DATA_MODEL).

Link copied to clipboard
fun toMessage(): JsonObject