import asyncio from autogen_agentchat.agents import AssistantAgent, UserProxyAgent from autogen_agentchat.conditions import TextMentionTermination from autogen_agentchat.teams import RoundRobinGroupChat from autogen_agentchat.ui import Console from autogen_ext.models.openai import OpenAIChatCompletionClient from autogen_ext.agents.web_surfer import MultimodalWebSurfer
asyncdefmain() -> None: model_client = OpenAIChatCompletionClient(model="gpt-4o") assistant = AssistantAgent("assistant", model_client) web_surfer = MultimodalWebSurfer("web_surfer", model_client) user_proxy = UserProxyAgent("user_proxy") termination = TextMentionTermination("exit") team = RoundRobinGroupChat([web_surfer, assistant, user_proxy], termination_condition=termination) await Console(team.run_stream(task="Find information about AutoGen and write a summary."))