feat: knowledge workflow
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run

This commit is contained in:
shaohuzhang1 2025-11-12 10:19:17 +08:00
parent 4ee70651e7
commit 8df567fb79
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ class BaseDataSourceLocalNode(IDataSourceLocalNode):
@staticmethod
def get_form_class():
return BaseDataSourceLocalNodeForm()
return BaseDataSourceLocalNodeForm
def execute(self, file_format, max_file_number, file_max_size, **kwargs) -> NodeResult:
pass

View File

@ -32,7 +32,7 @@ class KnowledgeWorkflowSerializer(serializers.Serializer):
self.is_valid(raise_exception=True)
if self.data.get('type') == 'local':
node = get_node(self.data.get('id'))
return node.get_form_class().to_form_list()
return node.get_form_class()().to_form_list()
elif self.data.get('type') == 'tool':
tool = QuerySet(Tool).filter(id=self.data.get("id")).first()
# todo 调用工具数据源的函数获取表单列表