FEAT: NEW WORKFLOW ENGINE (#3160)
Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: Yeuoly <admin@srmxy.cn> Co-authored-by: JzoNg <jzongcode@gmail.com> Co-authored-by: StyleZhang <jasonapring2015@outlook.com> Co-authored-by: jyong <jyong@dify.ai> Co-authored-by: nite-knite <nkCoding@gmail.com> Co-authored-by: jyong <718720800@qq.com>
This commit is contained in:
@@ -58,7 +58,7 @@ class PublishedAppTool(db.Model):
|
||||
description = db.Column(db.Text, nullable=False)
|
||||
# llm_description of the tool, for LLM
|
||||
llm_description = db.Column(db.Text, nullable=False)
|
||||
# query decription, query will be seem as a parameter of the tool, to describe this parameter to llm, we need this field
|
||||
# query description, query will be seem as a parameter of the tool, to describe this parameter to llm, we need this field
|
||||
query_description = db.Column(db.Text, nullable=False)
|
||||
# query name, the name of the query parameter
|
||||
query_name = db.Column(db.String(40), nullable=False)
|
||||
@@ -123,10 +123,6 @@ class ApiToolProvider(db.Model):
|
||||
def credentials(self) -> dict:
|
||||
return json.loads(self.credentials_str)
|
||||
|
||||
@property
|
||||
def is_taned(self) -> bool:
|
||||
return self.tenant_id is not None
|
||||
|
||||
@property
|
||||
def user(self) -> Account:
|
||||
return db.session.query(Account).filter(Account.id == self.user_id).first()
|
||||
@@ -218,7 +214,7 @@ class ToolFile(db.Model):
|
||||
# tenant id
|
||||
tenant_id = db.Column(UUID, nullable=False)
|
||||
# conversation id
|
||||
conversation_id = db.Column(UUID, nullable=False)
|
||||
conversation_id = db.Column(UUID, nullable=True)
|
||||
# file key
|
||||
file_key = db.Column(db.String(255), nullable=False)
|
||||
# mime type
|
||||
|
Reference in New Issue
Block a user