TealMonitor v2 addresses OWASP ASI-06 (Excessive Resource Consumption) — the risk that AI agents consume unbounded compute, token, or API resources through runaway loops, prompt injection, or misconfiguration.
Why This Matters
Compliance alignment: NIST AI RMF (GOVERN 2.3 — resource allocation), ISO 42001 (A.6.2.6 — resource management), SOC 2 CC6.6 (system operations).
Class
MonitorOptions
evaluate()
Evaluate cost governance before a request is sent to the model.CostDecision
Cost Anomaly Detection
TealMonitor v2 builds a spending baseline and detects anomalies in real-time:Anomaly Dimensions
Reasoning-Token Budgets
For models with hidden reasoning tokens (o1, o3), TealMonitor v2 enforces budgets on the reasoning compute:Per-Agent Attribution
Track costs per agent with team/department grouping:Recording Actual Costs
After a request completes, record the actual cost for accurate tracking:Integration with TealEngine
Related Documentation
- TealEngine v1.3 API — Engine integration
- TealTemporal — Rate limiting complements cost limits
- TealDrift — Cost velocity as drift signal
- SOC/IR Pipeline — Cost anomaly alerts in SIEM
- Automation Levels — approval_required for cost anomalies

