DataPart

@Serializable
@SerialName(value = "data")
data class DataPart(val id: String, val name: String, val data: JsonElement) : Part(source)

Structured, app-defined data streamed by the agent — the AI SDK data-* parts (e.g. data-plan, data-task). A later part with the same id replaces the earlier one, so agents can update it live.

Constructors

Link copied to clipboard
constructor(id: String, name: String, data: JsonElement)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val data: JsonElement
Link copied to clipboard
open override val id: String
Link copied to clipboard
Link copied to clipboard

the type without the data- prefix.