fast-agent: Build and Orchestrate Multimodal AI Agents and Workflows
This repository profile is provided by osrepos.com, an open source repository discovery platform.

Summary
fast-agent is a powerful Python framework designed for creating and interacting with sophisticated multimodal AI agents and workflows. It offers a simple, declarative syntax for defining agents, comprehensive model support, and unique features like end-to-end tested MCP (Multi-modal Communication Protocol) integration. Developers can rapidly build, test, and deploy complex agent applications with advanced capabilities such as structured outputs, vision, and various orchestration patterns.
Repository Information
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Introduction
fast-agent is a robust Python framework that empowers developers to define, prompt, and test sophisticated multimodal AI agents and workflows with remarkable ease. It stands out as the first framework to offer complete, end-to-end tested support for MCP (Multi-modal Communication Protocol) features, including sampling and elicitation. With its simple, declarative syntax, fast-agent allows you to concentrate on composing effective prompts and MCP servers, streamlining the creation of powerful agent applications.
The framework provides comprehensive model support, integrating natively with providers like Anthropic, OpenAI, and Google, alongside Azure, Ollama, Deepseek, and many others via TensorZero. It simplifies the use of structured outputs, PDF, and vision capabilities, all thoroughly tested. fast-agent also includes features like Agent Skills, an interactive Shell Mode, advanced MCP Transport Diagnostics, and robust OAuth support, making it an indispensable tool for modern AI development.
Installation
Getting started with fast-agent is straightforward. It is recommended to use the uv package manager for Python.
First, install uv if you haven't already:
# Install uv (if needed)
pip install uv
Then, install fast-agent-mcp and run an interactive session:
uv pip install fast-agent-mcp # install fast-agent!
fast-agent go # start an interactive session
fast-agent setup # create an example agent and config files
uv run agent.py # run your first agent
Examples
fast-agent simplifies the creation and orchestration of AI agents through intuitive decorators and workflows.
Basic Agent Definition
Define a simple agent with a clear instruction and run it interactively:
import asyncio
from fast_agent import FastAgent
# Create the application
fast = FastAgent("Agent Example")
@fast.agent(
instruction="Given an object, respond only with an estimate of its size."
)
async def main():
async with fast.run() as agent:
await agent.interactive()
if __name__ == "__main__":
asyncio.run(main())
Run this agent with uv run sizer.py. You can specify a model using --model, for example: uv run sizer.py --model sonnet.
Chaining Agents for Workflows
Combine multiple agents into a sequential workflow using the @fast.chain decorator:
@fast.agent(
"url_fetcher",
"Given a URL, provide a complete and comprehensive summary",
servers=["fetch"], # Name of an MCP Server defined in fastagent.config.yaml
)
@fast.agent(
"social_media",
"""
Write a 280 character social media post for any given text.
Respond only with the post, never use hashtags.
""",
)
@fast.chain(
name="post_writer",
sequence=["url_fetcher", "social_media"],
)
async def main():
async with fast.run() as agent:
# using chain workflow
await agent.post_writer("http://llmindset.co.uk")
This example demonstrates how to fetch a URL and then summarize it into a social media post.
MAKER Workflow for Reliability
The MAKER workflow enhances reliability by repeatedly sampling a worker agent and using K-voting to reduce errors, ideal for long chains of simple steps.
@fast.agent(
name="classifier",
instruction="Reply with only: A, B, or C.",
)
@fast.maker(
name="reliable_classifier",
worker="classifier",
k=3,
max_samples=25,
match_strategy="normalized",
red_flag_max_length=16,
)
async def main():
async with fast.run() as agent:
await agent.reliable_classifier.send("Classify: ...")
Why Use fast-agent?
fast-agent offers a compelling set of features that make it an excellent choice for developing advanced AI agent applications:
- Comprehensive MCP Support: It is the first framework with complete, end-to-end tested support for the Multi-modal Communication Protocol, ensuring robust and compliant deployments.
- Declarative and Flexible Syntax: Its simple, declarative approach allows developers to focus on agent logic and prompt engineering rather than boilerplate code, facilitating rapid development and version control.
- Extensive Model Integration: With native support for leading LLM providers and broad compatibility via TensorZero,
fast-agentensures you can leverage a wide array of models for your applications. - Advanced Multimodal Capabilities: Seamlessly integrate structured outputs, PDF processing, and vision support into your agents, enabling richer interactions and data handling.
- Robust Workflow Orchestration: Beyond basic agents,
fast-agentprovides powerful workflow patterns like Chain, Parallel, Evaluator-Optimizer, Router, Orchestrator, MAKER, and Agents As Tools, allowing for complex task decomposition and execution. - Developer-Friendly Features: Includes an interactive shell for debugging, advanced transport diagnostics for reliability, secure OAuth with KeyRing storage, and easy management of secrets, enhancing the development experience.
Links
- GitHub Repository: evalstate/fast-agent
- Official Documentation: fast-agent.ai
- Documentation Repository: evalstate/fast-agent-docs
Related repositories
Similar repositories that may be relevant next.

AMD Skills: Empowering AI Agents with AMD's Optimized Software Stack
August 16, 2026
AMD Skills is the official catalog of AI agent skills from AMD, designed to empower AI agents with optimized software for AMD hardware. This repository provides knowledge, scripts, and conventions for working with AMD's stack, enabling seamless integration with major coding agents like Cursor, Claude Code, OpenAI Codex, and Gemini CLI.

agent-tackle-box: A Terminal Debugger for LangGraph & LangChain Agents
August 15, 2026
agent-tackle-box is a comprehensive toolkit for developing AI agents, featuring the powerful `agent-debugger`. This terminal debugger provides deep insights into LangGraph and LangChain agents. It allows developers to inspect state, monitor tool calls, and step through Python code, all within a unified Textual UI.

ADR: Uber's Enterprise Security System for AI Agents
August 14, 2026
ADR (Agentic AI Detection and Response) is an enterprise security system developed by Uber to secure AI agents. It offers critical capabilities like observability, security benchmarking, and threat detection, ensuring the safe operation of both employee and customer-facing AI applications. This open-source project is deployed in production at Uber and was accepted to MLSys 2026.

SkillOpt: Optimizing Self-Evolving Agent Skills for LLMs
August 11, 2026
SkillOpt is an innovative text-space optimizer from Microsoft that enables the training of reusable natural-language skills for frozen LLM agents. It approaches skill development with the rigor of deep-learning optimization, using trajectory-driven edits and validation-gated updates. This results in deployable `best_skill.md` artifacts that significantly boost agent performance across various benchmarks and models without modifying model weights.
Source repository
Open the original repository on GitHub.
13 counted GitHub visits