Skip to content

CheckpointStore

autogen.beta.task.CheckpointStore #

Bases: Protocol

Persistence Protocol for owner-supplied task resume state.

Implementations write opaque JSON-serialisable dicts keyed by task_id and read them back. The framework never inspects the payload — the owner picks what to checkpoint, when, and how to interpret it on resume. read returns None if no checkpoint has been written for the given id.

Networked agents typically use HubBackedCheckpointStore (in autogen.beta.network.client.checkpoint) which delegates to the hub. Standalone agents may supply any store satisfying this Protocol or omit checkpointing entirely.

write async #

write(task_id, state)
Source code in autogen/beta/task.py
async def write(self, task_id: str, state: dict[str, Any]) -> None: ...

read async #

read(task_id)
Source code in autogen/beta/task.py
async def read(self, task_id: str) -> dict[str, Any] | None: ...