Skip to content

Session

optional activeAgentId?: string;

agentStates: Record<string, AgentState>;

channelId: ChannelId;

conversationId: string;

createdAt: Date;

currentAgent: string;

handoffHistory: HandoffRecord[];

id: string;

messages: ModelMessage[];

optional metadata?: SessionMetadata;

optional state?: Record<string, unknown>;

updatedAt: Date;

optional userId?: string;

optional version?: number;

Optimistic-concurrency version; must match the stored row on save (C2 CAS).


workingMemory: Record<string, unknown>;