attuned-http
HTTP reference server for Attuned.
This crate provides a ready-to-use HTTP server exposing the Attuned API. It includes health checks, metrics, and OpenAPI documentation.
Endpoints
POST /v1/state- Upsert state (patch semantics, optionally with inference)GET /v1/state/{user_id}- Get latest stateGET /v1/context/{user_id}- Get PromptContextDELETE /v1/state/{user_id}- Delete statePOST /v1/infer- Infer axes from message text (requires "inference" feature)GET /health- Health checkGET /metrics- Prometheus metrics
Features
inference- Enable automatic inference from message text. Adds the/v1/inferendpoint and allows the/v1/stateendpoint to accept amessagefield for automatic axis inference.
Example
use ;
use MemoryStore;
async
With Inference
use ;
use MemoryStore;
async