feat(agent): harden API-first service

This commit is contained in:
2026-09-16 21:12:47 +02:00
parent aa637270b7
commit c8b55fbd38
12 changed files with 839 additions and 162 deletions
+7 -1
View File
@@ -296,8 +296,14 @@ def answer_question(
"regenerations": regenerations,
"latency_ms": round((time.perf_counter() - t0) * 1000),
"draft": draft,
"answer_type": qtype,
"planned": planned,
"planned_queries": [
{"text": sq.text, "stand_year": sq.stand_year}
{
"text": sq.text,
"stand_year": sq.stand_year,
"scope": sq.scope,
}
for sq in sub_queries
],
}