Skip to main content

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: str | None = None, limit: int | None = None) -> SyncPaginator[StanMemory]

List STAN's memories of you, a page at a time as you iterate.

Parameters

  • type (str | None, optional): Only memories of this type: preference, fact, context or instruction.
  • limit (int | None, optional): The most memories to yield.

create​

create(*, content: str, type: str, importance: float | None = None) -> dict[str, Any]

Create a STAN memory.

Parameters

  • content (str): The memory content to save (required).
  • type (str): preference | fact | context | instruction (required).
  • importance (float | None, optional): 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() -> None

Delete every one of your STAN memories.

stats​

stats() -> dict[str, Any]

Get aggregate statistics for STAN's memory store.