AgentProgress

@Immutable
data class AgentProgress(val phase: AgentProgress.Phase, val tool: ToolPart? = null, val steps: Int = 0, val plan: List<WorkflowStep> = emptyList(), val reply: String = "", val error: String? = null)(source)

Where the agent's run stands, for surfaces outside the chat (notifications, widgets, a watch): derived from the conversation's model alone, whatever protocol produced it.

Constructors

Link copied to clipboard
constructor(phase: AgentProgress.Phase, tool: ToolPart? = null, steps: Int = 0, plan: List<WorkflowStep> = emptyList(), reply: String = "", error: String? = null)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard

The run is going on (or waiting on the user).

Link copied to clipboard
Link copied to clipboard

the plan the agent keeps (a plan data part, or plan in shared state), if any.

Link copied to clipboard
Link copied to clipboard

the reply's text so far.

Link copied to clipboard
val steps: Int

the reply's tool calls so far.

Link copied to clipboard

the step running (or waiting for approval).