Support Agent Blueprint
Build a support agent with memory, guardrails, and production runtime settings
This tutorial follows the patterns shown in the Teleon library docs, Cortex examples (support agent + auto-context), Sentinel guardrails, and Helix runtime configuration.
What you’ll build
- A Teleon agent defined with
@client.agent(...) - Cortex enabled with scope enforcement (
customer_id) and auto-context injection - Sentinel enabled with content filtering + PII detection
- Helix enabled with instance bounds and memory limits
1) Install and initialize
Set your API key (recommended for production):
2) Define the agent with Cortex + Sentinel + Helix
- Cortex: persistent memory + optional auto-context injection
- Sentinel: content filtering + PII detection
- Helix: production runtime configuration (instance bounds, memory limits)
3) Cortex auto-context injection
When enabled, Cortex retrieves relevant context before execution and exposes it via cortex.context:
4) Sentinel actions
Sentinel supports actions on violations:
blockflagredactescalate
5) Helix instance bounds
Helix configuration can set a minimum and maximum number of instances and a memory limit:
min_instancesmax_instancesmemory_limit_mb
6) Why scope matters
Cortex scope is automatically enforced on all operations, which prevents cross-tenant memory leakage.
7) Error handling
In production, handle validation and runtime failures explicitly.
Next
- Cortex guide:
/docs/guides/cortex-memory - Sentinel guide:
/docs/guides/sentinel-guardrails - Helix guide:
/docs/guides/helix-runtime