fix
This commit is contained in:
parent
ad3bb997ee
commit
1a8d5561e9
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ class PromptNode(Node):
|
|||
)
|
||||
# flatten the list of tools if it is a list of lists
|
||||
# first check if it is a list
|
||||
if isinstance(tools, list) and isinstance(tools[0], list):
|
||||
if tools and isinstance(tools, list) and isinstance(tools[0], list):
|
||||
tools = [tool for sublist in tools for tool in sublist]
|
||||
|
||||
self.params["tools"] = tools
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue