Skip to main content

strawpot-memory

Interface definition for StrawPot memory providers.

This package defines the MemoryProvider protocol and associated types that any memory backend must implement to integrate with the StrawPot agent orchestration system.

Install

pip install strawpot-memory

Usage

Implement the MemoryProvider protocol to create a custom memory backend:

from strawpot_memory.memory_protocol import (
    MemoryProvider,
    GetResult,
    DumpReceipt,
    RememberResult,
    RecallResult,
)


class MyMemoryProvider:
    name = "my-provider"

    def get(self, *, session_id, agent_id, role, behavior_ref, task,
            budget=None, parent_agent_id=None, group_id=None) -> GetResult:
        ...

    def dump(self, *, session_id, agent_id, role, behavior_ref, task, status, output,
             tool_trace="", parent_agent_id=None, artifacts=None, group_id=None) -> DumpReceipt:
        ...

    def remember(self, *, session_id, agent_id, role, content,
                 keywords=None, scope="project", group_id=None) -> RememberResult:
        ...

    def recall(self, *, session_id, agent_id, role, query,
               keywords=None, scope="", max_results=10, group_id=None) -> RecallResult:
        ...


assert isinstance(MyMemoryProvider(), MemoryProvider)  # runtime check

Protocol Methods

Method Purpose
get Retrieve context cards and control signals before spawning an agent
dump Record agent results after completion
remember Persist knowledge during agent execution
recall Query stored knowledge on-demand during agent execution

Types

  • MemoryKind — enum of memory types (PM, SM, STM, RM, EM)
  • ContextCard — single unit of context returned by get
  • ControlSignal — advisory signals (risk level, suggested next step, policy flags)
  • GetResult — full output of a get call
  • DumpReceipt — receipt returned by dump
  • RememberResult — result returned by remember
  • RecallEntry — single entry returned by recall
  • RecallResult — result returned by recall

License

MIT

Metadata

Release files for strawpot-memory 0.2.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for strawpot-memory 0.2.7
File Size Uploaded
strawpot_memory-0.2.7.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for strawpot-memory 0.2.7
File Interpreter ABI Platform
strawpot_memory-0.2.7-py3-none-any.whl Python 3 none any Details

Total release size: 14.5 kB

Release files / strawpot_memory-0.2.7.tar.gz

Download URL strawpot_memory-0.2.7.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7608e6915f55b769e65ec70e69e3109d565722c9fc88b9ff04315955e6dde22f
BLAKE2b-256 checksum
How to use checksums
f190f56d78bb2f2b968b2aa59cabd7d2fd82c37dc2f2a2c435d64bd0d3ee0ba2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 27, 2026.

Transparency log

Release files / strawpot_memory-0.2.7-py3-none-any.whl

Download URL strawpot_memory-0.2.7-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
820dd5e747fd297cc6c6594e0b041e089831aa2d1683b29ab98bbc094c5dafd3
BLAKE2b-256 checksum
How to use checksums
f6e700b6f4b5961085e14f57f67cd09595318d94e7332d05d2a0b67ff8a68d9b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 27, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.7 This release

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page