From b78439b33448def7a3bc0d35fdb92d0b9bf6ed80 Mon Sep 17 00:00:00 2001 From: Harry Date: Mon, 12 Jan 2026 15:52:18 +0800 Subject: [PATCH] refactor(llm): update model features handling and change agent strategy to FUNCTION_CALLING --- api/core/workflow/nodes/llm/node.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/core/workflow/nodes/llm/node.py b/api/core/workflow/nodes/llm/node.py index 8a55217f42..7f513e2e16 100644 --- a/api/core/workflow/nodes/llm/node.py +++ b/api/core/workflow/nodes/llm/node.py @@ -1603,14 +1603,15 @@ class LLMNode(Node[LLMNodeData]): tools=configured_tools, ) as sandbox_session: prompt_files = self._extract_prompt_files(variable_pool) + model_features = self._get_model_features(model_instance) strategy = StrategyFactory.create_strategy( - model_features=[], + model_features=model_features, model_instance=model_instance, tools=[sandbox_session.bash_tool], files=prompt_files, max_iterations=self._node_data.max_iterations or 100, - agent_strategy=AgentEntity.Strategy.CHAIN_OF_THOUGHT, + agent_strategy=AgentEntity.Strategy.FUNCTION_CALLING, context=ExecutionContext(user_id=self.user_id, app_id=self.app_id, tenant_id=self.tenant_id), )