Skip to content

CheckpointSaverOptions

Defined in: packages/core/src/history/checkpointSaver.ts:312

Options for openCheckpointSaver.

optional onWriteFailure?: (error) => void

Defined in: packages/core/src/history/checkpointSaver.ts:319

Called when a put / putWrites could not reach the database. The handler’s job is to tell the user and to record that this conversation can no longer be resumed. Called ONCE, on the first failed write: from then on the saver writes nothing to the database and the session runs from memory, so there is no later failure to report.

unknown

void