INNER CODE UNIT · Python

main

victordibia/designing-multiagent-systems · course/samples/hello_world/agent_framework/app.py:31

async def main() -> None:
# Agent instance following Agent Framework conventions
    agent = ChatAgent(
        name="AzureWeatherAgent",
        description="A helpful assistant",
        instructions="""
        A helpful assistant""",
        chat_client=AzureOpenAIChatClient(),
        tools=[calculator],
    )
    result = await agent.run("What is the result of 545.34567 * 34555.34?")
    print(result)

asyncio.run(main())

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…