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 Unnecessary Newline Characters in Extracted Tool Response Text (#4646)
kronus-hof56b984d973c
diff --git a/api/core/workflow/nodes/tool/tool_node.py b/api/core/workflow/nodes/tool/tool_node.pyindex a08e25db9e9..edfff593dcd 100644--- a/api/core/workflow/nodes/tool/tool_node.py+++ b/api/core/workflow/nodes/tool/tool_node.py@@ -173,11 +173,12 @@ class ToolNode(BaseNode):"""Extract tool response text"""- return ''.join([- f'{message.message}\n' if message.type == ToolInvokeMessage.MessageType.TEXT else- f'Link: {message.message}\n' if message.type == ToolInvokeMessage.MessageType.LINK else ''+ return '\n'.join([+ f'{message.message}' if message.type == ToolInvokeMessage.MessageType.TEXT else+ f'Link: {message.message}' if message.type == ToolInvokeMessage.MessageType.LINK else ''for message in tool_response])+@classmethoddef _extract_variable_selector_to_variable_mapping(cls, node_data: ToolNodeData) -> dict[str, list[str]]: