Generate custom AI agents from natural language descriptions
Agent Fabric is a powerful tool that allows you to create specialized AI agents simply by describing what you want them to do in plain language. The system analyzes your requirements and generates fully functional, standalone Python agents using PydanticAI with MCP and A2A compatibility.
- π€ Natural Language Agent Creation - Describe your agent in plain English/German
- π― Intelligent Specialization - Automatically generates optimized system prompts for different use cases
- π¦ Standalone Agents - Each generated agent is a complete, runnable Python file
- π§ MCP Integration - Optional support for external tools and capabilities
- π A2A Compatible - Agents can be run as servers for integration with other applications
- π± User-Friendly Interface - Clean Gradio web interface with tabs and examples
- π₯ Easy Download - Direct download of generated agents and requirements
Agent Fabric uses intelligent analysis to create specialized agents for virtually any task. Simply describe what you need and the system will generate an optimized agent. Examples include:
- Prompt Engineers - Create multiple prompt variations using different techniques (Zero-Shot, Few-Shot, Chain-of-Thought, Role-Based, Instruction-Following)
- Content Writers - Speech writers, blog post creators, marketing copy generators
- Language Experts - Translators, grammar checkers, style improvers, text summarizers
- Code Specialists - Programming assistants, code converters between languages, debugging helpers
- Research Assistants - Information gatherers, web searchers, data analysts
- Communication Tools - Email composers, presentation creators, documentation writers
- Analysis Experts - Sentiment analyzers, data interpreters, review evaluators
The system intelligently creates the optimal system prompt and configuration for whatever you describe, no predefined templates needed.
- Code Conversion - Convert code between programming languages
- Text Processing - Grammar correction, style optimization, proofreading
- Sentiment Analysis - Analyze emotions and sentiment in text
- Translation - Multi-language translation with cultural nuances
- Summarization - Extract key points and create summaries
- Information Research - Web search and information gathering
- Programming - Code generation and software development assistance
- Python 3.11 or higher
- uv (recommended) or pip
# Clone or download the project
cd agent_fabric
# Install dependencies
uv sync
# Start Agent Fabric
uv run python main.py# Clone or download the project
cd agent_fabric
# Install dependencies
pip install -r requirements.txt
# Start Agent Fabric
python main.py-
Start Agent Fabric
uv run python main.py
-
Open your browser to
http://localhost:7860 -
Describe your agent in the text field:
"Create an agent that corrects German grammar and improves text style" -
Configure settings (optional):
- Enable external tools for web search, time, etc.
- Adjust LLM server settings if using custom endpoints
-
Generate and download your agent:
- Click "Generate Agent"
- Save and download the generated
.pyfile andrequirements.txt
Agent Fabric supports various LLM providers:
Server: http://localhost:11434/v1
Model: qwen2.5:latest
API Key: sk-dummy
Server: http://localhost:1234/v1
Model: your-model-name
API Key: sk-dummy
Server: https://api.openai.com/v1
Model: gpt-3.5-turbo
API Key: your-actual-api-key
Each generated agent is a standalone Python file with multiple usage modes:
python your_agent.pypython your_agent.py serverAccess at http://localhost:8000
# In the same directory as your agent
pip install -r requirements.txt
# Or with uv
uv add pydantic-ai pydantic-ai-slim[a2a] fasta2a fastapi uvicornagent_fabric/
βββ main.py # Gradio web interface
βββ generator.py # Agent code generator
βββ requirements.txt # Project dependencies
βββ pyproject.toml # Project configuration
βββ README.md # This file
Description: "I need a code converter from Python to Go"
Result: Specialized agent that converts Python code to idiomatic Go code
Description: "Analyze sentiment in customer reviews and social media posts"
Result: Expert sentiment analysis agent with structured output
Description: "Search for current news and information on any topic"
External Tools: β Enabled
Result: Research agent with web search capabilities
Enable "External Tools" to give your agent access to:
- Web search via DuckDuckGo
- Current time and date
- Weather information
- PDF conversion
- Text anonymization
All generated agents are compatible with the Agent-to-Agent (A2A) protocol:
- Can be deployed as microservices
- Easy integration with other AI systems
- RESTful API endpoints
- Health check endpoints
"Received empty model response"
- Check if your LLM server is running
- Verify the model name is correct
- Test server connectivity
Syntax errors in generated code
- Usually caused by special characters in descriptions
- The system automatically escapes most issues
Import errors when running agents
- Install required dependencies:
pip install -r requirements.txt - Or use:
uv add pydantic-ai pydantic-ai-slim[a2a] fasta2a fastapi uvicorn
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is open source. See LICENSE file for details.
For issues and questions:
- Check the "Help" tab in the web interface
- Review this README
- Submit GitHub issues for bugs
Agent Fabric - Making AI agent creation accessible to everyone through natural language descriptions.