SDKs
Three hand-written clients over the same REST API. None of them is generated from the OpenAPI document, so each one covers the routes its authors wrapped, and the three are not identical.
Where each one stands
| SDK | Package | Install | Version |
|---|---|---|---|
| TypeScript | @mnemo-ai/client-ts | npm | 3.6.2 |
| Python | mnemo-ai-sdk (imported as mnemo) | from the repository, not on PyPI | 3.0.0a0 |
| Go | github.com/lucasmailland/mnemosyne/packages/sdk-go | go get, no tagged release | pseudo-version of main |
The TypeScript client is the widest of the three. The CLI and the MCP server are built on it.
What the three share
- A client built from a server URL and an API key. The key decides the workspace.
recall, facts (create, get, list, patch, forget, restore, pin, unpin),timeline,health, sessions, entities, decisions, relations, tasks, events, strategies and the review queue.- One API error type that carries the HTTP status, the server’s error code and the request id.
- Retries with exponential backoff and jitter, starting at 200 ms, on network failures, 429 and 5xx. The default budget is three attempts in TypeScript and three retries in Python and Go. Reads are replayed automatically. A write is replayed only when it carries an idempotency key.
- Idempotency keys, sent as the
Idempotency-Keyheader. - A way to target another workspace with a user token:
forWorkspace,for_workspace,ForWorkspace.
What differs
- TypeScript returns typed objects. Python returns plain dicts. Go returns
map[string]interface{}, exceptRecall, which returns a*RecallResponse. - Only TypeScript has
remember, withkind,scope,scopeRef,topicKeyand the rest of thePOST /rememberbody. In Python and Go,create_factandCreateFactsend the statement,attribution,tagsand a session id. - Only TypeScript exposes the recall options
mode,kinds,scope,scopeRef,minSimilarity,hydeandincludeGraph. Python and Go sendquery,vector,topK,asOf,vectorWeightand a session id. - None of them has pagination iterators. List calls return a page with
nextCursor, and you loop on it yourself.
For any other language, call the REST API directly. A running server
publishes its OpenAPI document at /openapi.json and a browsable reference
at /docs.