Examples & Tutorialsο
Entity Framework comes with a comprehensive set of examples that demonstrate the frameworkβs capabilities and teach you to build increasingly sophisticated AI agents.
π Quick Start Tutorialο
For a complete guided experience, start with our 5-Minute Quick Start Tutorial that takes you from installation to a working agent with tools and memory.
π Example Suiteο
Our examples are designed to teach Entity Framework concepts progressively:
1. Hello Agent - Zero Configurationο
Location: examples/01_hello_agent/
Your first Entity agent with absolutely zero configuration required. Demonstrates:
Automatic LLM setup (local Ollama or cloud APIs)
Built-in memory that persists between conversations
Interactive chat interface
Perfect for: First-time users who want to see Entity in action immediately.
2. Agent Personality - YAML Configurationο
Location: examples/02_agent_personality/
Learn to customize your agentβs role and behavior through configuration files. Demonstrates:
Role-based agents with specific personalities
YAML configuration for behavior customization
Communication styles (professional, educational, casual)
Domain expertise specialization
Perfect for: Building specialized agents for specific domains or use cases.
3. Tool Usage - Superpower Your Agentο
Location: examples/03_tool_usage/
Give your agent real-world capabilities with Entityβs powerful tool system. Demonstrates:
Web search integration
Calculator and mathematical operations
File operations and data processing
Tool chaining for complex workflows
Perfect for: Creating agents that can interact with external systems and data.
4. Conversation Memory - Agents That Rememberο
Location: examples/04_conversation_memory/
Build agents that maintain context and learn user preferences over time. Demonstrates:
Persistent memory across sessions
User preference tracking and personalization
Context-aware conversations
Long-term relationship building
Perfect for: Customer service, tutoring, and personal assistant applications.
5. Streaming Responses - Real-Time Interactionsο
Location: examples/05_streaming_responses/
Create responsive, interactive experiences with real-time streaming. Demonstrates:
Token-by-token response streaming
Progress indicators and status updates
Interactive user experiences
Optimized performance patterns
Perfect for: Web applications and real-time chat interfaces.
π― Framework Showcaseο
For a comprehensive demonstration of all Entity Framework features:
Location: examples/framework_showcase/
This example combines all Entity capabilities into a single, powerful demonstration including:
Plugin architecture with inheritance patterns
YAML-driven configuration
Zero-config defaults
Tool integration
Memory and personality systems
Production-ready patterns
π§ Example Structureο
Each example follows a consistent structure:
README.md- Comprehensive explanation and learning guide*.py- Runnable Python code with detailed comments*.yaml- Configuration files showing YAML-driven developmentrequirements.txt- Dependencies for easy setup
πββοΈ Running the Examplesο
# Navigate to any example
cd examples/01_hello_agent
# Install dependencies
pip install -r requirements.txt
# Run the example
python hello_agent.py
π Learning Pathο
We recommend following this progression:
Start with Hello Agent - Get Entity running in 30 seconds
Try Agent Personality - Learn configuration-driven development
Explore Tool Usage - See real-world capabilities
Test Conversation Memory - Experience long-term interactions
Experiment with Streaming - Build responsive interfaces
Study Framework Showcase - See everything working together
Each example builds on concepts from previous ones while introducing new capabilities. By the end, youβll understand Entityβs revolutionary approach to AI agent development!
π‘ Next Stepsο
After working through the examples:
Explore the API Reference for detailed technical documentation
Check out Architecture for deeper understanding of Entityβs design
Read our Contributing Guide to join the community