Skip to content

Commit b2c59d5

Browse files
authored
fix: [Tool] The workflow tool references a regular tool, and the return value after calling the regular tool is empty (#5022)
1 parent 0a65e50 commit b2c59d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/application/flow/step_node/tool_lib_node/impl/base_tool_lib_node.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,11 @@ def tool_exec_record(self, tool_lib, all_params):
266266
source_id = self.workflow_manage.params.get('knowledge_id')
267267
source_type = ToolTaskTypeChoices.KNOWLEDGE.value
268268
elif [WorkflowMode.TOOL, WorkflowMode.TOOL_LOOP].__contains__(self.workflow_manage.flow.workflow_mode):
269-
source_id = self.workflow_manage.params.get('application_id')
270-
source_type = ToolTaskTypeChoices.APPLICATION.value
271-
else:
272269
source_id = self.workflow_manage.params.get('tool_id')
273270
source_type = ToolTaskTypeChoices.TOOL.value
271+
else:
272+
source_id = self.workflow_manage.params.get('application_id')
273+
source_type = ToolTaskTypeChoices.APPLICATION.value
274274

275275
ToolRecord(
276276
id=task_record_id,

0 commit comments

Comments
 (0)