API Layers#
The API consists of the following layers:
The following diagram shows the relationship between the layers.
The autogen_core.base
layer defines the
core interfaces and base classes for agents, messages, and runtime.
This layer is the foundation of the framework and is used by the other layers.
The autogen_core.application
layer provides concrete implementations of
runtime and utilities like logging for building multi-agent applications.
The autogen_core.components
layer provides reusable components for building
AI agents, including type-routed agents, AI model clients, tools for AI models,
code execution sandboxes, and memory stores.
The layers are loosely coupled and can be used independently. For example,
you can swap out the runtime in the autogen_core.application
layer with your own
runtime implementation.
You can also skip the components in the autogen_core.components
layer and
build your own components.