Chat and conversation API
The main /api/chat and ABR streaming interfaces, session IDs, files and reasoning modes.
Source map
- python/abria_server/api.py
- python/abria_server/schemas.py
- python/abria_server/conversation_routing.py
Chat request
ChatRequest accepts message, session_id, optional subject/workspace ids, up to 12 text/source files, research/remember flags and reasoning_mode: auto, fast, balanced or deep.
text{
"message": "Analyze these files and propose a fix",
"session_id": "browser-session-id",
"files": [],
"research": true,
"remember": true,
"reasoning_mode": "balanced"
}ABR-mode chat
In ABR mode /api/chat routes into the account or guest ABR identity, chooses a cognitive budget, processes source-file teaching/analysis, and returns the answer plus structured ABR metadata.
Streaming
POST /api/abr/chat/stream emits Server-Sent Events. Progress events describe stages such as memory/native reasoning/rule checks, followed by a final result event.
Sessions
The broader service exposes session and turn-history routes for the workspace UI. ABR working context also tracks a recent subject for follow-up prompts such as 'describe it again'.