Skip to main content

Production docs for agent teams

Production-ready AI agents in seconds.

Build scalable agent workflows with tools, memory, streaming, APIs, and clients on top of one runtime. Start with a working agent fast, then grow into stateful, production-ready systems without rewriting the foundation.

Beginner pathConceptsTutorialsReference
react_sync.py
from agentflow.core import Agent, StateGraph, ToolNode
from agentflow.core.state import AgentState, Message
from agentflow.storage.checkpointer import InMemoryCheckpointer
from agentflow.utils.constants import END

checkpointer = InMemoryCheckpointer()

def get_weather(location: str) -> str:
    return f"The weather in {location} is sunny"

tool_node = ToolNode([get_weather])

agent = Agent(
    model="gemini-3-flash-preview",
    provider="google",
    system_prompt="You are a helpful assistant.",
    trim_context=True,
    reasoning_config=True,
    tool_node=tool_node,
)

graph = StateGraph()
graph.add_node("MAIN", agent)
graph.add_node("TOOL", tool_node)
graph.add_conditional_edges("MAIN", should_use_tools, {"TOOL": "TOOL", END: END})
graph.add_edge("TOOL", "MAIN")

app = graph.compile(checkpointer=checkpointer)

Connected stack

agentflowCore Python runtime
agentflow-apiAPI, CLI, and serving layer
agentflow-clientTypeScript client surface
agentflow-playgroundHosted testing workspace

Framework foundations

Everything a serious agent app needs, in one path.

Orchestration first

Model agents as workflows with explicit state, routing, and execution boundaries instead of scattered prompt calls.

Production foundations

Bring checkpointing, storage, background work, callbacks, and graceful failure handling into the core architecture.

Backend to frontend

Document one connected stack across the Python library, API and CLI package, hosted playground, and TypeScript client.

Beginner-friendly by design

A docs path that teaches the product, not just the API.

The new docs are organized around the real journey: install the library, build one agent, add tools, add memory, expose it through the API, connect a client, then deploy with confidence.

01

First agent

Create a small, working agent and understand the moving parts.

02

Tools and state

Give the agent capabilities and learn how state moves through a workflow.

03

Multi-agent flow

Compose agents into predictable handoffs and reusable workflows.

04

Production surface

Add persistence, APIs, streaming, clients, and deployment practices.