Custom classifiers are available only in the Paid edition. They are not on Tessary Cloud or in the Open Source edition. Talk to us about the Paid edition, or compare the editions in the pricing section of the website.
What a custom classifier is for
The built-in classifiers watch for failures any agent can have: drift in duration or cost, tool errors, leaked secrets, malformed output, frustrated users, and answers their documents don’t support. Many failures only make sense for one agent. A support agent promises a refund that the policy doesn’t allow. A booking agent confirms a reservation before it checks availability. A coding agent edits files outside the directory it was asked to work in. No built-in classifier knows what your agent is supposed to do, so none of them can catch these. A custom classifier covers that kind of failure. Once it runs, its findings go through the same triage, root-cause analysis, and cases as a built-in classifier’s.How you build one
You build a custom classifier in a conversation with the authoring agent. The agent does the work, and you decide.- Describe the failure. Open Classifiers, select New classifier, and tell the agent in plain words what goes wrong.
-
Agree on how it works. The agent reads your project’s real production traces and proposes the classifier in three parts:
- When it runs: the moments in a session worth checking, for example every reply that follows a request for a refund.
- What it reads: the part of the session the check needs, for example the customer’s request and the agent’s reply.
- How it judges: the question asked about each match, and the answer that flags it.
- Calibrate it. The agent collects examples of matches from your traces, and each example gets a label. You can review any label and correct it, and your label wins. The classifier is tuned on part of the examples and measured on the rest, which it was not tuned on. The result is an agreement score: the share of those held-out examples on which the classifier agrees with the label. Calibration shows its estimated cost before it starts, and runs only when you agree.
-
Choose when to open a finding. On the Alerts step, choose one of two ways:
- By default, Tessary learns each call site’s normal share of flagged matches and opens a finding when that share changes.
- Alternatively, you choose a fixed share and a number of recent matches, and Tessary opens a finding when the share of flagged matches among them goes past it.
- Create it. Select Create classifier. The classifier is turned on as soon as it is created, on every call site.
What it needs
- The Paid edition, self-hosted or on managed hosting.
- An OpenRouter or TypeSafe key, the same keys
frustrationuses, stored under Settings then Providers. Each match the classifier judges is one model call on your own key, so the cost grows with the number of matches. - Traces that carry a session ID. A custom classifier reads a session as a whole, so it does not judge a trace with no session ID.
Once it runs
The classifier judges every session that matches it, as new traces arrive. To spend less, limit it to the call sites where the failure can happen, the same way as any other classifier. See Run a classifier on some call sites. When it opens a finding, the finding goes through triage like a built-in classifier’s. A positive ruling opens a case, or adds the finding to the case already open for the same cause, and an RCA (root-cause analysis) run investigates the case. The finding and case pages list the flagged messages, so you can read each match the classifier flagged. To change a classifier, edit it with the authoring agent. A change to when it runs, what it reads, or how it judges is a new version of the classifier. The new version is calibrated again before it replaces the old one, and it learns its normal share of flagged matches from the start.Read next
Classifiers and findings
What a classifier is, which ones are built in, and what a finding records.
Cases
How triage turns a finding into a case, and the states a case moves through.
Editions
What the Open Source and Paid editions each include, and how each one runs.
Root-cause analysis
What the RCA run is given, and what its report returns.
