バックエンドのエンジンは Playwright ヘッドレスモードも、ブラウザUI表示も可能 デバッグ機能としてスクリーンショットの取得も可能 import asyncio from autogen_agentchat.ui import Console from autogen_agentchat.teams import RoundRobinGroupChat from autogen_ext.models.openai import OpenAIChatCompletionClient from autogen_ext.agents.web_surfer import MultimodalWebSurfer async def main() -> None: # Define an agent web_surfer_agent = MultimodalWebSurfer( name="MultimodalWebSurfer", model_client=OpenAIChatCompletionClient(model="gpt-4o-2024-08-06"), ) # Define a team agent_team = RoundRobinGroupChat( [web_surfer_agent], max_turns=3 ) # Run the team and stream messages to the console stream = agent_team.run_stream( task="Navigate to the AutoGen readme on GitHub.“ )] await Console(stream) # Close the browser controlled by the agent await web_surfer_agent.close() # Run Agent asyncio.run(main())