Overview of the Agent Framework Weather Sample
mainThis sample demonstrates a Microsoft 365 Agents SDK agent using the Microsoft Agent Framework (agent-framework-core) as its AI orchestrator. It features a cat-themed weather assistant capable of answering questions about current conditions and multi-day forecasts.
Key Capabilities Demonstrated:
- AI Orchestration: Uses
AgentandOpenAIChatClientwith Azure OpenAI. - Tool/Function Use: Uses
@tooldecorated functions (e.g.,get_current_weather,get_weather_forecast,get_date) to interact with external data. - Streaming: Implements server-sent streaming via
StreamingResponse. - Session Management: Manages per-conversation history using Agent Framework sessions.
- Transport: Uses
aiohttpwith a/api/messagesendpoint, making it compatible with Microsoft Agents Playground, M365 Teams, and Copilot.