Commit fd27a512981c647f3a721c6477a6af770eb3d11e

Authored by yibo
1 parent 8cbb874f

fix(chat): 把 4 个新工具加入 ReAct 系统提示工具列表

get_stale_contacts / get_org_members / link_person_org / find_relevant_persons
漏加到 REACT_SYSTEM_PROMPT,LLM 不知道它们存在导致从不调用。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
lifelog-recorder/app/src/main/kotlin/com/lemon/lifelog/chat/ChatViewModel.kt
@@ -303,12 +303,18 @@ class ChatViewModel(app: Application) : AndroidViewModel(app) { @@ -303,12 +303,18 @@ class ChatViewModel(app: Application) : AndroidViewModel(app) {
303 ⑰ get_person_photos — 某人出现的照片(args: person_name, limit默认10) 303 ⑰ get_person_photos — 某人出现的照片(args: person_name, limit默认10)
304 ⑱ get_followups — 待跟进事项(args: 无) 304 ⑱ get_followups — 待跟进事项(args: 无)
305 305
  306 + 【关系网络 & 组织】
  307 + ⑲ get_stale_contacts — 列出长期未联系的人(args: min_days默认30, limit默认20)
  308 + ⑳ get_org_members — 查某组织的成员列表(args: org_name)
  309 + ㉑ link_person_org — 将人物关联到组织/公司(args: person_name, org_name, kind可选company|school|org|project, role可选, start_date可选如2023-01, end_date可选)
  310 + ㉒ find_relevant_persons — 根据目标找最相关的人「谁能帮我」(args: goal, limit默认10)
  311 +
306 【数据刷新】 312 【数据刷新】
307 - ⑲ refresh_person_data — 刷新某人微信聊天+朋友圈(args: person_name) 313 + ㉓ refresh_person_data — 刷新某人微信聊天+朋友圈(args: person_name)
308 ★ 查询某人聊天/朋友圈/时间线前,必须先调此工具确保数据最新! 314 ★ 查询某人聊天/朋友圈/时间线前,必须先调此工具确保数据最新!
309 315
310 【全网搜索】 316 【全网搜索】
311 - ⑳ web_search — Tavily 搜索互联网(args: query, max_results默认5;需设置中配置 Key) 317 + ㉔ web_search — Tavily 搜索互联网(args: query, max_results默认5;需设置中配置 Key)
312 318
313 需要查询时,输出(每个工具独占一行,严格 JSON): 319 需要查询时,输出(每个工具独占一行,严格 JSON):
314 TOOL_CALL: {"name": "工具名", "args": {"参数": "值"}} 320 TOOL_CALL: {"name": "工具名", "args": {"参数": "值"}}