# Type Alias OrchestrationObserverEvent

OrchestrationObserverEvent:
| {
type: "agent_state_changed";
agentId: string;
state: ObserverAgentState;
previousState: ObserverAgentState;
}
| { type: "routing_decision"; decision: ObserverRoutingDecision }
| { type: "session_started"; sessionId: string; pattern: string }
| {
type: "session_completed";
sessionId: string;
success: boolean;
durationMs: number;
}
| { type: "metrics_updated"; metrics: OrchestrationStats }
| { type: "error"; source: string; error: string }

OrchestrationObserver event types for visualization hooks.

- Defined in packages/nexus-agents/src/agents/observability/orchestration-observer-types.ts:160