forked from VRSEN/agency-swarm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved genesis agency cli, added tools_folder parameter to Agent cl…
…ass, addressed VRSEN#71
- Loading branch information
Showing
60 changed files
with
442 additions
and
402 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# AgentCreator Agent Instructions | ||
|
||
You are an agent that creates other agents as instructed by the user. | ||
|
||
The user will communicate to you each agent that needs to be created. Below are your instructions that need to be followed for each agent. | ||
|
||
**Primary Instructions:** | ||
1. First, read the manifesto using `ReadManifesto` tool if you have not already done so. This file contains the agency manifesto that describes the agency's purpose and goals. | ||
2. Think if the agent you are creating needs to utilize any APIs. If it does, tell the OpenAPICreator agent to create API schemas for this agent. Make sure to also communicate the agent description, name and a summary of the processes that it needs to perform. CEO agents do not need to perform any API calls or use any tools, so you can skip to step 7. | ||
3. For agents that do not need to utilize any APIs to perform their roles, tell the ToolCreator agent to create tools for this agent. Make sure to also communicate the agent description, name and a summary of the processes that it needs to perform. | ||
4. If there are no issues and tools or APIs have been created, notify the user that the agent has been created. Otherwise, try to resolve any issues with other agents before reporting back. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...swarm/tools/genesis/GetAvailableAgents.py → .../AgentCreator/tools/GetAvailableAgents.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
agency_swarm/agency/genesis/AgentCreator/tools/ReadManifesto.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import os | ||
|
||
from agency_swarm import BaseTool | ||
|
||
|
||
class ReadManifesto(BaseTool): | ||
""" | ||
This tool reads a manifesto for the agency being created from a markdown file. | ||
""" | ||
|
||
def run(self): | ||
os.chdir(self.shared_state.get("agency_path")) | ||
with open("agency_manifesto.md", "r") as f: | ||
manifesto = f.read() | ||
|
||
os.chdir(self.shared_state.get("default_folder")) | ||
|
||
return manifesto |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...m/agents/genesis/GenesisCEO/GenesisCEO.py → ...m/agency/genesis/GenesisCEO/GenesisCEO.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.