refactor(api): W7 tools 注册表拆分(RAG / Text2SQL 子模块)#155
Merged
Conversation
tool_models + tools_shared + tools_rag + tools_text2sql;tools.py 保留 get_tool_registry 与 direct_answer,对外 import 路径不变。 Co-authored-by: Cursor <cursoragent@cursor.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
text2sql.phase.* 锚点已迁至 tools_text2sql.py,BACKEND_CONTRACT_SOURCES 同步。 Co-authored-by: Cursor <cursoragent@cursor.com>
Cyning12
added a commit
that referenced
this pull request
Jun 9, 2026
Epic W7 done · PR #155 · 当前棒 W8。 Co-authored-by: cyning <cyning12@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tool_models.py、tools_shared.py、tools_rag.py、tools_text2sql.pytools.py瘦身为 registry 入口 +direct_answer_execute+tool_mode_mapapi-tools-registry-splitTest plan
ruff check api testspytest tests -m "not intent_eval and not intent_benchmark"(352 passed)Made with Cursor
CI 状态(自动 · pr-post-ci)
Required 全绿:是
变更范围(自动统计)
文件数:7
api/docs/tools/⚠ automerge 路径闸:含
api/、tests/、.github/workflows/等 — 勿打automerge或须人审 merge。命中路径
api/tool_models.pyapi/tools.pyapi/tools_rag.pyapi/tools_shared.pyapi/tools_text2sql.py