mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Python: Support an autonomous handoff flow (#2497)
* Support an autonomous handoff flow. * Simplify public API * Address feedback
This commit is contained in:
committed by
GitHub
Unverified
parent
f2ed5b55f6
commit
b78a2b6d2e
@@ -38,7 +38,7 @@ async def main() -> None:
|
||||
|
||||
workflow = (
|
||||
GroupChatBuilder()
|
||||
.set_prompt_based_manager(chat_client=OpenAIChatClient(), display_name="Coordinator")
|
||||
.set_manager(manager=OpenAIChatClient().create_agent(), display_name="Coordinator")
|
||||
.participants(researcher=researcher, writer=writer)
|
||||
.build()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user