Fix: add mode for embeded agent. (#9741)
### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
ba1063c2b9
commit
a914535344
2 changed files with 5 additions and 1 deletions
|
|
@ -469,6 +469,9 @@ class Canvas:
|
||||||
def get_prologue(self):
|
def get_prologue(self):
|
||||||
return self.components["begin"]["obj"]._param.prologue
|
return self.components["begin"]["obj"]._param.prologue
|
||||||
|
|
||||||
|
def get_mode(self):
|
||||||
|
return self.components["begin"]["obj"]._param.mode
|
||||||
|
|
||||||
def set_global_param(self, **kwargs):
|
def set_global_param(self, **kwargs):
|
||||||
self.globals.update(kwargs)
|
self.globals.update(kwargs)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -865,7 +865,8 @@ def begin_inputs(agent_id):
|
||||||
"title": cvs.title,
|
"title": cvs.title,
|
||||||
"avatar": cvs.avatar,
|
"avatar": cvs.avatar,
|
||||||
"inputs": canvas.get_component_input_form("begin"),
|
"inputs": canvas.get_component_input_form("begin"),
|
||||||
"prologue": canvas.get_prologue()
|
"prologue": canvas.get_prologue(),
|
||||||
|
"mode": canvas.get_mode()
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue