Welcome to the TFrameX examples collection! This directory contains comprehensive examples demonstrating various aspects of the TFrameX framework, from basic agent creation to complex multi-agent workflows.
Perfect for getting started with TFrameX fundamentals.
| Example | Description | Difficulty | Key Concepts |
|---|---|---|---|
| Hello World | Your first TFrameX agent | Beginner | Agent creation, basic execution |
| Simple Agent | Agent with tools and memory | Beginner | Tools, memory, system prompts |
| Tool Integration | Working with external APIs | Intermediate | Tool creation, async operations |
Learn TFrameX's powerful orchestration patterns.
| Example | Description | Difficulty | Key Concepts |
|---|---|---|---|
| Sequential Pattern | Step-by-step agent execution | Beginner | Sequential flows, data passing |
| Parallel Pattern | Concurrent agent execution | Intermediate | Parallel processing, result aggregation |
| Router Pattern | Dynamic agent routing | Intermediate | Conditional logic, intelligent routing |
| Discussion Pattern | Multi-agent collaboration | Advanced | Agent debates, consensus building |
Explore TFrameX's integration capabilities.
| Example | Description | Difficulty | Key Concepts |
|---|---|---|---|
| MCP Integration | Model Context Protocol servers | Intermediate | MCP servers, external tools |
| Blender Integration | 3D modeling with AI | Advanced | Creative workflows, complex tools |
| Web Chatbot | Flask-based web interface | Intermediate | Web frameworks, real-time chat |
Production-ready applications demonstrating complex workflows.
| Example | Description | Difficulty | Key Concepts |
|---|---|---|---|
| Code Review System | AI-powered code analysis | Advanced | Multi-agent analysis, security scanning |
| Content Creation Pipeline | Multi-modal content generation | Advanced | Creative workflows, asset coordination |
| Smart Home Orchestration | IoT device coordination | Advanced | Real-time monitoring, automation |
| Financial Trading Platform | Market analysis and research | Expert | Data analysis, risk assessment |
Enterprise-grade applications for specific industries.
| Example | Description | Difficulty | Key Concepts |
|---|---|---|---|
| Medical Diagnosis Support | Healthcare AI assistant | Expert | Multi-modal analysis, safety protocols |
| DevOps Incident Response | Automated incident management | Expert | Monitoring, alerting, coordination |
| Legal Document Analysis | Contract and compliance review | Expert | Document processing, risk analysis |
| Game AI Director | Dynamic game content generation | Expert | Real-time adaptation, player analytics |
- Python 3.8+
- TFrameX installed (
pip install tframex) - LLM API access (OpenAI, local model, etc.)
- Navigate to any example directory
- Install dependencies:
pip install -r requirements.txt - Copy environment template:
cp .env.example .env - Configure your LLM settings in
.env - Run the example:
python main.py
- Start with Hello World
- Progress through Basic Examples
- Try Sequential Pattern
- Explore all Pattern Examples
- Try MCP Integration
- Build your own variation
- Study Advanced Examples
- Implement Real-World Examples
- Contribute your own examples!
Each example follows a standardized structure:
example-name/
├── README.md # Comprehensive guide
├── requirements.txt # Python dependencies
├── .env.example # Environment template
├── main.py # Primary application
├── config/
│ ├── agents.py # Agent definitions
│ ├── tools.py # Tool definitions
│ └── flows.py # Flow definitions
├── data/ # Sample data files
├── docs/
│ ├── setup.md # Setup instructions
│ ├── usage.md # Usage examples
│ └── troubleshooting.md # Common issues
└── assets/ # Screenshots, diagrams
All examples use these standard environment variables:
# LLM Configuration
OPENAI_API_KEY=your_api_key_here
OPENAI_API_BASE=https://api.openai.com/v1
OPENAI_MODEL_NAME=gpt-3.5-turbo
# Example-specific variables
# (See individual .env.example files)For local development with Ollama:
OPENAI_API_BASE=http://localhost:11434/v1
OPENAI_API_KEY=ollama
OPENAI_MODEL_NAME=llama3- 🟢 Beginner: Basic TFrameX concepts, single agents
- 🟡 Intermediate: Multiple agents, basic patterns, external tools
- 🟠 Advanced: Complex workflows, real-time processing, integrations
- 🔴 Expert: Production systems, safety-critical applications, optimization
Found a bug? Want to add an example? Contributions are welcome!
- Fork the repository
- Create your example following the standard structure
- Add comprehensive documentation
- Test thoroughly
- Submit a pull request
- Follow the standardized folder structure
- Include comprehensive README with setup instructions
- Add requirements.txt with exact versions
- Include .env.example with all required variables
- Test on multiple platforms when possible
- Add appropriate difficulty level
- Documentation: TFrameX Docs
- Discord: Join our Discord
- Issues: GitHub Issues
All examples are provided under the MIT License. See the main repository LICENSE file for details.
Happy building with TFrameX! 🚀