Skip to main content

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

1

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.
2

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.
3

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.
4

Results Appear in the Dashboard

The trace, along with any detected issues, becomes available in the Trace Explorer. Detection results typically appear within a few seconds.

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.
MethodUse CaseHow to use it
SessionDashboard, analytics, settings, team managementLog in at app.avaliar.ai
API KeySDK and Proxy integrationsSet AVALIAR_API_KEY or pass in the X-API-Key header
API keys are scoped — a key created for the SDK cannot be used for the Proxy, and vice versa. You can create and manage keys from app.avaliar.ai/api-keys.

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.