Metadata-Version: 2.4
Name: progress-memory
Version: 0.1.0
Summary: Python SDK for the Progress Memory backend API
Author: Progress Software Corporation
License: Copyright © Progress Software Corporation
License-File: notices.txt
Requires-Python: >=3.11
Requires-Dist: httpx>=0.27
Requires-Dist: pygments>=2.20.0
Provides-Extra: dev
Requires-Dist: pytest-asyncio>=0.23; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Requires-Dist: respx>=0.21; extra == 'dev'
Description-Content-Type: text/markdown

# progress-memory

Python SDK for the [Progress Memory](https://www.progress.com) backend API.

## Quick start

```python
from progress_memory import ProgressMemoryClient, ProgressMemoryConfig, AddMemoryRequest, ConversationMessage, RecallMemoryRequest

config = ProgressMemoryConfig.from_env()

async with ProgressMemoryClient(config) as client:
    await client.add_memory(
        AddMemoryRequest(
            user_id="user-1",
            agent_id="agent-1",
            messages=[
                ConversationMessage(text="What is the capital of France?", type="user"),
                ConversationMessage(text="The capital of France is Paris.", type="assistant"),
            ],
        )
    )

    memories = await client.recall_memory(
        RecallMemoryRequest(query="capital of France", user_id="user-1")
    )
    for m in memories:
        print(m.text, m.score)
```

## Configuration

Set these environment variables:

| Variable | Description |
|---|---|
| `PROGRESS_MEMORY_BACKEND_URL` | Base URL of the Progress Memory backend |
| `PROGRESS_MEMORY_SDK_API_KEY` | API key (starts with `pmem_d_`) |
