跳到正文
原文
AGI Hunt· DisturbedCrow·· 2026-10-30AI 评分32

Gemini CLI 新 PR:Before/AfterTool 钩子将暴露 tool_call_id

AI 导读

Gemini CLI PR #30043 计划在 BeforeTool 与 AfterTool 钩子输入中携带 tool_call_id,并把请求现有 call ID 贯穿两条 hook 路径。该字段用于配对工具调用前后事件,无请求 ID 的直接 hook 调用中保持可选。PR 关联 issue #29975,已通过 core 工作区类型检查与全部 422 个测试文件。

来源:AGI Hunt · agihunt.info