AIReasoningPart

data class AIReasoningPart(val id: String, val status: AIReasoningPart.Status, val summary: String? = null, val preview: String? = null, val durationMs: Int? = null)

A round of the model's reasoning.

Parameters

id

The step's stable identity.

status

Where the round is. Defaults to Status.Completed when the agent sends none.

summary

A one-line summary of the reasoning, once it is done.

preview

A capped excerpt: the latest thoughts while streaming, the opening once done. The full reasoning, when an app has it, arrives separately.

durationMs

How long the model thought, in milliseconds.

Constructors

Link copied to clipboard
constructor(id: String, status: AIReasoningPart.Status, summary: String? = null, preview: String? = null, durationMs: Int? = null)

Types

Link copied to clipboard
value class Status(val rawValue: String)

Where a round of reasoning is. An open set: compare against the statuses you know.

Properties

Link copied to clipboard
Link copied to clipboard

How long the model thought, in seconds.

Link copied to clipboard
val id: String
Link copied to clipboard

Whether the model is still thinking.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard