Python SDK for Medjat memory API
Project description
Medjat Python SDK
Python client for the Medjat memory API.
Install
pip install medjat-sdk
30-Second Quickstart
export MEDJAT_API_KEY="your_api_key"
from medjat_sdk import MedjatClient
client = MedjatClient(api_key="your_api_key")
client.memory.store(
agent_id="agent-1",
session_id="session-1",
user_id="user-1",
content="User prefers concise TypeScript examples and JSON responses.",
)
recall = client.memory.recall(
query="How should I format examples for this user?",
agent_id="agent-1",
user_id="user-1",
top_k=3,
)
for item in recall.items:
print(item.content)
Quickstart
See QUICKSTART.md for a 5-minute setup.
Usage
from medjat_sdk import MedjatClient
client = MedjatClient(api_key="YOUR_API_KEY")
result = client.memory.recall(query="user preferences", agent_id="agent", user_id="user")
print(result)
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
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 medjat_sdk-0.1.0.tar.gz.
File metadata
- Download URL: medjat_sdk-0.1.0.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93c010a57697bb48d544cd511f29a9ef7ffc0670321aaedddda2698436a7ccea
|
|
| MD5 |
da5bf3dc06a62e0a783ec0ee5170b367
|
|
| BLAKE2b-256 |
5c4ccf757ed60ae133730ca013afdbe380f492dc48bfc3f088ad4167f5ab27b5
|
Provenance
The following attestation bundles were made for medjat_sdk-0.1.0.tar.gz:
Publisher:
publish-pypi.yml on darknet-developer/Medjat
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
medjat_sdk-0.1.0.tar.gz -
Subject digest:
93c010a57697bb48d544cd511f29a9ef7ffc0670321aaedddda2698436a7ccea - Sigstore transparency entry: 1081448260
- Sigstore integration time:
-
Permalink:
darknet-developer/Medjat@cdf5d87661d586e1962a0d8b5355febbd5d37e04 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/darknet-developer
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@cdf5d87661d586e1962a0d8b5355febbd5d37e04 -
Trigger Event:
release
-
Statement type:
File details
Details for the file medjat_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: medjat_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e6a8353842a77383700d4d342dcc4589924327d9d0d8cd1ab62dadc1baef40f
|
|
| MD5 |
890a67b84581747bc2e1e7b7c7e0d130
|
|
| BLAKE2b-256 |
c1d3c187b99ed041b3bbf3fe467ad01c7857a669dccb61113dd0aa1a203d4217
|
Provenance
The following attestation bundles were made for medjat_sdk-0.1.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on darknet-developer/Medjat
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
medjat_sdk-0.1.0-py3-none-any.whl -
Subject digest:
4e6a8353842a77383700d4d342dcc4589924327d9d0d8cd1ab62dadc1baef40f - Sigstore transparency entry: 1081448325
- Sigstore integration time:
-
Permalink:
darknet-developer/Medjat@cdf5d87661d586e1962a0d8b5355febbd5d37e04 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/darknet-developer
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@cdf5d87661d586e1962a0d8b5355febbd5d37e04 -
Trigger Event:
release
-
Statement type: