Skip to content

Commit

Permalink
Added BrowsingAgent and modified agency communication flows
Browse files Browse the repository at this point in the history
  • Loading branch information
kevon217 committed Jan 14, 2024
1 parent ea2c031 commit 7bb7ce1
Show file tree
Hide file tree
Showing 4 changed files with 872 additions and 160 deletions.
29 changes: 20 additions & 9 deletions custom_agency_swarms/CodeGents/Coders.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import os
from agency_swarm import Agent, Agency
from agency_swarm.agents.browsing import BrowsingAgent
from agency_swarm.tools import Retrieval, CodeInterpreter
from instructions import (
ceo_instructions,
req_analyst_instructions,
Expand Down Expand Up @@ -36,20 +38,27 @@
tools=[],
)

selenium_config = {
"chrome_profile_path": "C:\\Users\\Kevin\\AppData\\Local\\Google\\Chrome\\User Data\\Profile 3", # Replace with your actual profile path
"headless": False,
}

browser = BrowsingAgent(selenium_config=selenium_config)

req_analyst = Agent(
name="CodeGents_REQ-ANALYST",
description="Analyzes and articulates project requirements, ensuring clarity and feasibility.",
instructions=req_analyst_instructions,
files_folder=None,
tools=[],
tools=[SearchWeb],
)

sys_designer = Agent(
name="CodeGents_SYS-DESIGNER",
description="Designs the system's structure, integrating SOLID principles and best practices.",
instructions=sys_designer_instructions,
files_folder=None,
tools=[SearchWeb],
tools=[],
)

py_dev = Agent(
Expand Down Expand Up @@ -80,7 +89,7 @@
description="Oversees system architecture, guiding structural decisions and ensuring alignment with design and development.",
instructions=sys_architect_instructions,
files_folder=None,
tools=[SearchWeb],
tools=[],
)


Expand All @@ -95,15 +104,17 @@
agency = Agency(
[
ceo,
[ceo, browser],
[ceo, req_analyst],
[ceo, sys_designer],
[ceo, py_dev],
[ceo, code_reviewer],
[ceo, sys_architect],
[req_analyst, browser],
[req_analyst, sys_designer],
[sys_designer, sys_architect],
[sys_designer, py_dev],
[py_dev, sys_designer],
[req_analyst, py_dev],
[req_analyst, sys_architect],
[py_dev, code_reviewer],
[code_reviewer, ceo],
[sys_architect, sys_designer],
[sys_architect, ceo],
],
shared_instructions=shared_instructions,
)
Expand Down
Loading

0 comments on commit 7bb7ce1

Please sign in to comment.