# Function extractSessionId

- extractSessionId(event: DomainEvent, payload: Record<string, unknown>): string

  Extracts session ID from event object or payload.

  #### Parameters

  - event: DomainEvent

    The domain event

  - payload: Record<string, unknown>

    The event payload

  #### Returns string

  The session ID or empty string if not found

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