ConversationEventLog
Records conversation events into session working memory and manages checkpointing. Shared by Runtime and VoiceEngine.
Methods
Section titled “Methods”checkpoint()
Section titled “checkpoint()”checkpoint(session): Promise<void>;Persist the session as a checkpoint (called after significant events).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
Returns
Section titled “Returns”Promise<void>
cleanup()
Section titled “cleanup()”cleanup(session): void;Clean up transient state (e.g., accumulated assistant text) from the session.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
Returns
Section titled “Returns”void
record()
Section titled “record()”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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
|
Returns
Section titled “Returns”void
shouldCheckpoint()
Section titled “shouldCheckpoint()”shouldCheckpoint(part): boolean;Whether a given stream part type should trigger a checkpoint save.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
Returns
Section titled “Returns”boolean