Server
Run TnsAI as a backend — WebSocket API, session management, human-in-the-loop tool approval.
Pages
- WebSocket — The v1 WebSocket protocol.
- Tool Approval — Human-gated destructive operations.
- Advanced — Scaling, persistence, multi-tenant deployment.
For production RAG pipelines, see RAG Pipeline.
Advanced Evaluation
This guide covers the specialized evaluator families introduced in 0.3.0: RAG evaluators for retrieval-augmented generation pipelines, multi-turn evaluators for conversation quality, safety evaluators for harmful content detection, and the trace-eval bridge that connects observability with evaluation.
WebSocket Protocol
The Server module is a Javalin-based backend that bridges frontends (CLI, IDE, web) to the TnsAI agent framework via WebSocket. It provides multi-agent sessions, real-time streaming, risk-based tool approval, hybrid RAG search, and an audit trail.