attuned-http
HTTP reference server for Attuned.
Overview
Production-ready HTTP server built with Axum providing:
- RESTful API for state management
- Authentication middleware
- Rate limiting
- OpenTelemetry tracing
- Prometheus metrics
Quick Start
use ;
use MemoryStore;
use Arc;
async
API Endpoints
| Method | Path | Description |
|---|---|---|
| POST | /v1/state |
Upsert state (patch semantics) |
| GET | /v1/state/{user_id} |
Get latest state |
| GET | /v1/context/{user_id} |
Get translated PromptContext |
| DELETE | /v1/state/{user_id} |
Delete state (GDPR) |
| POST | /v1/translate |
Translate arbitrary state |
| GET | /health |
Health check |
| GET | /ready |
Readiness check |
| GET | /metrics |
Prometheus metrics |
Example Requests
# Set user state
# Get context for LLM
Authentication
// API Key auth
ApiKey
// Bearer token
Bearer
// No auth (development only)
None
License
Apache-2.0