Skip to content

Commit

Permalink
imp
Browse files Browse the repository at this point in the history
  • Loading branch information
fatihozturkh2o committed Sep 6, 2024
1 parent 228561e commit 52d0f14
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions openai_server/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ def get_code_group_chat_manager(
max_round:int,
executor,
) -> H2OGroupChatManager:
"""
Returns a group chat manager for code writing and execution.
The group chat manager contains two agents: code_writer_agent and code_executor_agent.
Each time group chat manager is called, it will call code_writer_agent first and then code_executor_agent in order.
"""
code_writer_agent = get_code_writer_agent(
code_writer_system_prompt=code_writer_system_prompt,
llm_config=llm_config,
Expand Down Expand Up @@ -164,6 +169,11 @@ def get_main_group_chat_manager(
agents:list,
max_round:int,
) -> H2OGroupChatManager:
"""
Returns Main Group Chat Manager to distribute the roles among the agents.
The main group chat manager can contain multiple agents.
Uses LLMs to select the next agent to play the role.
"""
select_speaker_message_template = (
"You are in a role play game. The following roles are available:"
"{roles}."
Expand Down

0 comments on commit 52d0f14

Please sign in to comment.