Skip to main content

Module runtime

Module runtime 

Source
Expand description

Runtime status - mode/model state, available models/commands/agents, rate-limit views, retry classification, session status, terminal reason, monitor records. Wire-shape state the agent ↔ UI channel passes around to describe “what’s the live session doing right now”.

Re-exports§

use serde::Deserialize; 🔒
use serde::Deserialize; 🔒
use serde::Serialize; 🔒
use serde::Serialize; 🔒
use crate::messages::RateLimitStatus; 🔒
use crate::messages::TaskUsage; 🔒

Structs§

ApiRetryUpdate
AvailableAgent
AvailableCommand
AvailableModel
CurrentModel
ModeInfo
ModeState
MonitorRecord
One Monitor this session has running or has finished: the tool call that started it, the CLI’s task id once the wire names one, and where it got to.
RateLimitUpdate
SessionTurnState
Per-session SDK turn state - model-resolution cache, mode capability state, MCP per-server cooldowns, and the auth/error flags that survive across messages. Held authoritatively by forge-workspace; a view projects from there.
SettingsParseErrorUpdate
SubagentCall
One call in a card’s tail: the tool, what it named, and how it ended.
SubagentCard
One sub-agent instance as a view draws its card: a Task/Agent dispatch joined with the frames that ran under it.

Enums§

ApiRetryError
EffortLevel
MachineTurn
The machine turn running on a seat, which takes its composer away.
MonitorStatus
Lifecycle status of a Monitor (Monitor tool_use).
RuntimeSessionState
SessionLifecycleState
Lifecycle state of a session. forge-workspace derives one per session for the roster a view reads, and one per worker for WorkerStatus::activity. The two derivations are independent and need not agree.
SubagentCallStatus
How one of an instance’s calls ended.
TerminalReason
Why a turn ended - surfaced by AgentEvent::TurnComplete / TurnError to the UI for status-line classification.