Spaces:
Runtime error
Runtime error
File size: 2,523 Bytes
e7ece9c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
import autogen
from ..agentics.agents import AgentsFactory
# agents_factory = AgentsFactory()
# Function to reset agents
def _reset_agents():
boss_aid.reset()
# Define functions for each team
def codingteam():
_reset_agents()
team = autogen.GroupChat(
agents=[scitonic, coder, pm, reviewer],
messages=[],
max_round=12,
speaker_selection_method="round_robin"
)
manager = autogen.GroupChatManager(groupchat=team, llm_config=llm_config)
boss_aid.initiate_chat(manager, problem=PROBLEM, n_results=3)
def covid19team():
_reset_agents()
team = autogen.GroupChat(
agents=[scitonic, covid19_scientist, healthcare_expert, finance_analyst],
messages=[],
max_round=12
)
manager = autogen.GroupChatManager(groupchat=team, llm_config=llm_config)
boss_aid.initiate_chat(manager, covid19_problem=COVID19_PROBLEM, n_results=3)
def financeteam():
_reset_agents()
team = autogen.GroupChat(
agents=[scitonic, finance_analyst, pm, reviewer, finance_expert],
messages=[],
max_round=12,
speaker_selection_method="round_robin"
)
manager = autogen.GroupChatManager(groupchat=team, llm_config=llm_config)
boss_aid.initiate_chat(manager, finance_problem=FINANCE_PROBLEM, n_results=3)
def debateteam():
_reset_agents()
team = autogen.GroupChat(
agents=[scitonic, debate_expert, pm, reviewer, debate_champion],
messages=[],
max_round=12,
speaker_selection_method="round_robin"
)
manager = autogen.GroupChatManager(groupchat=team, llm_config=llm_config)
boss_aid.initiate_chat(manager, debate_problem=DEBATE_PROBLEM, n_results=3)
def homeworkteam():
_reset_agents()
team = autogen.GroupChat(
agents=[scitonic, academic_expert, pm, reviewer, academic_whiz],
messages=[],
max_round=12,
speaker_selection_method="round_robin"
)
manager = autogen.GroupChatManager(groupchat=team, llm_config=llm_config)
boss_aid.initiate_chat(manager, homework_problem=HOMEWORK_PROBLEM, n_results=3)
def consultingteam():
_reset_agents()
team = autogen.GroupChat(
agents=[scitonic, consultant, pm, reviewer, consulting_pro],
messages=[],
max_round=12,
speaker_selection_method="round_robin"
)
manager = autogen.GroupChatManager(groupchat=team, llm_config=llm_config)
boss_aid.initiate_chat(manager, consulting_problem=CONSULTING_PROBLEM, n_results=3) |