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 bygetControlSignal— advisory signals (risk level, suggested next step, policy flags)GetResult— full output of agetcallDumpReceipt— receipt returned bydumpRememberResult— result returned byrememberRecallEntry— single entry returned byrecallRecallResult— result returned byrecall
License
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)
| File | Size | Uploaded | |
|---|---|---|---|
| strawpot_memory-0.2.7.tar.gz | 8.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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 logRelease 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