Official Python SDK for the Quis Memory API
Project description
quis-sdk
Official Python SDK for the Quis Memory API — a human-centric, affect-aware memory layer for LLM agents.
Installation
pip install quis-sdk
Quickstart
import asyncio
from quis_sdk import Quis
async def main():
async with Quis(api_key="quis_sk_...") as q:
# Ingest a conversation message
await q.ingest(
messages=[
{
"message_id": "msg-001",
"sender_id": "user-uuid",
"timestamp": "2026-03-15T10:00:00Z",
"text": "I just visited Paris for the first time!",
"user_name": "Alice",
}
],
conversation_id="conv-123",
)
# Retrieve memories when answering a question
result = await q.retrieve(
user_id="user-uuid",
question="Where has this user traveled?",
)
# Inject the memory context into your LLM system prompt
print(result["prompt"])
asyncio.run(main())
Configuration
| Parameter | Description | Default |
|---|---|---|
api_key |
Your Quis API key (starts with quis_sk_) |
required |
base_url |
API base URL (override for self-hosted) | https://api.quis.ai |
timeout |
Request timeout in seconds | 60 |
Get your API key at app.quis.ai.
Error Handling
from quis_sdk import Quis, QuisAuthError, QuisRateLimitError, QuisAPIError
async with Quis(api_key="quis_sk_...") as q:
try:
result = await q.retrieve(user_id="u1", question="What do I like?")
except QuisAuthError:
print("Invalid API key")
except QuisRateLimitError as e:
print(f"Rate limited. Retry after {e.retry_after}s")
except QuisAPIError as e:
print(f"Server error {e.status_code}: {e.detail}")
Self-hosted Deployments
Point the SDK at your own instance:
q = Quis(api_key="quis_sk_...", base_url="https://memory.your-company.com")
License
MIT — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
quis_sdk-0.1.0.tar.gz
(5.6 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 quis_sdk-0.1.0.tar.gz.
File metadata
- Download URL: quis_sdk-0.1.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f41454a421dffd5cc409686fad1ff312193c32007492ce4d79c44f9d1a0cb1c
|
|
| MD5 |
13209d4451cc12324576ccb280200fc1
|
|
| BLAKE2b-256 |
ccf1af2e87241f29bb01f037d7698a57f817a069fcf5fc264e2348e1a4577a29
|
File details
Details for the file quis_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: quis_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2cbd9e3e28e2de48d8dad896998fb390fc10173216a5b0df4908f17146bf3d5
|
|
| MD5 |
f08e7a837f370a7efb1a524c0f9124af
|
|
| BLAKE2b-256 |
dd7e15340ffdc5e85cb69f6becc1eda74ed0770c6453ddd5160067478db04100
|