mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
Meeting item 9 asked for per-node usage detail in the generator prompts. Those prompts are shared with cmd+K, so the detail rides the channel the Builder already owns instead: _WORKFLOW_TOPOLOGY_DIRECTIVE, prepended to every generator instruction at build.py:377 and invisible to cmd+K. That mechanism is proven -- it is why workflow mode never gets 'answer' nodes. The rules added are the ones that broke real builds: tool nodes expose text/files/json and not 'result' (ESQ1-296, ESQ1-289), document-extractor needs a file input, container children belong inside the container (ESQ1-288), if-else operators must match the variable's type (ESQ1-285/290), and http-request inputs belong on the start node (ESQ1-286). Deliberately does NOT restate the node whitelist: the generator's shared system prompt already carries it, and duplicating it would burn planner output budget that ESQ1-300 already implicates. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>