recon-driven sql composer; pick → compose → execute; llm out of structural sql

This commit is contained in:
2026-06-03 11:01:02 -03:00
parent 61494362a3
commit 29c620b2c2
27 changed files with 1516 additions and 249 deletions

View File

@@ -62,13 +62,13 @@ def test_tool_call_shapes_carry_analysis_field():
"""Tool/LLM events must include the active Analysis name from the
contextvar — UI groups sub-events by it. None when outside an Analysis."""
# Outside any Analysis: analysis is None.
s = events.tool_call_start("text_to_sql", input={"q": "?"})
s = events.tool_call_start("compose_sql", input={"q": "?"})
assert s["type"] == "tool_call_start"
assert s["tool"] == "text_to_sql"
assert s["tool"] == "compose_sql"
assert s["analysis"] is None
assert s["input"] == {"q": "?"}
e = events.tool_call_end("text_to_sql", output={"sql": "..."})
e = events.tool_call_end("compose_sql", output={"sql": "..."})
assert e["analysis"] is None
assert e["output"] == {"sql": "..."}
assert e["error"] is None