SDK

Seven verbs, one memory model

The SDK speaks the language of an agent remembering things. Each verb maps 1:1 to an operation in the OMEM standard. There are no hidden semantics, and you can always drop to the raw operations when you need to.

The verbs

OMEM SDK verbs, their signatures, and what each does
VerbSignature and effect
remember
remember(agent, *, about, claim, because=None)
Record a belief, optionally grounded in events.
believes
believes(about, claim) -> State
The four-valued belief state at the current time.
why
why(about, claim) -> Provenance
Evidence, grounding, interval, and contradictions.
history
history(about, claim) -> [Belief]
The ordered revision chain for a belief.
revise
revise(belief, *, to, by)
Supersede a belief; closes the prior interval.
forget
forget(belief, *, by)
Retract a belief (recorded, never destroyed).
as_of
as_of(T).believes(...)
Run any query as memory stood at time T.

The same call, everywhere

from omem import Memory
 
mem = Memory(api_key="omem_sk_...",
base_url="http://127.0.0.1:8787",
project="proj_...")
 
mem.remember(agent="support-bot",
about="customer:alice",
claim="prefers_annual_billing")
 
mem.believes(about="customer:alice",
claim="prefers_annual_billing") # 'BELIEVED_TRUE'