Skip to content

API Reference

Auto-generated from Google-style docstrings in the Alkiviades backend.

Modules

Module Purpose
agent Orchestrates RAG + tool-calling loop
tools Tool registry — schemas, dispatch, and handlers
prompt Prompt assembly — system message + 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 SQLite schema init, admin bootstrap, migration
session Dual persistence — markdown + SQLite
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 + structured JSON logging