STAN Memories
STAN's own memory store (separate from the Library Memory surface).
Access it as client.stan_memories on a Strongly client, or the same path on AsyncStrongly with await. All methods exist on both with identical signatures.
Quick start
from strongly import Strongly
client = Strongly()
# List (auto-paginates as you iterate) # filters: type
for stan in client.stan_memories.list():
print(stan.id)
Methods
Core
list
list(*, type: Optional[str] = None, limit: Optional[int] = None, offset: Optional[int] = None) -> Dict[str, Any]
List STAN memories.
Args: type: Filter by memory type. limit: Max results. offset: Pagination offset.
create
create(*, content: str, type: str, importance: Optional[float] = None) -> Dict[str, Any]
Create a STAN memory.
Args:
content: The memory content to save (required).
type: preference | fact | context | instruction (required).
importance: Importance score 0-1 (server default 0.7).
delete
delete(memory_id: str) -> None
Delete a single STAN memory. Raises on failure; returns nothing.
Other
delete_all
delete_all(*, type: Optional[str] = None) -> Dict[str, Any]
Bulk-delete STAN memories, optionally filtered by type.
Returns a summary of how many memories were removed.
stats
stats() -> Dict[str, Any]
Get aggregate statistics for STAN's memory store.