A2uiClientDataModel


class A2uiClientDataModel


Represents the client data model synchronization payload sent to the agent.

This payload captures the current state of the data tree for active surfaces with sendDataModel = true and is automatically attached to outbound client event messages.

Summary

Public constructors

Public functions

open operator Boolean
equals(other: Any?)
open Int
Map<StringMap<StringAny?>>

Converts this data model object to the A2UI JSON-compatible Map structure.

open String

Public properties

Map<StringAny?>

A map where keys are surface IDs and values are the complete, current data model root for that surface.

Public constructors

A2uiClientDataModel

A2uiClientDataModel(surfaces: Map<StringAny?>)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toPayloadMap

Added in 1.0.0-alpha01
fun toPayloadMap(): Map<StringMap<StringAny?>>

Converts this data model object to the A2UI JSON-compatible Map structure.

toString

open fun toString(): String

Public properties

surfaces

Added in 1.0.0-alpha01
val surfacesMap<StringAny?>

A map where keys are surface IDs and values are the complete, current data model root for that surface.