Python client for the Recallio API
Project description
Recallio Python Client
A lightweight Python wrapper for the Recallio API.
Installation
pip install recallio
Usage
from recallio import (
RecallioClient,
MemoryWriteRequest,
MemoryRecallRequest,
)
client = RecallioClient(api_key="YOUR_RECALLIO_API_KEY")
req = MemoryWriteRequest(
userId="user_123",
projectId="project_abc",
content="The user prefers dark mode and wants notifications disabled on weekends",
consentFlag=True,
)
memory = client.write_memory(req)
print(memory.id)
# recall memories
recall_req = MemoryRecallRequest(
projectId="project_abc",
userId="user_123",
query="dark mode",
scope="user",
)
results = client.recall_memory(recall_req)
for m in results:
print(m.content, m.similarityScore)
# summarized recall
summary = client.recall_summary(recall_req)
print(summary.content)
API Key
The client authenticates using the Authorization header with a Bearer token. Pass
RECALLIO_API_KEY when creating RecallioClient.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
recallio-0.1.0.tar.gz
(3.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file recallio-0.1.0.tar.gz.
File metadata
- Download URL: recallio-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51450832668453b6707dbba7d7687a7c7335457f4da3c72b1e6421ab4f386fe7
|
|
| MD5 |
3d89ff8b0ccb5d0159f583bbab870a8b
|
|
| BLAKE2b-256 |
6d0054637d4e25bd0df889d75516128ade49c9dc3b6589a4b52f8f53e1510425
|
File details
Details for the file recallio-0.1.0-py3-none-any.whl.
File metadata
- Download URL: recallio-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3bbced709a8a16592ef91cb2fdd6e4a64a7b740a20f34886eb6f5f9ca0c6d91
|
|
| MD5 |
7be9cbbe9d3c29f2a55d5daa3385c1d8
|
|
| BLAKE2b-256 |
4a269835d4d163f24f684e7f5013ab26ec675e7c68dee39d8eaa603b5121aecb
|