You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: python/packages/autogen-agentchat/src/autogen_agentchat/teams/_group_chat/_magentic_one/_magentic_one_group_chat.py
+5
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
from ....baseimportChatAgent, TerminationCondition
8
8
from .._base_group_chatimportBaseGroupChat
9
9
from ._magentic_one_orchestratorimportMagenticOneOrchestrator
10
+
from ._promptsimportORCHESTRATOR_FINAL_ANSWER_PROMPT
10
11
11
12
trace_logger=logging.getLogger(TRACE_LOGGER_NAME)
12
13
event_logger=logging.getLogger(EVENT_LOGGER_NAME)
@@ -25,6 +26,7 @@ class MagenticOneGroupChat(BaseGroupChat):
25
26
Without a termination condition, the group chat will run based on the orchestrator logic or until the maximum number of turns is reached.
26
27
max_turns (int, optional): The maximum number of turns in the group chat before stopping. Defaults to 20.
27
28
max_stalls (int, optional): The maximum number of stalls allowed before re-planning. Defaults to 3.
29
+
final_answer_prompt (str, optional): The LLM prompt used to generate the final answer or response from the team's transcript. A default (sensible for GPT-4o class models) is provided.
28
30
29
31
Raises:
30
32
ValueError: In orchestration logic if progress ledger does not have required keys or if next speaker is not valid.
Copy file name to clipboardexpand all lines: python/packages/autogen-agentchat/src/autogen_agentchat/teams/_group_chat/_magentic_one/_magentic_one_orchestrator.py
0 commit comments