# Function countActiveSessions

- countActiveSessions(sessionMetrics: Iterable<ObserverSessionMetrics>): number

  Counts active sessions (sessions without a completedAt timestamp).

  #### Parameters

  - sessionMetrics: Iterable<ObserverSessionMetrics>

    Iterable of session metrics

  #### Returns number

  The count of active sessions

  - Defined in packages/nexus-agents/src/agents/observability/orchestration-observer-helpers.ts:214