API Reference¶
Auto-generated from Google-style docstrings in the Alkiviades backend
(mkdocstrings). Regenerate with mkdocs build -d docs-site.
Modules¶
| Module | Purpose |
|---|---|
| agent | Agentic loop — RAG + tool-calling, history trimming, skill injection |
| tools | Tool registry — schemas, dispatch, search_news / search_diavgeia / scrape_url |
| skills | Markdown skills — loader, multilingual router, prompt formatting |
| crypto | Runtime encryption — AES-GCM envelopes, PBKDF2 KEK, DEK wrap/unwrap |
| prompt | Prompt assembly — system message + RAG context |
| report | Three-phase report generation from session history |
| embed | Pure-numpy TF-IDF vectorizer |
| rag | Chunking, vectorization, cosine similarity retrieval |
| main | FastAPI application — SSE streaming, auth, sessions |
| auth | JWT tokens, bcrypt hashing, cookie helpers |
| database | Supabase data layer, admin bootstrap, legacy migration |
| session | Dual persistence — markdown legacy + encrypted SQLSessionManager |
| user_store | Per-user Agent registry with LRU eviction |
| config | Secrets, constants, axes, prompt loading |
| models | Data classes — Chunk, AgentResult, ChatRequest |
| utils | Shared utilities — LLM calls, token counting, RAG helpers |
| stream_events | SSE event dataclasses |
| files | File read/write/edit/append tools |
| keys | Fernet-encrypted per-user API key storage |
| rate_limit | In-memory rate limiter for auth endpoints |
| logging_config | Rotating file handler + sensitive-data log scrubbing |