feat(agent): refine composed-voice prompt and guard no-tool success/farewell claims - #352
Draft
yyy-router wants to merge 3 commits into
Draft
feat(agent): refine composed-voice prompt and guard no-tool success/farewell claims#352yyy-router wants to merge 3 commits into
yyy-router wants to merge 3 commits into
Conversation
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.
Part of #312
组合式语音(composed)在连续对话里暴露出工具漏调用、无工具却谎报成功、结束对话漏调 end_conversation 等可靠性问题。本 PR 从提示词、运行时防御、可观测性三方面收紧:
fix(llm):LLM 采样温度设为 0.2,降低输出随机性、提高工具调用确定性feat(agent):精简并补全 SYSTEM_PROMPT(字段默认值对齐 realtime 的「没提到的字段怎么补」,含默认提醒强度 medium);新增无工具谎报检测(_claims_success触发一次纠正重试)与道别兜底(_is_farewell直接结束会话、不外泄内部工具名)chore(agent):新增 schedule_query 调用参数与工具原始参数诊断日志验证
test_agent.py44 用例全绿(新增 2 个:谎报纠正、道别结束会话)ruff check/ruff format --check/mypy干净