agent-framework-azure-ai-csharp

Build and manage Foundry agents with the Microsoft Agent Framework .NET SDK.

34|17|Updated May 27, 2026
One-click install
npx skills add https://github.com/microsoft/Learn-Microsoft-Agent-Framework-with-Foundry-ZavaShop-Supply-Chain-Workshop --skill agent-framework-azure-ai-csharp-microsoft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-framework-azure-ai-csharp
Source: https://github.com/microsoft/Learn-Microsoft-Agent-Framework-with-Foundry-ZavaShop-Supply-Chain-Workshop/tree/main/.github/skills/agent-framework-azure-ai-csharp
Command: npx skills add https://github.com/microsoft/Learn-Microsoft-Agent-Framework-with-Foundry-ZavaShop-Supply-Chain-Workshop --skill agent-framework-azure-ai-csharp-microsoft

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires Microsoft.Agents.AI, Microsoft.Agents.AI.Foundry, Azure.Identity, Azure.AI.Projects, ModelContextProtocol.Client, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a comprehensive toolkit to build, run, and manage Foundry agents using the Microsoft Agent Framework .NET SDK, enabling seamless integration of AI capabilities into your Foundry applications.

Core Features & Use Cases

  • Agent Creation: Leverage the AIAgent abstraction to create stateless or persistent agents for Foundry.
  • Function Tools and Hosted Tools: Utilize function tools and hosted tools for various tasks like code execution, file search, web search, and more.
  • MCP Integration: Integrate with Model Context Protocol (MCP) to access server-side tools and resources.
  • Memory Management: Attach FoundryMemoryProvider for cross-session user memory recall.
  • Structured Output: Use ChatResponseFormat to produce structured responses in JSON schema format.
  • Agent Skills: Advertise and load modular capability bundles for progressive disclosure of skills.
  • Use Case: Build a customer service agent that integrates with Foundry and uses AI capabilities to answer customer queries and provide personalized assistance.

Quick Start

Run the 'GetWeather' function to retrieve the weather for a given location: GetWeather("Amsterdam").

Frequently Asked Questions about agent-framework-azure-ai-csharp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build AI agents for Azure AI Foundry using the .NET SDK?

You can build Azure AI Foundry agents using the .NET SDK by leveraging the Microsoft Agent Framework. It provides the AIAgent abstraction, tool integration, and memory management required to create and run stateless or persistent agents.

Can I integrate Model Context Protocol (MCP) with Azure AI agents in C#?

Yes, C# Azure AI agents can integrate with Model Context Protocol (MCP) using the Microsoft Agent Framework. This allows your agents to access and interact with server-side tools and resources via the ModelContextProtocol.Client dependency.

What dependencies are required to create a Foundry agent with Microsoft Agent Framework?

Creating a Foundry agent requires the Microsoft.Agents.AI and Microsoft.Agents.AI.Foundry packages, along with Azure.Identity, Azure.AI.Projects, and ModelContextProtocol.Client dependencies for authentication, project management, and MCP integration.

How do I get structured JSON output from an Azure AI Foundry agent?

To get structured JSON output from an Azure AI Foundry agent, use the ChatResponseFormat feature within the Microsoft Agent Framework. This enables the agent to produce structured responses formatted according to a specified JSON schema.

Does the Microsoft Agent Framework support cross-session memory for Foundry agents?

Yes, the Microsoft Agent Framework supports cross-session memory for Foundry agents by attaching the FoundryMemoryProvider. This enables continuous user memory recall across different sessions and interactions.