McpAppModelContext

data class McpAppModelContext(val toolCallId: String, val app: String, val content: JsonArray?, val structuredContent: JsonElement?)(source)

What a view wants the model to know (ui/update-model-context): its latest content blocks and structuredContent. Attach toDataPart to the next user turn; each view's newest replaces its previous one.

Constructors

Link copied to clipboard
constructor(toolCallId: String, app: String, content: JsonArray?, structuredContent: JsonElement?)

Properties

Link copied to clipboard
val app: String
Link copied to clipboard
val content: JsonArray?
Link copied to clipboard
val structuredContent: JsonElement?
Link copied to clipboard

The text for the model: the text blocks, else the structured content as JSON.

Link copied to clipboard

Functions

Link copied to clipboard

As a DataPart.MODEL_CONTEXT part for the next user turn.