# Interface CollaborationSessionOptions

Options for creating a CollaborationSession.

interface CollaborationSessionOptions {
logger?: ILogger;
onStatusChange?: (status: SessionStatus) => void;
onMessage?: (message: CollaborationMessage) => void;
roleResolver?: (expertId: string) => AgentRole;
eventBus?: IEventBus;
}

- Defined in packages/nexus-agents/src/agents/collaboration/collaboration-session-helpers.ts:19

##### Index

### Properties

logger?
onStatusChange?
onMessage?
roleResolver?
eventBus?

## Properties

### `Optional` logger

logger?: ILogger

- Defined in packages/nexus-agents/src/agents/collaboration/collaboration-session-helpers.ts:20

### `Optional` onStatusChange

onStatusChange?: (status: SessionStatus) => void

- Defined in packages/nexus-agents/src/agents/collaboration/collaboration-session-helpers.ts:21

### `Optional` onMessage

onMessage?: (message: CollaborationMessage) => void

- Defined in packages/nexus-agents/src/agents/collaboration/collaboration-session-helpers.ts:22

### `Optional` roleResolver

roleResolver?: (expertId: string) => AgentRole

- Defined in packages/nexus-agents/src/agents/collaboration/collaboration-session-helpers.ts:23

### `Optional` eventBus

eventBus?: IEventBus

Optional event bus for cross-session event publishing

- Defined in packages/nexus-agents/src/agents/collaboration/collaboration-session-helpers.ts:25