refactor(api): W8 Intent 栈拆分(rules + LLM 子模块)#157
Merged
Conversation
Epic api-modularization W8:表驱动规则与 LLM/cache/retry 分文件; intent_agent 保留模型与公开 re-export,测试 monkeypatch 路径不变。 Co-authored-by: Cursor <cursoragent@cursor.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
api/intent_router_rules.py:V1 表驱动规则命中api/intent_llm.py:LRU 缓存、LLM 外呼/重试、decide_intent_v2intent_agent.py瘦身为模型 + hints 仲裁 + re-exportintent_router.py保留decide_intent()入口Test plan
ruff check api testspytest tests -m "not intent_eval and not intent_benchmark"(352 passed)Made with Cursor
CI 状态(自动 · pr-post-ci)
Required 全绿:是
变更范围(自动统计)
文件数:5
api/docs/⚠ automerge 路径闸:含
api/、tests/、.github/workflows/等 — 勿打automerge或须人审 merge。命中路径
api/intent_agent.pyapi/intent_llm.pyapi/intent_router.pyapi/intent_router_rules.py