INNER CODE UNIT · Python

main

victordibia/designing-multiagent-systems · course/samples/deep_research/autogen_agentchat/app.py:20

async def main() -> None:
    # Initialize the model client
    model_client = OpenAIChatCompletionClient(
        model="gpt-4o", 
    )

    # Create the Research Assistant agent
    research_assistant = AssistantAgent(
        name="research_assistant",
        description="A research assistant that performs web searches and analyzes information",
        model_client=model_client,
        tools=[google_search_tool, fetch_webpage_tool],
        system_message="""You are a research assistant focused on finding accurate information.
        Use the google_search tool to find relevant information.
        Break down complex queries into specific search terms.
        Always verify information across multiple sources when possible.
        When you find relevant information, explain why it's relevant and how it connects to the query. When you get feedback from the a verifier agent, use your tools to act on the feedback and make progress."""
    )

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…