dify/api/core/workflow/nodes
Yansong Zhang e04f00d29b feat(api): add context injection and Jinja2 support to Agent V2 node
Agent V2 now fully covers all LLM node capabilities:
- Context injection: {{#context#}} placeholder replaced with upstream
  knowledge retrieval results via _build_context_string()
- Jinja2 template rendering via _render_jinja2() with variable pool
- Multi-variable references across upstream nodes

Compatibility verified (7/7):
- T1: Context injection ({{#context#}})
- T2: Variable template resolution ({{#start.var#}})
- T3: Multi-upstream variable refs
- T4: Old Chat app with opening_statement
- T5: Old app sensitive_word_avoidance
- T6: Old app more_like_this
- T7: Old Completion app with variable substitution

Made-with: Cursor
2026-04-10 17:05:48 +08:00
..
agent refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
agent_v2 feat(api): add context injection and Jinja2 support to Agent V2 node 2026-04-10 17:05:48 +08:00
command refactor(api): replace legacy agent runners with StrategyFactory in AgentChatAppRunner (Phase 4) 2026-04-09 09:42:23 +08:00
datasource refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
file_upload refactor(api): replace legacy agent runners with StrategyFactory in AgentChatAppRunner (Phase 4) 2026-04-09 09:42:23 +08:00
knowledge_index refactor(api): migrate consumers to shared RAG domain entities from core/rag/entities/ (#34692) 2026-04-07 23:22:56 +00:00
knowledge_retrieval refactor(api): migrate consumers to shared RAG domain entities from core/rag/entities/ (#34692) 2026-04-07 23:22:56 +00:00
trigger_plugin refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
trigger_schedule refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
trigger_webhook chore: normalize frozenset literals and myscale typing (#34327) 2026-03-31 08:21:22 +00:00
__init__.py refactor(api): move workflow knowledge nodes and trigger nodes (#33445) 2026-03-15 15:24:59 +08:00