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:
Kevin Hu
2025-08-27 11:46:15 +08:00
committed by GitHub
parent ba1063c2b9
commit a914535344
2 changed files with 5 additions and 1 deletions

View File

@ -469,6 +469,9 @@ class Canvas:
def get_prologue(self):
return self.components["begin"]["obj"]._param.prologue
def get_mode(self):
return self.components["begin"]["obj"]._param.mode
def set_global_param(self, **kwargs):
self.globals.update(kwargs)

View File

@ -865,7 +865,8 @@ def begin_inputs(agent_id):
"title": cvs.title,
"avatar": cvs.avatar,
"inputs": canvas.get_component_input_form("begin"),
"prologue": canvas.get_prologue()
"prologue": canvas.get_prologue(),
"mode": canvas.get_mode()
}
)