Observed since 20 Oct, 21:55 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Minimalist Python framework for building AI agents
The minimalist Python framework for building AI agents
AgentFlow is a production-ready framework that makes building AI agents simple, testable, and extensible. Inspired by FastAPI's philosophy of developer experience first.
pip install agentflow-ai==1.0.6
import asyncio
from agentflow import Agent
async def main():
agent = Agent(model="llama3")
response = await agent.arun("What is Python?")
print(response)
asyncio.run(main())
agent = Agent(model="gpt-4o")
@agent.tool
def multiply(a: int, b: int) -> int:
"""Multiply two numbers."""
return a * b
response = await agent.arun("What is 123 * 456?")
from agentflow.mcp import MCPClient
# Connect to filesystem server
async with MCPClient(
transport="stdio",
command=["npx", "@modelcontextprotocol/server-filesystem", "/tmp"]
) as mcp:
await agent.add_mcp_tools(mcp)
response = await agent.arun("List files in /tmp")
from agentflow.testing import MockModel, AgentTestClient
# Test without real LLM calls
model = MockModel(responses=["Hello! I'm an AI assistant."])
agent = Agent(model=model)
client = AgentTestClient(agent)
response = client.run("Hello")
client.assert_response_contains("Hello")
# client.assert_tool_called("my_tool") # Use this when testing tools
| Feature | AgentFlow | LangChain | CrewAI | AutoGen |
|---|---|---|---|---|
| Easy Testing | ✅ MockModel + TestClient | ❌ | ❌ | ❌ |
| Native MCP | ✅ First framework | ❌ | ❌ | ❌ |
| Async-First | ✅ | Partial | ❌ | ❌ |
| Minimalist | ✅ <700 LOC core | ❌ | ❌ | ❌ |
| Production-Ready | ✅ v1.0 | ✅ | Partial | Partial |
AgentFlow follows these principles:
MIT License - see LICENSE file for details.
Created by Hamadi Chaabani
Inspired by:
If you find AgentFlow useful, please star it on GitHub!
AgentFlow v1.0 - Production-ready. Fully tested. Simply powerful.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.0.10 | 12 Jan 2026 | 4 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 21:55 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:0620a4479599d3f4a9e1ff75a8daae0498507bca95fb2325452f2c8d3825fdde