ActivityPart

data class ActivityPart(val id: String, val messageId: String, val activityType: String, val content: JsonElement) : UiPart

Structured content that is not text and not a tool call: an ACTIVITY_SNAPSHOT stream.

Modelled on activityType rather than as a purpose-built A2UI part, because that is the shape the protocol has. a2ui-surface is one value of the field; a client that understands another value can render it through the same part without this module learning about it. Interpreting an A2UI payload is the agui-a2ui module's job.

Constructors

Link copied to clipboard
constructor(id: String, messageId: String, activityType: String, content: JsonElement)

Properties

Link copied to clipboard
Link copied to clipboard
val content: JsonElement

the current content, with every ACTIVITY_DELTA patch already applied.

Link copied to clipboard
open override val id: String

Stable across the whole life of the part, including while it streams.

Link copied to clipboard