mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
feat: knowledge workflow
This commit is contained in:
parent
4ee70651e7
commit
8df567fb79
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 调用工具数据源的函数获取表单列表
|
||||
|
|
|
|||
Loading…
Reference in New Issue