autogen_core package provides the foundational components for building distributed, event-driven multi-agent systems.
Agent Classes
BaseAgent
BaseAgent
RoutedAgent
RoutedAgent
Decorator-based agent with automatic message routing.
Optional description of the agent’s capabilities
Decorators
Marks a method as a handler for published messages of the parameter type
Marks a method as an RPC endpoint for direct invocation
Marks a method as an event handler
Runtime & Messaging
AgentRuntime
AgentRuntime
Protocol defining the runtime environment for agent execution and communication.
Methods
Send a message to a specific agent and await response
The message payload to send
Target agent identifier
Sender agent identifier (None for external)
Token to cancel the operation
Unique message identifier
SingleThreadedAgentRuntime
SingleThreadedAgentRuntime
Identity & Types
AgentId
AgentId
AgentType
AgentType
TopicId
TopicId
AgentProxy
AgentProxy
Proxy for remote agent communication.
Subscriptions
TypeSubscription
TypeSubscription
TypePrefixSubscription
TypePrefixSubscription
DefaultSubscription
DefaultSubscription
Subscribe to all messages in a namespace.
Serialization & Components
MessageSerializer
MessageSerializer
Protocol for custom message serialization.
Component System
Component System
State Management
CacheStore
CacheStore
Protocol for agent state persistence.
InMemoryStore
InMemoryStore
In-memory cache store implementation.
Intervention & Control
InterventionHandler
InterventionHandler
Protocol for intercepting and modifying messages.
DropMessage
DropMessage
Exception to prevent message delivery.
CancellationToken
CancellationToken
Token for cancelling long-running operations.
Telemetry
Tracing
Tracing
OpenTelemetry integration for distributed tracing.
Types & Protocols
FunctionCall
FunctionCall
UnknownPayload
UnknownPayload
Represents a message with unknown type.
Constants
See Also
- autogen_agentchat - High-level chat agent framework
- autogen_ext - Extensions and integrations