Skip to content

Commit

Permalink
Updated code solution agency for latest agency-swarm
Browse files Browse the repository at this point in the history
  • Loading branch information
VRSEN committed May 13, 2024
1 parent b042445 commit bad05e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CodeSolutionAgency/BrowsingAgent/BrowsingAgent.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ def __init__(self, selenium_config=None):
files_folder="./files",
schemas_folder="./schemas",
tools=[Retrieval],
tools_folder="./tools"
tools_folder="./tools",
temperature=0.0,
)

if selenium_config is not None:
Expand Down
5 changes: 2 additions & 3 deletions CodeSolutionAgency/PlannerAgent/PlannerAgent.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from agency_swarm.agents import Agent


class PlannerAgent(Agent):
def __init__(self):
super().__init__(
Expand All @@ -12,7 +11,7 @@ def __init__(self):
files_folder="./files",
schemas_folder="./schemas",
tools=[],
tools_folder="./tools"
tools_folder="./tools",
)

def response_validator(self, message):
Expand All @@ -22,7 +21,7 @@ def response_validator(self, message):
"completed, without implying that the process has merely started or that the agent "
"awaits additional directives. In the event of any complications, include in the "
"'reason' argument detailed advice on how to proceed.",
openai_client=self.client)(message)
client=self.client)(message)
except Exception as e:
raise ValueError(f"Error: '{e}'.\n"
f"Remember, you must continue sending messages to agents until the task is fully completed.")
Expand Down

0 comments on commit bad05e1

Please sign in to comment.