Skip to main content
AFK applications progress through five levels of capability. Each level adds features and complexity. Start at Level 1 and move up only when you have clear signals that the current level isn’t enough.

The five levels

Level 1: Single Agent

One agent, one model, no tools. The simplest possible setup.
AFK features used: Agent, Runner, run_syncGood for: Text classification, summarization, translation, simple Q&AMove up when: The agent needs to take actions or access external data

Level 2: Agent + Tools

Add typed tool functions for the agent to call.
AFK features added: @tool, Pydantic models, FailSafeConfigGood for: RAG, data lookup, calculations, API integrationsMove up when: Different parts of the task need different expertise or models

Level 3: Multi-Agent Delegation

Coordinator delegates to specialist subagents.
AFK features added: subagents, join policies, backpressureGood for: Complex tasks, parallel work, specialist expertise, consensusMove up when: Tasks take minutes, need async processing, or need queue-based reliability

Level 4: Queue-Backed Async

Decouple producers and consumers with task queues. Long-running jobs execute asynchronously.
AFK features added: TaskQueue, TaskItem, workers, dead-letter handlingGood for: Batch processing, background jobs, retryable pipelines, high-throughputMove up when: You need cross-system communication or external agent interop

Level 5: Cross-System A2A

Agents communicate across systems using the A2A protocol with authenticated endpoints.
AFK features added: InternalA2AProtocol, A2AServiceHost, auth providers, external adaptersGood for: Microservice agent meshes, third-party integrations, federated AI systemsThis is the ceiling — most applications don’t need Level 5.

Capability comparison

= essential at this level    = recommended    — = not applicable

Decision guide

[!TIP] Start at Level 1. The simplest system that works is the best system. Premature complexity is the most common mistake in agent design.

Signals to level up

Next steps

Agentic Behavior

DAG orchestration, join policies, and fan-out.

Architecture

How AFK separates orchestration from execution.