Curated examples demonstrating amla-sandbox capabilities. Start with quick_start.py and explore based on your needs.
uv pip install "git+https://github.com/amlalabs/amla-sandbox"
# Run any example
python examples/quick_start.py| Example | Description |
|---|---|
| quick_start.py | Hello world - shell commands, JavaScript, basic tools |
| tools.py | Define tools from Python functions |
| async_tools.py | Async tool handlers for I/O-bound operations |
| constraints.py | Constraint DSL reference (Param, numeric, membership, string) |
| capabilities.py | MethodCapability patterns and authorization |
| rate_limiting.py | Call budgets and rate limiting |
| framework_ingestion.py | Import tools from LangChain, OpenAI, Anthropic |
| Example | Description |
|---|---|
| shell_pipelines.py | Data processing with grep, jq, sort, uniq |
| vfs_operations.py | Virtual filesystem read/write/persist |
| langgraph_agent.py | LangGraph integration with create_react_agent |
| langgraph_codeact.py | CodeAct agent pattern with LangGraph |
| langgraph_openai.py | LangGraph with OpenAI GPT models |
| streaming.py | Real-time output callbacks |
| error_handling.py | Graceful error recovery patterns |
| audit_logging.py | Compliance logging for enterprise |
| Example | Description |
|---|---|
| customer_support.py | Complete support agent with tiered permissions |
| data_pipeline.py | ETL data processing pattern |
| multi_tenant.py | Enterprise multi-tenant isolation |
| insurance_claims.py | Multi-agent workflow with delegation |
| Example | Description |
|---|---|
| recipes.py | Copy-paste snippets for common tasks |
| testing.py | Unit and integration testing patterns |
- agents/ - Complete agent implementations (code reviewer, data analyst, research assistant)
- New to amla-sandbox? Start with
quick_start.py, thentools.pyandshell_pipelines.py - Building agents? See
langgraph_agent.py,async_tools.py, anderror_handling.py - Going to production? Check
audit_logging.py,rate_limiting.py, andmulti_tenant.py - Migrating from other frameworks? See
framework_ingestion.py