Getting Started
Install the SDK, create an agent, configure core systems, and run in production
Teleon is a production-ready platform for building, deploying, and managing AI agents. The Python library is the main integration surface (via TeleonClient and the @client.agent(...) decorator), while Cortex, Sentinel, and Helix can be enabled per-agent as needed.
How the pieces fit together
1) Installation
API key
API keys must follow one of these formats:
tlk_live_xxx(production)tlk_test_xxx(test)teleon_xxx(legacy)
You can provide the key explicitly when constructing TeleonClient, or via environment variables (recommended for production deployments).
Optional environment variables:
| Variable | Description |
|---|---|
TELEON_API_URL | Custom API URL |
TELEON_PLATFORM_URL | Platform URL for metrics |
TELEON_QUIET | Suppress initialization messages |
TELEON_METRICS_ENABLED | Enable/disable metrics reporting |
2) Create your first agent
You can also configure the client for different environments or networking setups (for example, environment, base_url, and verify_key).
Agent functions must be async def and should return a value.
3) Define a tool
Tools are async callables that your agents can invoke.
For production, consider setting timeouts on agents and tools to prevent hanging requests.
The SDK supports optional parameters like timeout (agents and tools) and cache_ttl (tools) for production safety and performance.
4) Configure core systems
Cortex (memory)
Cortex provides persistent, searchable memory with a small set of core methods (store, search, get, update, delete, count). It supports production features like scope enforcement (multi-tenancy) and auto-context injection.
For multi-tenant apps, prefer configuring Cortex with a mandatory scope (for example, customer_id) so memories remain isolated per tenant.
Sentinel (safety)
Sentinel validates inputs before execution and outputs after execution. Enable it for user-facing agents to add guardrails like content filtering and PII detection.
If Sentinel blocks execution (for example with action_on_violation: "block"), it raises an AgentValidationError.
Helix (runtime)
Helix is Teleon’s production runtime system for running agents reliably, with resource limits, health checks, and scaling. It also includes LLM runtime features like token tracking and cost / budget management.
5) Deploy
Use Helix configuration to run agents reliably in production, with health checks, scaling, and resource limits.
If you’re starting simple, deploy with conservative values (for example, low max_instances and explicit memory_limit_mb), then scale up as you observe real traffic.
6) Monitor
Helix provides health endpoints and metrics reporting hooks for production monitoring.
7) Error handling
In production, handle validation and runtime failures explicitly.