From e90b59b4993db1ccf449ba39ad9e1eeb593d9ccd Mon Sep 17 00:00:00 2001 From: Fluder-Paradyne <121793617+Fluder-Paradyne@users.noreply.github.com> Date: Fri, 11 Aug 2023 20:00:15 +0530 Subject: [PATCH] add small check (#1046) --- superagi/controllers/agent_execution.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superagi/controllers/agent_execution.py b/superagi/controllers/agent_execution.py index ed6506a1f..743aae05b 100644 --- a/superagi/controllers/agent_execution.py +++ b/superagi/controllers/agent_execution.py @@ -102,7 +102,7 @@ def create_agent_execution(agent_execution: AgentExecutionIn, if agent_config.key not in keys_to_exclude: if agent_config.key == "toolkits": if agent_config.value: - toolkits = [int(item) for item in agent_config.value.strip('{}').split(',') if item.strip()] + toolkits = [int(item) for item in agent_config.value.strip('{}').split(',') if item.strip() and item != '[]'] agent_execution_configs[agent_config.key] = toolkits else: agent_execution_configs[agent_config.key] = []