Interface ChannelSession

Active session between an agent and a remote conversation.

interface ChannelSession {
    sessionId: string;
    seedId: string;
    platform: ChannelPlatform;
    conversationId: string;
    conversationType: ConversationType;
    remoteUser?: RemoteUser;
    lastMessageAt: string;
    messageCount: number;
    isActive: boolean;
    context?: Record<string, unknown>;
}

Properties

sessionId: string

Unique session ID.

seedId: string

Agent seed ID.

platform: ChannelPlatform

Platform.

conversationId: string

Platform-native conversation ID.

conversationType: ConversationType

Conversation type.

remoteUser?: RemoteUser

Remote user (for DMs).

lastMessageAt: string

Last message timestamp.

messageCount: number

Total messages exchanged.

isActive: boolean

Whether this session is active.

context?: Record<string, unknown>

Session context data (for multi-turn state).