Skip to content

Commit

Permalink
code cleanup with black
Browse files Browse the repository at this point in the history
  • Loading branch information
kyegomez committed Feb 20, 2025
1 parent 45357db commit fb5e1d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions duo_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
max_tokens=4000,
saved_state_path="equity_analyst_1.json",
interactive=False,
roles="analyst"
roles="analyst",
)

equity_analyst_2 = Agent(
agent_name="Equity-Analyst-2",
agent_name="Equity-Analyst-2",
agent_description="Equity research analyst focused on technical analysis",
system_prompt=FINANCIAL_AGENT_SYS_PROMPT,
max_loops=1,
Expand All @@ -39,11 +39,11 @@
max_tokens=4000,
saved_state_path="equity_analyst_2.json",
interactive=False,
roles="analyst"
roles="analyst",
)

# Run analysis with both analysts
equity_analyst_1.talk_to(
equity_analyst_2,
"Analyze high growth tech stocks focusing on fundamentals like revenue growth, margins, and market position. Create a detailed analysis table in markdown."
"Analyze high growth tech stocks focusing on fundamentals like revenue growth, margins, and market position. Create a detailed analysis table in markdown.",
)
4 changes: 3 additions & 1 deletion swarms/structs/groupchat.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,9 @@ def reliability_check(self):
ValueError: If any required components are missing or invalid
"""
if len(self.agents) < 2:
raise ValueError("At least two agents are required for a group chat")
raise ValueError(
"At least two agents are required for a group chat"
)
if self.speaker_fn is None:
raise ValueError("No speaker function provided")
if self.max_loops <= 0:
Expand Down

0 comments on commit fb5e1d8

Please sign in to comment.