Skip to content

Commit b18fb6e

Browse files
committed
feat: enhance TOOL field handling to include skill_tool_ids
1 parent 10edeb5 commit b18fb6e

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

apps/application/flow/tools.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -615,10 +615,16 @@ def get_workflow_resource(workflow, node_handle):
615615

616616

617617
application_instance_field_call_dict = {
618-
'TOOL': [lambda instance: instance.mcp_tool_ids or [], lambda instance: instance.tool_ids or []],
619-
'MODEL': [lambda instance: [instance.model_id] if instance.model_id else [],
620-
lambda instance: [instance.tts_model_id] if instance.tts_model_id else [],
621-
lambda instance: [instance.stt_model_id] if instance.stt_model_id else []]
618+
'TOOL': [
619+
lambda instance: instance.mcp_tool_ids or [],
620+
lambda instance: instance.skill_tool_ids or [],
621+
lambda instance: instance.tool_ids or []
622+
],
623+
'MODEL': [
624+
lambda instance: [instance.model_id] if instance.model_id else [],
625+
lambda instance: [instance.tts_model_id] if instance.tts_model_id else [],
626+
lambda instance: [instance.stt_model_id] if instance.stt_model_id else []
627+
]
622628
}
623629
knowledge_instance_field_call_dict = {
624630
'MODEL': [lambda instance: [instance.embedding_model_id] if instance.embedding_model_id else []],

0 commit comments

Comments
 (0)