Skip to content

Commit

Permalink
fixed the error (#900)
Browse files Browse the repository at this point in the history
  • Loading branch information
anisha1607 committed Jul 28, 2023
1 parent 0f03338 commit 9dedb9c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion superagi/models/agent_template.py
Expand Up @@ -194,7 +194,10 @@ def eval_agent_config(cls, key, value):
if key in ["name", "description", "agent_type", "exit", "model", "permission_type", "LTM_DB"]:
return value
elif key in ["project_id", "memory_window", "max_iterations", "iteration_interval", "knowledge"]:
return int(value)
if value is not None and value != 'None':
return int(value)
else:
return None
elif key == "goal" or key == "constraints" or key == "instruction":
return eval(value)
elif key == "tools":
Expand Down

0 comments on commit 9dedb9c

Please sign in to comment.