C++ SCHX ยท rev 4
API + conversation ยท v0.24.0

Chat and conversation API

The main /api/chat and ABR streaming interfaces, session IDs, files and reasoning modes.

SCHX / FEATURE LAYER

Source map

  • python/abria_server/api.py
  • python/abria_server/schemas.py
  • python/abria_server/conversation_routing.py
SCHX / FEATURE LAYER

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"
}
SCHX / FEATURE LAYER

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.

SCHX / FEATURE LAYER

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.

SCHX / FEATURE LAYER

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'.