Skip to main content
All Python modules · Import and compatibility guidance

Exports

CustomStorage

Lifecycle-owned application storage exposed by a stable authored name.

CustomStorage.start

Open the underlying storage resource.

CustomStorage.close

Release the underlying storage resource.

MemoryStore

Process-local session, checkpoint, and continuation store with atomic CAS.
Fields (— means no declared default):

MemoryStore.start

Reject reopening because closed development state is intentionally lost.

MemoryStore.create

Create one process-local tenant-scoped session.

MemoryStore.get

Read one process-local tenant-scoped session.

MemoryStore.list

List an ordered keyset page without materializing unrelated users.

MemoryStore.update

Merge a state delta into a process-local session.

MemoryStore.delete

Delete one process-local session after its active lease exits.

MemoryStore.acquire

Hold exclusive access to one process-local session.

MemoryStore.close

Close both session and checkpoint sides of the shared store.

MemoryStore.as_langgraph_checkpointer

Return one stable native saver for advanced LangGraph construction.

MemoryStore.put_a2a_task

Upsert one owner-scoped snapshot without allowing context reassignment.

MemoryStore.get_a2a_task

Read one snapshot only through its complete ownership key.

MemoryStore.list_a2a_tasks

Return a stable inclusive-cursor page for the process-local backend.

MemoryStore.delete_a2a_task

Delete exactly one owner-scoped A2A snapshot.

MemoryStore.begin_run

Claim the session for one idempotent invocation run.

MemoryStore.get_run

Read one process-local run through its complete ownership scope.

MemoryStore.get_checkpoint

Load an exact checkpoint or the newest checkpoint in a namespace.

MemoryStore.list_checkpoints

Yield a bounded newest-first checkpoint history.

MemoryStore.put

Persist a checkpoint only when its expected revision still matches.

MemoryStore.put_writes

Add pending writes idempotently by task and channel.

MemoryStore.get_writes

Read process-local pending writes for one owned checkpoint.

MemoryStore.get_writes_batch

Load writes for several checkpoints without per-checkpoint calls.

MemoryStore.transition

Apply one valid compare-and-swap run-state transition.

MemoryStore.suspend_continuation

Atomically register provider work and move its owned run to waiting.

MemoryStore.get_continuation

Return one record only when every run ownership field matches.

MemoryStore.get_provider_continuation

Return an exact continuation together with its provider external ID.

MemoryStore.get_continuation_by_external_id

Resolve one provider identity through the same indexed ownership key.

MemoryStore.list_pending_continuations

Return a bounded provider page for local reconciliation.

MemoryStore.resolve_continuation

Commit a provider result or failure with one status compare-and-swap.

MemoryStore.cancel_continuation

Fail one pending continuation and cancel its exact waiting run.

MemoryStore.claim_continuation

Claim an outcome and return the waiting run to running atomically.

MemoryStore.arm_continuation

Arm a provider wait after its native suspension is checkpointed.

MemoryStore.delete_run

Delete a run and every private checkpoint owned by it.

PostgresStore

Durable combined store using asyncpg and one Harnest-owned schema. The driver is imported lazily by start, keeping module discovery independent from database connectivity.
Fields (— means no declared default):

PostgresStore.as_langgraph_checkpointer

Return one stable native saver for advanced LangGraph construction.

PostgresStore.start

Open the pool and create or validate the Harnest-owned schema.

PostgresStore.create

Create one tenant-scoped session without overwriting conflicts.

PostgresStore.get

Read one tenant-scoped session from PostgreSQL.

PostgresStore.list

Apply tenant filtering and optional keyset pagination in PostgreSQL.

PostgresStore.put_a2a_task

Upsert an owner-scoped protobuf snapshot with immutable context.

PostgresStore.get_a2a_task

Read one A2A task using its complete application and owner scope.

PostgresStore.list_a2a_tasks

Apply A2A filters, ordering, and keyset pagination in PostgreSQL.

PostgresStore.delete_a2a_task

Delete one exact A2A owner record without revealing foreign tasks.

PostgresStore.update

Atomically merge a state delta in PostgreSQL.

PostgresStore.delete

Delete one tenant-scoped session and report whether it existed.

PostgresStore.acquire

Hold a cross-replica advisory lock for one session execution.

PostgresStore.begin_run

Create an idempotent run while allowing one active run per session.

PostgresStore.get_run

Read one PostgreSQL checkpoint run through its ownership scope.

PostgresStore.get_checkpoint

Load an exact or newest checkpoint entirely in PostgreSQL.

PostgresStore.list_checkpoints

Push checkpoint filtering, ordering, cursor, and limit into SQL.

PostgresStore.put

Allocate a serialized revision and write only on matching CAS state.

PostgresStore.put_writes

Insert pending writes as one set and ignore existing identities.

PostgresStore.get_writes

Read pending writes for one owned PostgreSQL checkpoint.

PostgresStore.get_writes_batch

Fetch pending writes for several checkpoints in one query.

PostgresStore.suspend_continuation

Atomically persist a provider wait and mark its owned run waiting.

PostgresStore.get_continuation

Load one continuation with its complete ownership predicate in SQL.

PostgresStore.get_provider_continuation

Load one exact provider wait and its private external identity.

PostgresStore.get_continuation_by_external_id

Use the unique provider key so replica callbacks never scan waits.

PostgresStore.list_pending_continuations

Push provider reconciliation filtering and pagination into PostgreSQL.

PostgresStore.resolve_continuation

Commit one validated provider outcome with an indexed SQL CAS.

PostgresStore.claim_continuation

Claim an outcome and resume its run in one PostgreSQL statement.

PostgresStore.cancel_continuation

Fail a pending continuation and cancel its waiting run atomically.

PostgresStore.arm_continuation

Arm one wait with a SQL CAS after native checkpoint persistence.

PostgresStore.transition

Apply a validated status transition with one SQL compare-and-swap.

PostgresStore.delete_run

Delete a run and cascade its private checkpoint data.

PostgresStore.close

Close only pools created and owned by this store.

RedisStore

Combined Redis store with atomic CAS and renewable execution leases. Production durability depends on Redis persistence, replication, and failover configuration; Postgres remains the reference durable backend.
Fields (— means no declared default):

RedisStore.as_langgraph_checkpointer

Return one stable native saver for advanced LangGraph construction.

RedisStore.start

Open the client and establish the compatible schema marker.

RedisStore.create

Create one tenant-scoped session with an atomic Lua mutation.

RedisStore.get

Read one tenant-scoped session from Redis.

RedisStore.list

Read one lexicographically ordered keyset page with one MGET.

RedisStore.put_a2a_task

Atomically update one A2A record and all of its query indexes.

RedisStore.get_a2a_task

Read one task through its digested application and owner key.

RedisStore.list_a2a_tasks

Use one prefiltered sorted index and one batched record read.

RedisStore.delete_a2a_task

Delete a record and every selected-list index with optimistic CAS.

RedisStore.update

Atomically merge state while preserving session expiry policy.

RedisStore.delete

Delete a session and its user index entry atomically.

RedisStore.acquire

Hold and renew a token-bound distributed lease for one execution.

RedisStore.begin_run

Create an idempotent run while allowing one active run per session.

RedisStore.get_run

Read one Redis checkpoint run through its ownership scope.

RedisStore.get_checkpoint

Resolve an exact or newest checkpoint through its Redis index.

RedisStore.list_checkpoints

Read bounded checkpoint history from sorted-set indexes.

RedisStore.put

Persist checkpoint data and revision indexes with one Lua CAS.

RedisStore.put_writes

Add pending writes idempotently with one Lua operation.

RedisStore.get_writes

Read pending writes for one owned Redis checkpoint.

RedisStore.get_writes_batch

Fetch several pending-write hashes in one Redis round trip.

RedisStore.suspend_continuation

Atomically persist a provider wait and move its run to waiting.

RedisStore.get_continuation

Read one private record only when all ownership fields match.

RedisStore.get_provider_continuation

Load an exact provider envelope only while its owned run exists.

RedisStore.get_continuation_by_external_id

Resolve a callback through its provider-owned Redis index.

RedisStore.list_pending_continuations

Load one indexed provider page with a single batched value read.

RedisStore.resolve_continuation

Resolve an indexed provider callback with an atomic status CAS.

RedisStore.claim_continuation

Claim a provider outcome and resume its run with one Lua CAS.

RedisStore.cancel_continuation

Cancel one exact waiting run and fail its continuation in one script.

RedisStore.arm_continuation

Arm one persisted wait after the framework commits its checkpoint.

RedisStore.transition

Apply one status compare-and-swap and release terminal ownership.

RedisStore.delete_run

Make run data unreachable immediately and let private blobs expire.

RedisStore.close

Close only clients created and owned by this store.

StorageRegistry

One normalized storage boundary consumed by compiler and runtime adapters.
Fields (— means no declared default):

StorageRegistry.default_assets

Return the explicitly named default without choosing by insertion order.

StorageRegistry.owned_resources

Return each lifecycle-owned object once in deterministic role order.