Skip to content

ConversationEventLog

Records conversation events into session working memory and manages checkpointing. Shared by Runtime and VoiceEngine.

checkpoint(session): Promise<void>;

Persist the session as a checkpoint (called after significant events).

Parameter Type

session

Session

Promise<void>


cleanup(session): void;

Clean up transient state (e.g., accumulated assistant text) from the session.

Parameter Type

session

Session

void


record(context, part): void;

Record a stream part into the session’s runtime event log. Text-deltas are accumulated; terminal events flush the assistant text.

Parameter Type

context

RunContext

part

HarnessStreamPart

void


shouldCheckpoint(part): boolean;

Whether a given stream part type should trigger a checkpoint save.

Parameter Type

part

HarnessStreamPart

boolean