Basic Concepts¶
Node Hierarchy¶
AgentPool uses a unified node abstraction for all message-processing entities. This enables seamless composition and communication between different types of agents.
graph TD
4054488562["messagenode.MessageNode"]
2640915377["base_agent.BaseAgent"]
714633658["agent.Agent"]
1010792145["agui_agent.AGUIAgent"]
2312616207["antigravity_agent.AntigravityAgent"]
3900501386["acp_agent.ACPAgent"]
359093965["claude_code_agent.ClaudeCodeAgent"]
2075200285["codex_agent.CodexAgent"]
3914209840["opencode_v2_agent.OpenCodeV2Agent"]
25774398["t3_agent.T3Agent"]
3331920367["base_team.BaseTeam"]
283621335["teamrun.TeamRun"]
160873275["team.Team"]
4054488562 --> 2640915377
2640915377 --> 714633658
2640915377 --> 1010792145
2640915377 --> 2312616207
2640915377 --> 3900501386
2640915377 --> 359093965
2640915377 --> 2075200285
2640915377 --> 3914209840
2640915377 --> 25774398
4054488562 --> 3331920367
3331920367 --> 283621335
3331920367 --> 160873275
MessageNode¶
The base interface that all nodes implement. A node receives prompts or messages, processes them and emits responses, so agents and teams can be handled uniformly: run, streamed, connected, used as tools, served over a protocol and logged to storage.
Agents¶
All agent types are nodes, whatever runs them:
type |
Name | Description |
|---|---|---|
native |
Agent Configuration | Configuration for a single agent in the system. |
agui |
AGUIAgentConfig | Configuration for AG-UI protocol agents. |
antigravity |
AntigravityAgentConfig | Configuration for Google Antigravity SDK agents. |
opencode_v2 |
OpenCodeV2AgentConfig | Configuration for OpenCode V2 (v2.3+) agents. |
t3 |
T3AgentConfig | An agent that runs as a thread in a T3 Code environment. |
claude_code |
ClaudeCodeAgentConfig | Configuration for Claude Code agents. |
codex |
Codex Agent Configuration | Configuration for Codex app-server agent. |
acp (provider: custom) |
ACPAgentConfig | Configuration for a custom ACP agent with explicit command. |
acp (provider: registry) |
RegistryACPAgentConfig | Configuration for an ACP agent resolved from the ACP registry. |
acp (provider: remote) |
RemoteACPAgentConfig | Configuration for a remote ACP agent (experimental). |
agents:
assistant: # native PydanticAI agent (type: native is the default)
model: openai:gpt-5-mini
system_prompt: You are a helpful assistant.
claude:
type: claude_code # Claude Code via its SDK
goose:
type: acp # an ACP agent from the ACP registry
provider: registry
registry_id: goose
Native agents support every framework feature (tools, structured output, history processing, ...). The others bring their own tools and loop; AgentPool adds its tools to them over an MCP bridge and translates their events into its own.
Teams¶
Groups of nodes that execute together:
- Parallel teams (
Team([agent1, agent2]),mode: parallel): all nodes run simultaneously - Sequential pipelines (
TeamRun([agent1, agent2]),mode: sequential): output flows from one to the next
Teams themselves are nodes, enabling nested composition.
The Pool¶
An AgentPool loads a manifest (YAML) and owns everything defined in it: agents, teams, MCP
servers, storage, sessions, triggers and connections. Agents in a pool can discover each other
and delegate (subagent / workers toolsets), and the pool is what the protocol servers
(serve-acp, serve-opencode, serve-mcp, ...) expose to clients.
Sessions and Turns¶
A session is one conversation with an agent; one pool agent can serve many sessions at once, and delegation runs in child sessions. A turn is one prompt run in a session, until it ends (completed, cancelled, failed, ...). See Sessions and Turns.
Configuration in YAML¶
AgentPool is built around static, versionable YAML configuration validated by Pydantic models (with a JSON schema for IDE completion):
# agents.yml (AgentsManifest)
agents:
web_assistant:
model: openai:gpt-5
tools:
- type: import
name: open_url
import_path: webbrowser.open
system_prompt: "You are a helpful web assistant."
In YAML you can:
- define agents of every type and teams
- assign tools, toolsets and MCP servers
- connect nodes (forward results, with conditions, queues and filters)
- define response types for structured output
- set up triggers (files, webhooks, schedules, MCP events, ...)
- configure storage providers for conversations, tool calls and commands
- load earlier conversations with simple queries
See Configuration for the complete reference.
Connections and Triggers¶
Connections forward a node's results to other nodes, files or callables (one-to-one or one-to-many, queued, filtered, conditional). Triggers start a node on outside events: file changes, webhooks, schedules, emails, MCP events or events of connections.