Skip to main content

Package Overview

AutoGen for .NET provides multiple NuGet packages to suit different needs. You can install the all-in-one package or choose specific packages based on your requirements.
All packages require .NET 6.0 or later.

Quick Install

For most users, install the all-in-one package:
This package includes:
  • AutoGen.Core - Core abstractions and types
  • AutoGen.OpenAI - OpenAI integration
  • AutoGen.LMStudio - LM Studio support
  • AutoGen.SemanticKernel - Semantic Kernel integration
  • AutoGen.SourceGenerator - Type-safe function generation

Package Versions

Individual Packages

Install only the packages you need for a minimal footprint:
Core abstractions for agents, messages, and group chat. Use this if you want to avoid dependencies on specific LLM providers.
Includes:
  • Agent abstractions (IAgent, IStreamingAgent)
  • Message types (TextMessage, ImageMessage, etc.)
  • Group chat and orchestration
  • Middleware infrastructure
OpenAI model integration including GPT-4, GPT-3.5, and Azure OpenAI.
Features:
  • OpenAIChatAgent for OpenAI models
  • Streaming support
  • Function calling
  • Vision capabilities
Claude model integration from Anthropic.
Features:
  • AnthropicClientAgent for Claude models
  • Prompt caching support
  • Tool/function calling
Azure AI Inference integration for models deployed on Azure.
Features:
  • ChatCompletionsClientAgent for Azure AI models
  • Support for GitHub Models, Azure AI Studio
  • Compatible with various model providers
Integration with Microsoft Semantic Kernel.
Features:
  • SemanticKernelAgent wrapper
  • Access to Semantic Kernel plugins
  • Unified agent interface
Source generator for type-safe function definitions.
Features:
  • [Function] attribute for methods
  • Automatic schema generation from XML docs
  • Compile-time type safety
  • Zero runtime reflection
Code execution support using dotnet-interactive.
Supports:
  • C# code execution
  • F# code execution
  • PowerShell scripts
  • Python scripts (with Python kernel)
Mistral AI model integration.
Google Gemini model integration.
Local model support via Ollama.
LM Studio local model support.

Choosing the Right Package

1

All-in-One

Install AutoGen if you want to get started quickly with common providers like OpenAI and don’t mind the additional dependencies.
2

Core Only

Install AutoGen.Core if you:
  • Want minimal dependencies
  • Plan to implement custom agents
  • Only need the abstraction layer
3

Provider-Specific

Install specific provider packages based on your LLM:
4

Add Optional Features

Enhance your application with optional packages:

Verification

Verify your installation by checking the installed packages:
You should see the AutoGen packages listed with their version numbers.

Example Project File

Here’s a complete .csproj example with common packages:
YourProject.csproj
Replace version numbers with the latest available versions from NuGet.

Next Steps

Quick Start

Build your first AutoGen application

Core Concepts

Learn about agents and messaging