Skip to content

Commit

Permalink
add small check (#1046)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fluder-Paradyne committed Aug 11, 2023
1 parent 0c77bf1 commit e90b59b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superagi/controllers/agent_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -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] = []
Expand Down

0 comments on commit e90b59b

Please sign in to comment.