Production
Deploy OmniCoreAgent with confidence. Runtime usage metrics and guardrails.
Examples
| File | What You’ll Learn |
|---|---|
| metrics_observability.py | Track tokens, requests, response times, and usage for cost estimation |
| guardrails.py | Protect agents from prompt injection attacks |
📊 Metrics & Observability
Track everything your agent does:total_requests— Number ofagent.run()callstotal_tokens— Total tokens used (input + output)total_request_tokens— Tokens sent to LLMtotal_response_tokens— Tokens received from LLM
🛡️ Guardrails
Protect against prompt injection attacks:- Prompt injection attempts
- Jailbreak attempts
- System prompt extraction attempts
- Role manipulation attacks
🔧 Usage Limits
Set limits to prevent runaway request or token usage:Previous: Background Agents — Scheduled autonomous tasks