Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: ensure original response are maintained by yielding text messages in ApiTool (#23456) (#25973)
Yeuoly4047a6bb12bc
diff --git a/api/core/tools/custom_tool/tool.py b/api/core/tools/custom_tool/tool.pyindex 13dd2114d3c..34d0f5c6228 100644--- a/api/core/tools/custom_tool/tool.py+++ b/api/core/tools/custom_tool/tool.py@@ -396,6 +396,10 @@ class ApiTool(Tool):# assemble invoke message based on response typeif parsed_response.is_json and isinstance(parsed_response.content, dict):yield self.create_json_message(parsed_response.content)++ # FIXES: https://github.com/langgenius/dify/pull/23456#issuecomment-3182413088+ # We need never break the original flows+ yield self.create_text_message(response.text)else:# Convert to string if needed and create text messagetext_response = (