mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
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:
@ -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()
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user