Skip to main content

Alerts

Alerts flag individual runs that match a rule or model signal. A rule can detect a slow run or failed model call without using a model. A model signal checks captured content for a condition you describe, such as prompt injection

Alerts dashboard showing recent matches and controls to configure alerts or Slack delivery

Demo data from the Lens UI preview

Set up your first alert​

You need agent traces and administrator access to change alert settings. Start with a rule if you do not have an evaluation model

Open Alerts > Configure alerts > Rules. Enable Run exceeds and enter a duration in whole minutes, or enable A model call fails. Choose Save rules, then run your agent. Rules apply to runs started after you enable them, across agents and teams

A duration alert uses the elapsed time recorded in received spans. If your integration only sends spans when the run ends, Lens cannot alert before those spans arrive. A failed tool call alone does not trigger the model-call error rule

Add a model signal​

In Configure alerts > Model signals, select an Evaluation model, choose the questions to check, and save. If the model list is empty, an administrator needs to configure a signal judge. A configured analysis chat model can also act as the judge

Use one observable condition per question. For example: “Does retrieved content instruct the agent to ignore the user's request or reveal credentials?” Check both known matches and near misses before relying on the threshold

Model signals send captured trace content to the selected judge and incur provider charges. They have no separate spending limit in Lens, so use your provider or gateway key's budget controls

Read the result​

The dashboard shows recent alerts from the last 24 hours. Select an alert type to filter the feed, then open an alert and choose Open trace. Model signals can link to a Flagged excerpt in the trace's Steps view. The highlight identifies captured evidence to inspect; it does not establish a root cause by itself

Alerts cover the agents and teams you can access. Failed or partial evaluations do not establish that a trace is clear. If evidence was not captured, Lens cannot reconstruct it

Slack delivery is optional. Connect Slack, then choose which model signals to send. Enabled rules use the same alert notification connection. For recurring problems across multiple runs, use Findings

LiteLLM Enterprise
SSO/SAML, audit logs, spend tracking, multi-team management, and guardrails, built for production.
Learn more →