Metadata-Version: 2.4
Name: medjat-sdk
Version: 0.1.0
Summary: Python SDK for Medjat memory API
Author: Medjat
Project-URL: Homepage, https://medjat.dev
Project-URL: Repository, https://github.com/darknet-developer/Medjat
Project-URL: Documentation, https://medjat.dev
Project-URL: Changelog, https://github.com/darknet-developer/Medjat/blob/main/python-sdk/CHANGELOG.md
Project-URL: Issues, https://github.com/darknet-developer/Medjat/issues
Keywords: ai,memory,agents,retrieval,vector,rag
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.31.0
Provides-Extra: langchain
Requires-Dist: langchain>=0.1.0; extra == "langchain"

# Medjat Python SDK

Python client for the Medjat memory API.

## Install

```bash
pip install medjat-sdk
```

## 30-Second Quickstart

```bash
export MEDJAT_API_KEY="your_api_key"
```

```python
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](QUICKSTART.md) for a 5-minute setup.

## Usage

```python
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)
```
