Overview
Avaliar captures, stores, and analyzes LLM traces through two integration paths. Both paths converge on the same detection pipeline so that every trace — regardless of how it was submitted — is analyzed consistently and appears in the same dashboard.Data Flow
- SDK Path
- Proxy Path
Your App Calls a @traceable Function
A function decorated with
@traceable executes in your application. The SDK automatically captures inputs, outputs, timing, token counts, and any metadata you pass in.Trace Submitted to Avaliar
The SDK submits the trace to Avaliar asynchronously in the background. Tracing never adds latency to your application — if Avaliar is unreachable, your app continues running normally.
Detection Runs
If cloud detection is enabled, Avaliar analyzes the trace for safety issues — prompt injection, jailbreaks, toxicity, PII, bias, and hallucination. Detection runs asynchronously after the trace is stored.
Async Detection
Detection runs asynchronously after a trace is stored. This means:- Your application is never blocked waiting for detection to complete
- Traces appear immediately in the Trace Explorer, with detection results added shortly after
- Prompt inspection via the Proxy is the one exception — it runs synchronously before forwarding, because blocking a malicious prompt requires an answer before the LLM call proceeds
Detection results typically appear within a few seconds. On the Trace Explorer, a trace that has not yet been analyzed will show a “Pending” status until detection completes.
Authentication
Avaliar uses two authentication mechanisms depending on how you’re accessing the platform.| Method | Use Case | How to use it |
|---|---|---|
| Session | Dashboard, analytics, settings, team management | Log in at app.avaliar.ai |
| API Key | SDK and Proxy integrations | Set AVALIAR_API_KEY or pass in the X-API-Key header |
Next Steps
Detection Overview
Learn how the built-in detectors analyze your traces.
API Keys
Create and manage the API keys that authenticate your integrations.