Microsoft.AutoGen.Core namespace provides the foundational components for building distributed, event-driven multi-agent systems in .NET.
Agent Classes
BaseAgent
BaseAgent
Abstract base class for all agents in the AutoGen system.
Unique identifier for the agent instance
Runtime environment for message passing
Description of the agent’s capabilities
Optional logger instance
Properties
Gets the unique identifier of the agent
Gets metadata associated with the agent
Gets the runtime environment
Methods
Send a message to another agent
Publish a message to a topic
Called when the agent is being closed
Contracts & Interfaces
IAgent
IAgent
IHostableAgent
IHostableAgent
Interface for agents that can be hosted in a runtime.
Called when the runtime is closing
IAgentRuntime
IAgentRuntime
Defines the runtime environment for agents.
Methods
IHandle<T>
IHandle<T>
Identity & Types
AgentId
AgentId
AgentType
AgentType
TopicId
TopicId
AgentMetadata
AgentMetadata
Metadata about an agent.
AgentProxy
AgentProxy
Proxy for remote agent communication.
Messaging
Subscriptions
TypeSubscription
TypeSubscription
TypePrefixSubscription
TypePrefixSubscription
Subscribe to messages matching a type prefix.
TypeSubscriptionAttribute
TypeSubscriptionAttribute
Attribute for declarative subscriptions.
State Management
Application Host
Exceptions
CantHandleException
CantHandleException
Thrown when an agent cannot handle a message.
UndeliverableException
UndeliverableException
Thrown when a message cannot be delivered.
Utilities
ReflectionHelper
ReflectionHelper
Utilities for agent reflection and discovery.
HandlerInvoker
HandlerInvoker
Invokes message handlers dynamically.
Telemetry
ActivitySource
ActivitySource
OpenTelemetry integration.
See Also
- Microsoft.AutoGen.Agents - Pre-built agent implementations
- Microsoft.AutoGen.Extensions - Extensions and integrations