ReasoningPart

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.

Separate from TextPart rather than a flag on it: the two are usually styled differently, are often collapsed by default, and a renderer that treated reasoning as text would put an agent's private deliberation in the same visual place as its answer.

Constructors

Link copied to clipboard
constructor(id: String, text: String, messageId: String, title: String? = null, streaming: Boolean = false, encryptedValues: List<EncryptedReasoningValue> = emptyList())

Properties

Link copied to clipboard

opaque blobs from REASONING_ENCRYPTED_VALUE. They are not renderable and are kept only so that a client which must echo them back to the agent still can.

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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

the value the deprecated THINKING_START carried, when it carried one. REASONING_START -- the spelling that replaced it -- has no title field at all, so a part built from the current events is always untitled.