Metadata-Version: 2.4
Name: acis-memory
Version: 1.0.0
Summary: ACIS — AI Context & Intelligent System SDK
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: httpx>=0.25.0

# ACIS SDK

> AI Context & Intelligent System — Memory for LLM Applications

## Installation

```bash
pip install "git+https://oauth2:<your-gitlab-token>@git.skaleup.tech/genai-projects/chatbot/genai-hc-stm-ltm.git@UAT#subdirectory=sdk_pkg"
```

> **Note:** Use a GitLab Personal Access Token with `read_repository` scope. Prefix with `oauth2:` as username.

## Quick Start

```python
from acis import MemoryClient

# Point to your ACIS deployment
client = MemoryClient(
    tenant_id="your-tenant-uuid",
    base_url="http://10.0.1.50:8000",  # ACIS server IP
)

# Create session
session = client.create_session(user_id="user-123")

# Every turn:
client.add_event(session_id=session.session_id, role="user", content="Hello")
ctx = client.get_context(session_id=session.session_id, query="Hello")

# ctx.messages → pass directly to any LLM (OpenAI, Azure, Anthropic, etc.)
response = your_llm(messages=ctx.messages)

client.add_event(session_id=session.session_id, role="assistant", content=response)

# End conversation
client.close_session(session_id=session.session_id)
```

## Only Dependency

- `httpx` (HTTP client)

That's it. No PostgreSQL, Redis, Celery, or Django needed on the app server.
