# agent-framework | Microsoft | Knowledge Base | Instagit

A framework for building, orchestrating and deploying AI agents and multi-agent workflows with support for Python and .NET.

GitHub Stars: 8.8k

Repository: https://github.com/microsoft/agent-framework

---

## Articles

### [How to Implement Function Tools with Automatic JSON Schema Generation in the Agent Framework](/microsoft/agent-framework/how-to-implement-function-tools-with-automatic-json-schema-generation-in-agent-framework)

Learn to implement function tools with automatic JSON schema generation in the Microsoft Agent Framework. Convert Python functions to LLM callable tools efficiently using the @tool decorator.

- Tags: how-to-guide
- Published: 2026-04-05

### [In-Memory vs File-Based Checkpoint Storage in Agent Framework Workflows](/microsoft/agent-framework/what-are-the-options-for-in-memory-vs-file-based-checkpoint-storage-in-agent-framework-workflows)

Explore in-memory vs file-based checkpoint storage in Agent Framework workflows. Choose high-speed testing with InMemoryCheckpointStorage or durable persistence with FileCheckpointStorage.

- Tags: performance
- Published: 2026-04-05

### [How to Integrate the AG-UI Protocol for Agent Interfaces in the Microsoft Agent Framework](/microsoft/agent-framework/how-to-integrate-ag-ui-protocol-for-agent-interfaces-in-agent-framework)

Learn to integrate the AG-UI protocol for agent interfaces in the Microsoft Agent Framework. Stream Server-Sent Events and manage conversations effortlessly.

- Tags: how-to-guide
- Published: 2026-04-05

### [How to Implement Time-Travel and Checkpoint Recovery in Agent Framework Workflows](/microsoft/agent-framework/how-to-implement-time-travel-and-checkpoint-recovery-in-agent-framework-workflows)

Learn how to implement time-travel and checkpoint recovery in Agent Framework workflows using the CheckpointStorage protocol. Resume execution from any previous point easily.

- Tags: how-to-guide
- Published: 2026-04-05

### [How to Configure Provider-Specific Clients (Anthropic, Ollama, Bedrock) in Agent Framework](/microsoft/agent-framework/how-to-configure-provider-specific-clients-like-anthropic-ollama-bedrock-in-agent-framework)

Learn to configure provider-specific clients Anthropic Ollama and Bedrock in Agent Framework using constructor arguments or environment variables for seamless LLM integration.

- Tags: how-to-guide
- Published: 2026-04-05

### [How to Implement Structured Output with ToolMode Configurations in Agent Framework](/microsoft/agent-framework/how-to-implement-structured-output-with-toolmode-configurations-in-agent-framework)

Implement structured output in Agent Framework using ToolMode. Force tool calls and enforce JSON schemas for validated Pydantic objects with response_format and response_format.

- Tags: how-to-guide
- Published: 2026-04-05

### [How to Build Evaluation Pipelines with LocalEvaluator and Keyword Checks in Agent Framework](/microsoft/agent-framework/how-to-build-evaluation-pipelines-with-localevaluator-and-keyword-checks-in-agent-framework)

Build fast API-free evaluation pipelines using Agent Frameworks LocalEvaluator and keyword checks. Validate agent responses efficiently without external service calls.

- Tags: how-to-guide
- Published: 2026-04-05

### [How to Use the Skills System with SkillScript and SkillResource in the Agent Framework](/microsoft/agent-framework/how-to-use-the-skills-system-with-skillscript-and-skillresource-in-agent-framework)

Learn to extend Microsoft Agent Framework with the skills system SkillScript SkillResource and SkillsProvider for reusable agent capabilities and LLM integration.

- Tags: how-to-guide
- Published: 2026-04-05

### [How to Implement Streaming Responses with Real-Time Agent Updates in the Microsoft Agent Framework](/microsoft/agent-framework/how-to-implement-streaming-responses-with-real-time-agent-updates-in-agent-framework)

Learn to implement streaming responses and real-time agent updates with the Microsoft Agent Framework. Discover its three-layer architecture for efficient AI content delivery.

- Tags: how-to-guide
- Published: 2026-04-05

### [How to Configure Authentication with Azure AI Foundry and FoundryChatClient in Agent Framework](/microsoft/agent-framework/how-to-configure-authentication-with-azure-ai-foundry-and-foundrychatclient-in-agent-framework)

Configure authentication for Azure AI Foundry using FoundryChatClient in Agent Framework. Learn to set up AzureCliCredential or DefaultAzureCredential for seamless integration.

- Tags: how-to-guide
- Published: 2026-04-05

### [How to Build Agent-to-Agent (A2A) Communication Protocols in the Microsoft Agent Framework](/microsoft/agent-framework/how-to-build-agent-to-agent-a2a-communication-protocols-in-agent-framework)

Learn to build agent-to-agent A2A communication protocols in the Microsoft Agent Framework using the A2AAgent class for seamless JSON-RPC/SSE translation and bidirectional messaging.

- Tags: how-to-guide
- Published: 2026-04-05

### [How to Implement Durable Agents with Checkpoint and Resume in the Microsoft Agent Framework](/microsoft/agent-framework/how-to-implement-durable-agents-with-checkpoint-and-resume-in-agent-framework)

Learn to implement durable agents with checkpoint and resume in Microsoft Agent Framework. Configure storage, enable checkpointing, and manage state for resilient agent behavior. Maximize your agent's uptime.

- Tags: how-to-guide
- Published: 2026-04-05

### [How to Use Vector Stores and Embeddings for RAG Implementations in Microsoft Agent Framework](/microsoft/agent-framework/how-to-use-vector-stores-and-embeddings-for-rag-implementations-in-agent-framework)

Learn to implement RAG in Microsoft Agent Framework using vector stores and embeddings. Generate vectors with OpenAIEmbeddingClient, persist in a vector store, and attach to an Agent for enhanced generation.

- Tags: how-to-guide
- Published: 2026-04-05

### [How to Migrate from Semantic Kernel to Agent Framework: A Complete Guide](/microsoft/agent-framework/how-to-migrate-from-semantic-kernel-to-agent-framework)

Migrate from Semantic Kernel to Agent Framework easily. Replace KernelProcessStep with Executor, convert ProcessBuilder to WorkflowBuilder, and run workflows natively. Get our complete guide.

- Tags: migration-guide
- Published: 2026-04-05

### [How to Implement Human-in-the-Loop Workflows with Approval Gates in the Microsoft Agent Framework](/microsoft/agent-framework/how-to-implement-human-in-the-loop-workflows-with-approval-gates-in-agent-framework)

Implement human-in-the-loop workflows with approval gates in Microsoft Agent Framework. Use Durable-Task and external events for human reviewer approval of actions.

- Tags: how-to-guide
- Published: 2026-04-05

### [How to Set Up OpenTelemetry Observability and Tracing for the Microsoft Agent Framework](/microsoft/agent-framework/how-to-set-up-opentelemetry-observability-and-tracing-for-agent-framework)

Learn to set up OpenTelemetry observability and tracing for the Microsoft Agent Framework. Enhance your application's visibility with distributed tracing, logging, and metrics.

- Tags: how-to-guide
- Published: 2026-04-05

### [How to Host Agents on Azure Functions with Stateful Execution in Agent Framework](/microsoft/agent-framework/how-to-host-agents-on-azure-functions-with-stateful-execution-in-agent-framework)

Deploy stateful AI agents on Azure Functions with Agent Framework by wrapping your workflow in AgentFunctionApp. Persist data across steps using set_state and get_state without bloating message payloads.

- Tags: how-to-guide
- Published: 2026-04-05

### [How to Build Declarative Agents Using YAML Definitions in the Microsoft Agent Framework](/microsoft/agent-framework/how-to-build-declarative-agents-using-yaml-definitions-in-agent-framework)

Learn to build declarative agents using YAML definitions in the Microsoft Agent Framework. Use AgentFactory to parse YAML and create agents without Python code. Get started today!

- Tags: how-to-guide
- Published: 2026-04-05

### [How to Implement Token Budget Management with Compaction Strategies in Agent Framework](/microsoft/agent-framework/how-to-implement-token-budget-management-with-compaction-strategies-in-agent-framework)

Master token budget management in Agent Framework using compaction strategies. Learn to enforce token limits with SlidingWindowStrategy and SummarizationStrategy for efficient processing.

- Tags: how-to-guide
- Published: 2026-04-05

### [How to Use Model Context Protocol (MCP) with MCPStdioTool and MCPStreamableHTTPTool in Agent Framework](/microsoft/agent-framework/how-to-use-model-context-protocol-mcp-with-mcpstdiotool-and-mcpstreamablehttptool-in-agent-framework)

Learn how to integrate Model Context Protocol (MCP) servers into your agent using MCPStdioTool for local STDIO or MCPStreamableHTTPTool for remote HTTP endpoints within the Agent Framework.

- Tags: how-to-guide
- Published: 2026-04-05

### [How to Configure Chat History Persistence with Session Providers in the Microsoft Agent Framework](/microsoft/agent-framework/how-to-configure-chat-history-persistence-with-session-providers-in-agent-framework)

Configure chat history persistence in Microsoft Agent Framework by setting context providers with a HistoryProvider subclass. Learn to enable per-service call history persistence.

- Tags: how-to-guide
- Published: 2026-04-05

### [How to Implement Multi-Agent Orchestration with Handoff Patterns in the Microsoft Agent Framework](/microsoft/agent-framework/how-to-implement-multi-agent-orchestration-with-handoff-patterns-in-agent-framework)

Implement multi-agent orchestration with handoff patterns in the Microsoft Agent Framework. Use HandoffBuilder to route control between autonomous agents without a central coordinator.

- Tags: how-to-guide
- Published: 2026-04-05

### [How to Build Graph-Based Workflows with WorkflowBuilder and Edge Conditions in Agent Framework](/microsoft/agent-framework/how-to-build-graph-based-workflows-with-workflowbuilder-and-edge-conditions-in-agent-framework)

Build graph-based workflows in Agent Framework using WorkflowBuilder and edge conditions. Declaratively connect executor nodes with conditional edges to filter message flow.

- Tags: how-to-guide
- Published: 2026-04-05

### [How to Implement Custom Middleware in Agent Framework for Request/Response Interception](/microsoft/agent-framework/how-to-implement-custom-middleware-in-agent-framework-for-request-response-interception)

Learn to implement custom middleware in Agent Framework for request/response interception. Subclass base classes, process context, and register your middleware to enhance your agents.

- Tags: how-to-guide
- Published: 2026-04-05

