Quick Start
How It Works
| Agent | Responsibility | SLA |
|---|---|---|
ParseOrder | Extract structured order info from any format | ≤ 30 s |
CheckInventory | Validate material availability and reorder levels | ≤ 5 s |
OptimizeSchedule | Generate optimal production schedule | ≤ 2 min |
DefectDetect | Automated quality inspection per batch | ≤ 1 min |
Configuration Options
Pydantic I/O schemas used by this template:| Schema | Fields |
|---|---|
OrderDetails | order_id, customer_id, product_id, quantity, priority, due_date, requirements |
InventoryStatus | material_id, available_quantity, reorder_level, supplier_lead_time, location |
ProductionSchedule | schedule_id, production_line, start_time, end_time, assigned_workers, estimated_completion, bottleneck_analysis |
QualityReport | batch_id, inspection_time, defect_rate, defect_types, passed, recommendations |
Common Patterns
Plug a custom ERP tool into ParseOrderBest Practices
Always validate priority before scheduling
Always validate priority before scheduling
The
OptimizeSchedule agent sorts by priority (urgent > high > normal). Ensure ParseOrder correctly extracts the priority field — incorrect priorities cascade into suboptimal schedules.Keep SLA budgets per agent
Keep SLA budgets per agent
CheckInventory must respond within 5 seconds to avoid blocking production scheduling. Any custom inventory tool you attach should query a cache or pre-indexed store rather than a slow ERP endpoint.Use fallback_strategies for supply chain disruptions
Use fallback_strategies for supply chain disruptions
When
CheckInventory cannot find stock, the built-in fallback returns an alternative-supplier flag. Extend this by attaching a @tool that queries a supplier API before escalating to manual review.Run quality inspection on every batch, not just failures
Run quality inspection on every batch, not just failures
DefectDetect returns a defect_rate even when passed=True. Log these rates over time to catch drift in machine calibration before it causes real rejections.Related
Industry Templates Overview
Hub page — choose the right template and understand cross-industry reuse.
Energy Template
Wind-farm monitoring, vibration fault detection, and predictive maintenance.

