refactor(api/core/app/segments): Support more kinds of Segments. (#6706)
Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
parent
6b50bb0fe6
commit
c6996a48a4
11 changed files with 147 additions and 96 deletions
|
|
@ -126,6 +126,7 @@ class ToolNode(BaseNode):
|
|||
else:
|
||||
tool_input = node_data.tool_parameters[parameter_name]
|
||||
if tool_input.type == 'variable':
|
||||
# TODO: check if the variable exists in the variable pool
|
||||
parameter_value = variable_pool.get(tool_input.value).value
|
||||
else:
|
||||
segment_group = parser.convert_template(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue