Skip to content

fix(agent): unavailable web search is not an empty result; tailor_resume real-JD + PDF tools - #169

Open
avabbbb wants to merge 1 commit into
mainfrom
fix/agent-job-flow-tools
Open

avabbbb wants to merge 1 commit into
mainfrom
fix/agent-job-flow-tools

Conversation

@avabbbb

@avabbbb avabbbb commented Oct 27, 2026

Copy link
Copy Markdown
Owner

内置 Agent 岗位 → 简历 → PDF 工具缺口

  1. web_search 在未配置 Bocha/Tavily/Serper 且未安装 ddgs 时兜底链为空、静默返回 [],web_search_preview 仍把 ddgs 列为已配置。现在只在已安装时列出 ddgs,空链记录告警,preview 返回 available: false,避免把「没搜」当成「没有岗位」。
  2. tailor_resume 白名单补齐 search_jobs / draft_job_posting / import_jd / create_resume_record / export_resume_pdf;仍按 operation_tiers 归为可撤销写入,未改确认策略。Skill 投影已按 Registry 重新生成。

已知阻断(非代码)

  • 测试环境无搜索 Key,DuckDuckGo 直连超时;猎聘搜索页为前端渲染;BOSS 按设计受限。真实岗位需配置搜索 Key,或由使用者粘贴 JD / 链接经 draft_job_posting 导入。

验证

  • pytest tests -k "skill or registry or web_search or operation_tier or tool_contract or projection" 通过
  • tests/test_skill_projection_sync.py 通过

Rebased onto main (6ef9569) and reopened; supersedes closed #151.

Local backend tests: no new failures vs main (the 8 failing on main are 7 Windows-only test_boss_sync WinError 193 and the change-capture FK test fixed by #166).

…or_resume real-JD and export tools

- web_search: ddgs only enters the chain and the preview when installed; an empty provider chain logs
  "no search provider configured"; web_search_preview reports available=false
- tailor_resume can now search_jobs, draft_job_posting, import_jd, create_resume_record and export_resume_pdf,
  so the built-in Agent can take a real JD to a formal resume and PDF (tiers unchanged: undoable writes)
- regenerate Skill projections from the registry
- tests: tests/test_web_search_availability.py

This branch has not been deployed

No deployments
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