aidputils.agents.toolkit.memory_helper¶
- class aidputils.agents.toolkit.memory_helper.AbstractCheckpointSaver[source]¶
Bases:
ABCLocal abstract interface for Oracle Memory checkpointers.
This is not LangGraph’s BaseCheckpointSaver; it is a project-level interface that combines the public surface area of: - ProxyCheckpointClient (sync) - AsyncProxyCheckpointClient (async)
It exists so code in this repo can depend on a single type that supports either sync or async execution.
- get_tuple(config: Dict[str, Any], kwargs: Dict[str, Any] | None = None) Dict[str, Any] | None[source]¶
- list(config: Dict[str, Any] | None, filter: Dict[str, Any] | None = None, before: Dict[str, Any] | None = None, limit: int | None = None, kwargs: Dict[str, Any] | None = None) List[Dict[str, Any]][source]¶
- put(config: Dict[str, Any], checkpoint: Dict[str, Any], metadata: Dict[str, Any], new_versions: Dict[str, Any], kwargs: Dict[str, Any] | None = None) Dict[str, Any][source]¶
- async aget_tuple(config: Dict[str, Any], kwargs: Dict[str, Any] | None = None) Dict[str, Any] | None[source]¶
- async alist(config: Dict[str, Any] | None, filter: Dict[str, Any] | None = None, before: Dict[str, Any] | None = None, limit: int | None = None, kwargs: Dict[str, Any] | None = None) List[Dict[str, Any]][source]¶
- class aidputils.agents.toolkit.memory_helper.InMemoryCheckpointSaver(*args: Any, **kwargs: Any)[source]¶
Bases:
InMemorySaver,AbstractCheckpointSaverIn-memory checkpointer that satisfies our project-level AbstractCheckpointSaver.
This is mainly useful for local/dev/test runs where you want LangGraph-compatible checkpointing without a backing memory server.
- class aidputils.agents.toolkit.memory_helper.CheckpointerType(*values)[source]¶
Bases:
StrEnum- SYNC = 'SYNC'¶
- ASYNC = 'ASYNC'¶
- IN_MEMORY = 'IN_MEMORY'¶
- aidputils.agents.toolkit.memory_helper.create_checkpoint_saver(agent_name: str, platform_name: str = 'langgraph', checkpointer_type: str = 'ASYNC', base_url: str = 'http://localhost:21100/') AbstractCheckpointSaver | None[source]¶