Package-level declarations
Types
Link copied to clipboard
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.
Link copied to clipboard
An opaque REASONING_ENCRYPTED_VALUE payload, kept verbatim for echoing back to the agent.
Link copied to clipboard
data class ReasoningPart(val id: String, val text: String, val messageId: String, val title: String? = null, val streaming: Boolean = false, val encryptedValues: List<EncryptedReasoningValue> = emptyList()) : UiPart
The agent's chain of thought.
Link copied to clipboard
data class ToolCallPart(val id: String, val toolCallId: String, val name: String, val arguments: String = "", val parsedArguments: JsonElement? = null, val status: ToolCallStatus = ToolCallStatus.STREAMING_ARGUMENTS, val result: String? = null, val error: String? = null, val parentMessageId: String? = null, val encryptedValue: String? = null) : UiPart
A tool the agent asked for, and how far it has got.
Link copied to clipboard
How far a ToolCallPart has got.
Link copied to clipboard
Link copied to clipboard
data class UiResumeEntry(val interruptId: String, val status: UiResumeStatus, val payload: JsonElement? = null)
The client's answer to one UiInterrupt, as the next run carries it.
Link copied to clipboard
How a UiResumeEntry disposes of its interrupt.
Link copied to clipboard
Properties
Link copied to clipboard
What the thread is waiting on: the interrupts of a RunState.Finished that stopped to ask, and nothing for any other state. A renderer that draws the questions asks this rather than casting.