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

Exports

PostgresMemoryStore

Persist deliberate memories in a Harnest-owned table in your database.

PostgresMemoryStore.delete_all

Erase one explicit namespace through trusted application code only.

PostgresMemoryStore.delete_user

Erase an explicitly authorized owner without registering any endpoint.

PostgresMemoryStore.purge_expired

Sweep a bounded key page without exposing another user’s collection.

PostgresMemoryStore.put

Validate before atomically persisting a deliberate memory write.

PostgresMemoryStore.get

Read only an explicitly scoped live record.

PostgresMemoryStore.list

Page records without loading an unbounded provider collection.
Retrieve explicit literal text matches without model or embedding calls.

PostgresMemoryStore.delete

Remove memory and its indexes with an optional atomic revision fence.

PostgresMemoryStore.start

Open an owned pool and serialize schema setup across replicas.

PostgresMemoryStore.close

Close only this provider’s connection pool.

PostgresStore

Store sessions, checkpoints, continuations, tasks and cron together.
Fields (— means no declared default):

PostgresStore.start

Provision both storage contracts using the combined store’s pool.

PostgresStore.close

Close only pools created and owned by this store.

PostgresStore.create_cron

Create a schedule once without reactivating an existing cancelled key.

PostgresStore.get_cron

Read a schedule only within its application and owner scope.

PostgresStore.list_crons

Apply owner filtering and keyset pagination in the database.

PostgresStore.update_cron

Replace one schedule conditionally, preserving its immutable identity.

PostgresStore.delete_cron

Delete a schedule using the same owner predicate as reads.

PostgresStore.list_due_crons

Page due schedules in database order without loading inactive rows.

PostgresStore.commit_cron_occurrence

Atomically enqueue an occurrence and advance its schedule revision.

PostgresStore.enqueue_task

Persist an immutable task identity, returning exact idempotent retries.

PostgresStore.get_task

Read a scoped job; omitted user scope is reserved for trusted workers.

PostgresStore.claim_tasks

Claim disjoint batches and retire exhausted attempts after crashes.

PostgresStore.renew_task_lease

Renew only an unexpired attempt still owned by the calling worker.

PostgresStore.finish_task

Fence completion and retries; terminal transitions erase private input.

PostgresStore.cancel_task

Cancel an owned nonterminal job and revoke any running attempt.

PostgresStore.list_task_metadata

Push owner, cursor, projection, ordering, and limit into one database query.

PostgresStore.list_cron_metadata

Read a bounded metadata projection with owner filtering in one SQL query.

PostgresStore.as_langgraph_checkpointer

Return one stable native saver for advanced LangGraph construction.

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.

PostgresTaskStore

Persist jobs and schedules with transactional claims and fenced leases. _pool supports composing this provider with the combined session store; externally supplied pools remain owned by their caller.

PostgresTaskStore.start

Open one pool and install or validate the durable schema.

PostgresTaskStore.close

Close only the pool opened by this instance.

PostgresTaskStore.create_cron

Create a schedule once without reactivating an existing cancelled key.

PostgresTaskStore.get_cron

Read a schedule only within its application and owner scope.

PostgresTaskStore.list_crons

Apply owner filtering and keyset pagination in the database.

PostgresTaskStore.update_cron

Replace one schedule conditionally, preserving its immutable identity.

PostgresTaskStore.delete_cron

Delete a schedule using the same owner predicate as reads.

PostgresTaskStore.list_due_crons

Page due schedules in database order without loading inactive rows.

PostgresTaskStore.commit_cron_occurrence

Atomically enqueue an occurrence and advance its schedule revision.

PostgresTaskStore.enqueue_task

Persist an immutable task identity, returning exact idempotent retries.

PostgresTaskStore.get_task

Read a scoped job; omitted user scope is reserved for trusted workers.

PostgresTaskStore.claim_tasks

Claim disjoint batches and retire exhausted attempts after crashes.

PostgresTaskStore.renew_task_lease

Renew only an unexpired attempt still owned by the calling worker.

PostgresTaskStore.finish_task

Fence completion and retries; terminal transitions erase private input.

PostgresTaskStore.cancel_task

Cancel an owned nonterminal job and revoke any running attempt.

PostgresTaskStore.list_task_metadata

Push owner, cursor, projection, ordering, and limit into one database query.

PostgresTaskStore.list_cron_metadata

Read a bounded metadata projection with owner filtering in one SQL query.