Skip to content

Commit

Permalink
Create agents dir when it doesn't exist. Fix Josh-XT#28
Browse files Browse the repository at this point in the history
  • Loading branch information
eraviart committed Apr 22, 2023
1 parent 2ca6053 commit b257741
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Config.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ def delete_agent(self, agent_name):

def get_agents(self):
memories_dir = "agents"
if not os.path.exists(memories_dir):
os.makedirs(memories_dir)
agents = []
for file in os.listdir(memories_dir):
if file.endswith(".yaml"):
Expand Down

0 comments on commit b257741

Please sign in to comment.