feat: 添加节点名称

This commit is contained in:
shaohuzhang1 2024-06-24 15:55:55 +08:00
parent b69378b03e
commit b275abe5cd
6 changed files with 6 additions and 0 deletions

View File

@ -170,6 +170,7 @@ class BaseChatNode(IChatNode):
def get_details(self, index: int, **kwargs):
return {
'name':self.node.properties.get('stepName'),
"index": index,
'run_time': self.context.get('run_time'),
'system': self.node_params.get('system'),

View File

@ -39,6 +39,7 @@ class BaseConditionNode(IConditionNode):
def get_details(self, index: int, **kwargs):
return {
'name': self.node.properties.get('stepName'),
"index": index,
'run_time': self.context.get('run_time'),
'branch_id': self.context.get('branch_id'),

View File

@ -80,6 +80,7 @@ class BaseReplyNode(IReplyNode):
def get_details(self, index: int, **kwargs):
return {
'name': self.node.properties.get('stepName'),
"index": index,
'run_time': self.context.get('run_time'),
'type': self.node.type,

View File

@ -167,6 +167,7 @@ class BaseQuestionNode(IQuestionNode):
def get_details(self, index: int, **kwargs):
return {
'name': self.node.properties.get('stepName'),
"index": index,
'run_time': self.context.get('run_time'),
'system': self.node_params.get('system'),

View File

@ -80,6 +80,7 @@ class BaseSearchDatasetNode(ISearchDatasetStepNode):
def get_details(self, index: int, **kwargs):
return {
'name': self.node.properties.get('stepName'),
"index": index,
'run_time': self.context.get('run_time'),
'paragraph_list': self.context.get('paragraph_list'),

View File

@ -21,6 +21,7 @@ class BaseStartStepNode(IStarNode):
def get_details(self, index: int, **kwargs):
return {
'name': self.node.properties.get('stepName'),
"index": index,
"question": self.context.get('question'),
'run_time': self.context.get('run_time'),