bodhi-realtime-agent / BackgroundAgentSessionView
Interface: BackgroundAgentSessionView
Defined in: src/agent/background-agent.ts:75
Read-only view of the live session state, threaded into BackgroundAgents via BackgroundAgentContext.session. The host actor maintains an internal cache (mailbox-serialized) updated on every lifecycle envelope; agents read the current values via these getters without reaching across actor boundaries.
Properties
activeAgent
readonlyactiveAgent:string
Defined in: src/agent/background-agent.ts:83
Name of the currently active main agent (updates on agent.transfer_completed).
phase
readonlyphase:"closed"|"created"|"connecting"|"active"|"reconnecting"|"transferring"
Defined in: src/agent/background-agent.ts:80
One of the SessionActor phases. Most agents only care about whether the session is 'active', 'reconnecting', or 'closed'.