Skip to content

Commit e836918

Browse files
author
Steve Paltridge
committed
docs: replace deleted recall-client SDK refs with ai-recallworks / requests
1 parent a6afab3 commit e836918

4 files changed

Lines changed: 46 additions & 39 deletions

File tree

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- @wbx-modified copilot-b1c4 | 2026-04-27 23:58 MTN | v0.3.3 | added ™ to H1 brand | prev: copilot-a3f7@2026-04-24 -->
1+
<!-- @wbx-modified copilot-b1c4 | 2026-04-28 03:35 MTN | v0.3.4 | replaced deleted recall-client with ai-recallworks; Python uses requests until SDK pkg name resolved | prev: copilot-b1c4@2026-04-27 23:58 MTN -->
22
<div align="center">
33

44
# Recall&trade;
@@ -7,7 +7,7 @@
77

88
[![Tests](https://github.com/RecallWorks/Recall/actions/workflows/test.yml/badge.svg)](https://github.com/RecallWorks/Recall/actions/workflows/test.yml)
99
[![Docker](https://github.com/RecallWorks/Recall/actions/workflows/docker.yml/badge.svg)](https://github.com/RecallWorks/Recall/actions/workflows/docker.yml)
10-
[![PyPI](https://img.shields.io/pypi/v/recall-client?label=pypi%3A%20recall-client&logo=pypi&logoColor=white)](https://pypi.org/project/recall-client/)
10+
[![PyPI](https://img.shields.io/pypi/v/ai-recallworks?label=pypi%3A%20ai-recallworks&logo=pypi&logoColor=white)](https://pypi.org/project/ai-recallworks/)
1111
[![npm](https://img.shields.io/npm/v/@recallworks/recall-client?label=npm%3A%20%40recallworks%2Frecall-client&logo=npm&logoColor=white)](https://www.npmjs.com/package/@recallworks/recall-client)
1212
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
1313
[![Python 3.11+](https://img.shields.io/badge/python-3.11%2B-blue?logo=python&logoColor=white)](pyproject.toml)
@@ -57,13 +57,13 @@ curl -H "X-API-Key: changeme" \
5757
```
5858

5959
```python
60-
# Python
61-
pip install recall-client
62-
63-
from recall_client import RecallClient
64-
with RecallClient("http://localhost:8787", api_key="changeme") as c:
65-
c.remember("first memory", tags="hello")
66-
print(c.recall("memory").result)
60+
# Python (use requests/httpx — no SDK pkg needed)
61+
import requests
62+
h = {"X-API-Key": "changeme", "Content-Type": "application/json"}
63+
requests.post("http://localhost:8787/tool/remember", headers=h,
64+
json={"content": "first memory", "tags": "hello"})
65+
print(requests.post("http://localhost:8787/tool/recall", headers=h,
66+
json={"query": "memory"}).json()["result"])
6767
```
6868

6969
```ts

examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ docker run -d --name recall -p 8787:8787 -e API_KEY=changeme \
1616
## Run a Python example
1717

1818
```bash
19-
pip install recall-client
19+
pip install requests
2020
python examples/python/agent_memory.py
2121
```
2222

examples/python/agent_memory.py

Lines changed: 33 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,55 @@
1-
# @wbx-modified copilot-a3f7·MTN | 2026-04-24 | minimal Recall agent-memory example
1+
# @wbx-modified copilot-b1c4 | 2026-04-28 03:38 MTN | v0.2 | rewrote using requests after recall-client SDK pkg deleted from PyPI | prev: copilot-a3f7@2026-04-24
22
"""End-to-end agent memory: remember, recall, checkpoint.
33
44
Run a server first:
55
docker run -d -p 8787:8787 -e API_KEY=changeme \
66
-v recall-data:/data ghcr.io/recallworks/recall:latest
77
88
Then:
9-
pip install recall-client
9+
pip install requests
1010
python agent_memory.py
1111
"""
1212
from __future__ import annotations
1313

1414
import os
1515

16-
from recall_client import RecallClient
16+
import requests
1717

1818
URL = os.environ.get("RECALL_URL", "http://localhost:8787")
1919
KEY = os.environ.get("RECALL_KEY", "changeme")
20+
H = {"X-API-Key": KEY, "Content-Type": "application/json"}
21+
22+
23+
def call(tool: str, **payload) -> dict:
24+
r = requests.post(f"{URL}/tool/{tool}", headers=H, json=payload, timeout=30)
25+
r.raise_for_status()
26+
return r.json()
2027

2128

2229
def main() -> None:
23-
with RecallClient(URL, api_key=KEY) as c:
24-
# 0. Health
25-
print("server:", c.health())
26-
27-
# 1. Store a few facts the agent should remember across sessions.
28-
c.remember("user prefers dark mode", source="prefs", tags="ui,dark-mode")
29-
c.remember("project deadline is 2026-05-15", source="project", tags="deadline")
30-
c.remember("lead engineer is Jamie (jamie@example.com)", source="people", tags="contact")
31-
32-
# 2. Pull them back semantically.
33-
hits = c.recall("when is the deadline", n=3)
34-
print("\nrecall: when is the deadline")
35-
print(hits.result)
36-
37-
# 3. End-of-session checkpoint so the next agent can pick up.
38-
cp = c.checkpoint(
39-
intent="onboard new agent to the project",
40-
established="user prefers dark mode; deadline 2026-05-15; lead is Jamie",
41-
pursuing="prepare kickoff doc draft",
42-
open_questions="which team channel does Jamie use?",
43-
session="e0a1",
44-
)
45-
print("\ncheckpoint:", cp.result.splitlines()[0])
30+
# 0. Health
31+
print("server:", requests.get(f"{URL}/health", headers=H, timeout=10).json())
32+
33+
# 1. Store a few facts the agent should remember across sessions.
34+
call("remember", content="user prefers dark mode", source="prefs", tags="ui,dark-mode")
35+
call("remember", content="project deadline is 2026-05-15", source="project", tags="deadline")
36+
call("remember", content="lead engineer is Jamie (jamie@example.com)", source="people", tags="contact")
37+
38+
# 2. Pull them back semantically.
39+
hits = call("recall", query="when is the deadline", n=3)
40+
print("\nrecall: when is the deadline")
41+
print(hits["result"])
42+
43+
# 3. End-of-session checkpoint so the next agent can pick up.
44+
cp = call(
45+
"checkpoint",
46+
intent="onboard new agent to the project",
47+
established="user prefers dark mode; deadline 2026-05-15; lead is Jamie",
48+
pursuing="prepare kickoff doc draft",
49+
open_questions="which team channel does Jamie use?",
50+
session="e0a1",
51+
)
52+
print("\ncheckpoint:", cp["result"].splitlines()[0])
4653

4754

4855
if __name__ == "__main__":

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# @wbx-modified copilot-b1c4 | 2026-04-27 23:35 MTN | v0.3.3 | bump for MCP stdio + SSE wiring + Voyage embedder | prev: copilot-a3f7@2026-04-26
1+
# @wbx-modified copilot-b1c4 | 2026-04-28 03:20 MTN | v0.3.3 | published as ai-recallworks (Steve's choice; passed PyPI similarity wall) | prev: copilot-b1c4@2026-04-28 03:10 MTN
22
[build-system]
33
requires = ["hatchling"]
44
build-backend = "hatchling.build"
55

66
[project]
7-
name = "recall"
7+
name = "ai-recallworks"
88
version = "0.3.3"
99
description = "Open-source agent-memory MCP server. recall.works"
1010
readme = "README.md"
1111
requires-python = ">=3.11"
1212
license = { text = "MIT" }
13-
authors = [{ name = "Recall contributors" }]
13+
authors = [{ name = "ai-recallworks" }]
1414
keywords = ["mcp", "agent", "memory", "rag", "vector-store", "copilot"]
1515
classifiers = [
1616
"Development Status :: 3 - Alpha",

0 commit comments

Comments
 (0)