Skip to content

API Reference parrot.tools.working_memory.task_memory.store

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.tools.working_memory.task_memory.store

View source

Task-memory store backends (FEAT-538).

The contract lives in :mod:parrot.interfaces.task_memory; this package holds the implementations plus the machinery they share.

Backends:

  • memory — process-local. Used by tests and by single-process compatibility deployments. Not durable (D2): it is Delivery A's only backend, and nothing about it survives a restart.
  • postgres — durable truth for Delivery B, via asyncpg. Imported lazily so that installing without the PostgreSQL extra, or running the in-memory backend, never pays for the driver.

Both must pass the same conformance suite (AC2). The shared rules — scope enforcement, opaque scoped cursors, redelivery classification, page bounding — live in :mod:._base precisely so the two backends cannot drift apart on the points where a difference would be a security bug rather than a behaviour difference.

Alias BaseTaskMemoryStore

Re-exported from parrot.tools.working_memory.task_memory.store._base.BaseTaskMemoryStore.

Alias EventClassification

Re-exported from parrot.tools.working_memory.task_memory.store._base.EventClassification.

Alias MAX_PAGE_LIMIT

Re-exported from parrot.tools.working_memory.task_memory.store._base.MAX_PAGE_LIMIT.

Alias bounded_limit

Re-exported from parrot.tools.working_memory.task_memory.store._base.bounded_limit.

Alias classify_events

Re-exported from parrot.tools.working_memory.task_memory.store._base.classify_events.

Alias decode_cursor

Re-exported from parrot.tools.working_memory.task_memory.store._base.decode_cursor.

Alias encode_cursor

Re-exported from parrot.tools.working_memory.task_memory.store._base.encode_cursor.

Alias ensure_scope

Re-exported from parrot.tools.working_memory.task_memory.store._base.ensure_scope.

Alias goal_preview

Re-exported from parrot.tools.working_memory.task_memory.store._base.goal_preview.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally