Microsoft Agent Framework
Microsoft logo

Microsoft

Microsoft's Comprehensive Multi-Language Framework - Enterprise-grade AI agents with Python and .NET support. Works seamlessly with Azure.

Works with Ollama!
Multi-Language (Python + .NET)
Azure Integration
Built-in Observability

✨ What is Microsoft Agent Framework?

Microsoft's official framework for building AI agents with enterprise-grade features

Multi-Language

Python and C#/.NET support

Graph-Based Workflows

Advanced orchestration capabilities

DevUI

Interactive development interface

Built-in Observability

OpenTelemetry integration

Multiple Providers

OpenAI, Azure OpenAI, Copilot Studio

Local Model Support

Works with Ollama & OpenAI-compatible endpoints

📦 Installation

uv tool install superoptix --with "superoptix[frameworks-microsoft]"

Includes:

  • • agent-framework (latest preview)
  • • azure-identity (latest)
  • • SuperOptiX core with GEPA 0.1.4

Requirements:

  • • Python 3.11+
  • • Git (for DSPy dependency)

Note: SuperOptiX is now stable! Microsoft Agent Framework may still be in preview.

🎯 GEPA Optimization Target

What Gets Optimized?

VariableDescriptionImpact
instructionsAgent's system prompt/instructions
⭐⭐⭐ HIGH

GEPA optimizes the agent's instructions field, which controls:

  • Agent personality and behavior
  • Response style and format
  • Task approach and methodology
  • Domain expertise

Example Transformation

Before GEPA:

"You are a helpful AI assistant."

After GEPA Optimization:

"You are an expert AI assistant with comprehensive knowledge across domains.

Your responses are:
- Accurate and well-researched
- Clear and well-structured
- Supported by relevant examples..."

🔧 Usage

1

Pull Agent

super agent pull assistant_microsoft
2

Compile Agent

super agent compile assistant_microsoft --framework microsoft
3

Evaluate Agent

super agent evaluate assistant_microsoft
4

Optimize with GEPA

super agent compile assistant_microsoft --framework microsoft --optimize
super agent optimize assistant_microsoft --auto light --framework microsoft
5

Run Agent

super agent run assistant_microsoft --framework microsoft --goal "What is artificial intelligence?"

🔑 Provider Configuration

No API Key Required!

Ollama (Local)

language_model:
  provider: ollama
  model: gpt-oss:20b
  api_base: http://localhost:11434

OpenAI

language_model:
  provider: openai
  model: gpt-4o-mini
  api_key: ${OPENAI_API_KEY}

Azure OpenAI

language_model:
  provider: azure
  model: gpt-4o
  api_base: https://your-resource.openai.azure.com
  api_key: ${AZURE_OPENAI_API_KEY}
FREE Tier Available!

Google Gemini

language_model:
  provider: google
  model: gemini-2.0-flash
  api_key: ${GOOGLE_API_KEY}

Framework Comparison

FeatureMicrosoftOpenAI SDKGoogle ADKCrewAI
Ollama SupportYesYes❌ NoYes
Azure IntegrationNative❌ No❌ No❌ No
Multi-Language.NET + Py❌ No❌ No❌ No
DevUIYes❌ No❌ No❌ No
Built-in ObservabilityOpenTelemetry❌ NoYes❌ No

🎯 Best Use Cases

🏢

Enterprise Deployments

Azure integration, enterprise-grade features

👥

Multi-Language Teams

Python and .NET support

🔧

Complex Workflows

Graph-based orchestration

☁️

Azure Ecosystem

Native Azure OpenAI and AI Foundry support

💻

Local Development

Ollama compatibility for dev

📊

Production Monitoring

Built-in OpenTelemetry observability

Ready to Build Enterprise AI Agents?

Start building production-ready agents with Microsoft's enterprise framework!