nl2sql-copilot / app /routers /nl2sql.py

Commit History

feat(trace): standardize StageTrace (add summary) and coerce duration_ms to int at API boundary
79a5f4a

Melika Kheirieh commited on

test-mode: stub runner in router; factory stubs accept positional calls
72c0821

Melika Kheirieh commited on

fix(router): lazy pipeline build for pytest; fix(factory): stubs accept positional/keyword args
575394d

Melika Kheirieh commited on

refactor(core): DI-ready Pipeline; add registry + YAML factory + typed trace/result
2d682e2

Melika Kheirieh commited on

refactor(core): DI-ready Pipeline; add registry + YAML factory + typed trace/result
343ad62

Melika Kheirieh commited on

fix(router): coerce trace.duration_ms to int in response (_round_trace)
6181651

Melika Kheirieh commited on

refactor(router): inject pipeline via Depends(get_runner); preserve error dump logging
9c10293

Melika Kheirieh commited on

test(router): use _RUN hook to fake pipeline.run in router tests
e535857

Melika Kheirieh commited on

test(router): monkeypatch _pipeline.run instead of nl2sql.Pipeline.run
64907d7

Melika Kheirieh commited on

fix(router): re-export Pipeline via alias to satisfy test monkeypatch; remove duplicate import
787d215

Melika Kheirieh commited on

fix(router): avoid Pipeline redefinition; expose Pipeline via import for test monkeypatch
1f5cc07

Melika Kheirieh commited on

fix(types): avoid mypy no-redef in nl2sql_handler by predeclaring pipeline_obj
ba06dd4

Melika Kheirieh commited on

fix(api): map FinalResult → HTTP (200/400) and stabilize nl2sql handler; prevent 500s in tests
9b94364

Melika Kheirieh commited on

fix(api): map FinalResult → HTTP (200/400) and stabilize nl2sql handler; prevent 500s in tests
d5f745f

Melika Kheirieh commited on

fix(typing): split adapter vars in /readyz to satisfy mypy
99fa656

Melika Kheirieh commited on

fix(api): make adapter non-optional within branch and annotate pipeline for mypy
e7d7c61

Melika Kheirieh commited on

fix(router): make final_preview assignment mypy-safe (ensure always str)
d85610e

Melika Kheirieh commited on

fix(router): make _db type-safe and clean up nl2sql_handler preview logic
c1d4d02

Melika Kheirieh commited on

tests green: fix pipeline reference in router and adjust verifier logic for aggregation & error handling
6a94b42

Melika Kheirieh commited on

fix(mypy): add types-requests, validate numeric inputs, enforce non-null schema_preview
977a885

Melika Kheirieh commited on

fix(pipeline): align backend-frontend schema and stabilize SQL flow
370553a

Melika Kheirieh commited on

style: format code with ruff
5cbfffe

Melika Kheirieh commited on

feat(demo): add initial Gradio UI with optional SQLite upload
b568b83

Melika Kheirieh commited on

tests: fix import-time KeyError by ensuring OPENAI_ in conftest and lazy-import router in test_ambiguity
1fa9a31

Melika Kheirieh commited on

build(mypy): fix type errors and add safety guards for None values
a337fad

Melika Kheirieh commited on

style: format code with ruff
4dae3e6

Melika Kheirieh commited on

refactor: unify pipeline output via FinalResult model
a45c0eb

Melika Kheirieh commited on

style: format code with ruff
c1bc4eb

Melika Kheirieh commited on

init: NL2SQL Copilot base with API and Dockerfile
570f7bd

Melika Kheirieh commited on