mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
propose_plan_v1 was shown REQUIREMENTS only. It cannot plan a tool step for a tool it has never seen, so the ESQ1-302 plan said "http-request 节点:调用外部PPT生成API" while the tenant had a ready Markdown -> PPTX tool -- and every later stage (resource recommendation, the shared generator, the directive) took the plan's word for it. ready_tool_catalogue lists the tenant's READY tools (an installed-but- unauthorized tool cannot cover a step), sorted and capped at 40; the planner prompt gains an "Installed tools you may name" section and tells the planner to plan an http-request only for an endpoint the user actually supplied. A listing failure degrades to the old no-catalogue prompt, never a crashed advance. The positional signature is unchanged. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>