Spaces:
Sleeping
ACE Framework Examples
Navigation guide for all ACE examples. Each directory has its own detailed README.
π― Getting Started
New to ACE? Start with these:
- simple_ace_example.py - Minimal ACE usage (5 minutes)
- seahorse_emoji_ace.py - Self-reflection demo
- Quick Start Guide - Step-by-step tutorial
π§© Integrations
Add ACE learning to existing systems:
Browser Automation (browser-use)
browser-use/ - Self-improving browser agents
- simple_ace_agent.py - Basic ACEAgent usage
- domain-checker/ - Domain availability automation
- form-filler/ - Form filling automation
- online-shopping/ - E-commerce automation
π See browser-use/README.md for full guide
LangChain Integration
langchain/ - Wrap LangChain chains/agents with learning
- simple_chain_example.py - Basic chain + ACE
- agent_with_tools_example.py - Agent with tools
π See langchain/README.md for patterns
Custom Integration
custom_integration_example.py - Pattern for any agent
Shows the three-step integration: Inject β Execute β Learn
Pipeline Composition
pipeline_composition/ - Build custom ACE pipelines
- compose_custom_pipeline.py - Mix and match steps, add custom steps, use
build_steps()
π Advanced Topics
Production Learning
helicone/ - Learn from Helicone observability logs
- Parse production LLM traces
- Replay-based learning (cost-effective)
- Tool selection analysis
π See helicone/README.md
Prompt Engineering
prompts/ - Compare ACE prompt versions
- compare_v1_v2_prompts.py - v1.0 vs v2.0
- advanced_prompts_v2.py - Advanced techniques
Skillbook Management
- skillbook_persistence.py - Save and load learned strategies
ποΈ Examples by Use Case
| Use Case | Example |
|---|---|
| Q&A systems | simple_ace_example.py |
| Browser automation | browser-use/ |
| LangChain workflows | langchain/ |
| Custom agents | custom_integration_example.py |
| Custom pipelines | pipeline_composition/ |
| Production learning | helicone/ |
| Prompt optimization | prompts/ |
π Quick Start
# 1. Install
pip install ace-framework
# 2. Set API key
export OPENAI_API_KEY="your-api-key"
# 3. Run example
python examples/simple_ace_example.py
# Browser examples (contributors: uv sync --group demos)
uv run python examples/browser-use/simple_ace_agent.py
π Documentation
Note: Documentation has been reorganized. Previous top-level docs (
QUICK_START.md,INTEGRATION_GUIDE.md, etc.) have moved todocs/getting-started/,docs/guides/, anddocs/api/. Old versions are archived indocs/old_docs/.
- Quick Start Guide - 5-minute tutorial
- Integration Guide - Add ACE to existing agents
- API Reference - Complete API
- Complete ACE Guide - Deep dive
π§ Adapting Examples
Each example is documented for easy adaptation:
- Browser automation: Copy browser-use/TEMPLATE.py
- LangChain: See langchain/README.md patterns
- Custom agent: Follow custom_integration_example.py
- Other: Check subdirectory READMEs for guidance
β Need Help?
- GitHub Issues
- Discord Community
- Check subdirectory READMEs for specific guidance