mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-03 06:36:23 +08:00
Redesigns the Data Explorer `/queries/new` page to be AI-first, with a non-AI fallback if AI is disabled. Instead of the old dual-form layout (manual create + separate AI generate that redirects to the edit page), the new page lets you describe what you want, generates the SQL inline, and saves when you're ready. Reviewer notes: - there's no database record created until user clicks "Save query" - new POST /queries/generate endpoint for query generation, no DB record - agent rework - related PR https://github.com/discourse/discourse-ai-evals/pull/16 - switched to agentic execution mode - removed ValidateSql tool (redundant with RunSql) - added full Data Explorer parameter type reference - evaluator for the DE agent |
||
|---|---|---|
| .. | ||
| tools | ||
| ai_agent_enumerator.rb | ||
| ai_query_enqueuer.rb | ||
| ai_query_generator.rb | ||
| data_explorer.rb | ||
| engine.rb | ||
| parameter.rb | ||
| queries.rb | ||
| query_creator.rb | ||
| query_group_bookmarkable.rb | ||
| query_result_cache.rb | ||
| query_result_downloader.rb | ||
| query_runner.rb | ||
| report_generator.rb | ||
| result_format_converter.rb | ||
| result_to_markdown.rb | ||
| validation_error.rb | ||