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: query will be None if the query_prompt_template not exists (#11031)
-LAN-60b5dac3ab50
diff --git a/api/core/workflow/nodes/llm/node.py b/api/core/workflow/nodes/llm/node.pyindex 2529c769426..4a6f0ecae9b 100644--- a/api/core/workflow/nodes/llm/node.py+++ b/api/core/workflow/nodes/llm/node.py@@ -38,6 +38,7 @@ from core.variables import (ObjectSegment,StringSegment,)+from core.workflow.constants import SYSTEM_VARIABLE_NODE_IDfrom core.workflow.entities.node_entities import NodeRunMetadataKey, NodeRunResultfrom core.workflow.entities.variable_entities import VariableSelectorfrom core.workflow.entities.variable_pool import VariablePool@@ -133,11 +134,15 @@ class LLMNode(BaseNode[LLMNodeData]):# fetch memorymemory = self._fetch_memory(node_data_memory=self.node_data.memory, model_instance=model_instance)- # fetch prompt messages+ query = Noneif self.node_data.memory:query = self.node_data.memory.query_prompt_template- else:- query = None+ if query is None and (+ query_variable := self.graph_runtime_state.variable_pool.get(+ (SYSTEM_VARIABLE_NODE_ID, SystemVariableKey.QUERY)+ )+ ):+ query = query_variable.textprompt_messages, stop = self._fetch_prompt_messages(user_query=query,