Skip to content

feat(agent): refine composed-voice prompt and guard no-tool success/farewell claims - #352

Draft
yyy-router wants to merge 3 commits into
1024XEngineer:mainfrom
yyy-router:feature/agent-prompt-tuning
Draft

feat(agent): refine composed-voice prompt and guard no-tool success/farewell claims#352
yyy-router wants to merge 3 commits into
1024XEngineer:mainfrom
yyy-router:feature/agent-prompt-tuning

Conversation

@yyy-router

Copy link
Copy Markdown
Contributor

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.py 44 用例全绿(新增 2 个:谎报纠正、道别结束会话)
  • ruff check / ruff format --check / mypy 干净

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant