From 193d581ea4b4441f3618e95f84fa181e671f428c Mon Sep 17 00:00:00 2001 From: Jason Schleifer Date: Mon, 22 Jul 2024 17:06:53 +1200 Subject: [PATCH] remove output as list --- nodes/agent/BaseAgent.py | 3 ++- nodes/combine/RulesList.py | 2 +- nodes/combine/ToolList.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/nodes/agent/BaseAgent.py b/nodes/agent/BaseAgent.py index 4535a5b..8ed55e2 100644 --- a/nodes/agent/BaseAgent.py +++ b/nodes/agent/BaseAgent.py @@ -116,10 +116,11 @@ class BaseAgent: if config: create_dict["config"] = config elif agent: + config = agent.config create_dict["config"] = agent.config # Tools - create_dict["tools"] = self.tool_check(create_dict["config"], tools) + create_dict["tools"] = self.tool_check(config, tools) # Rulesets if len(rulesets) > 0: diff --git a/nodes/combine/RulesList.py b/nodes/combine/RulesList.py index c5fd6d1..db02ba9 100644 --- a/nodes/combine/RulesList.py +++ b/nodes/combine/RulesList.py @@ -19,7 +19,7 @@ class RulesList: RETURN_TYPES = ("RULESET",) RETURN_NAMES = ("RULESET",) FUNCTION = "create" - OUTPUT_IS_LIST = (True,) + # OUTPUT_IS_LIST = (True,) CATEGORY = "Griptape/Agent Rules" def create(self, **kwargs): diff --git a/nodes/combine/ToolList.py b/nodes/combine/ToolList.py index 63a1f2b..37eb2e4 100644 --- a/nodes/combine/ToolList.py +++ b/nodes/combine/ToolList.py @@ -19,7 +19,7 @@ class ToolList: RETURN_TYPES = ("TOOL_LIST",) RETURN_NAMES = ("TOOL_LIST",) FUNCTION = "create" - OUTPUT_IS_LIST = (True,) + # OUTPUT_IS_LIST = (True,) CATEGORY = "Griptape/Agent Tools"