Skip to main content

Signals

Open Signals to see which sessions match a rule. Select View traces beside a signal to inspect the matches for your date range and user or team. Select the signal name to see its definition

Add a signal​

A workspace admin can select Add signal, give it a name, and choose how Lens evaluates it

ChooseUse it forExample
Metadata ruleA threshold on step errors, tool calls, input tokens, or output tokens. Lens checks the recorded value directlyTo find sessions with repeated tool failures, choose Step errors and set At least to 2
Decision modelA yes-or-no question about what happened during a session. This uses the configured analysis model“Did the user ask to share customer contact details externally?”

Select Save signal. After Lens analyzes the sessions, open a few matches. To adjust the rule, select its name, edit it, and save again

Use a signal as a guardrail​

To screen new gateway requests, start with a behavior you can recognize in an incoming message. You can write a Yes/No question yourself or have Lens fit one to traces you label. Build a guardrail from a signal

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