Evals

Judges and decision models

Two steps that read meaning. An LLM judge answers your prompt in a declared shape on your own provider key; a decision model answers typed questions with probabilities in one pass.

Some questions need a model: is the answer relevant, in scope, on brand? Does every claim rest on the tool output? Two kinds of step answer them. An LLM judge sends your prompt to a chat model and reads back the fields the step declares. A decision model reads the trace and answers typed questions (yes or no, pick one, a score) with probabilities, without writing any text. Use a decision model where a typed question will do, and a judge for nuance and categories.

LLM judge

An LLM judge step's panel: Provider, Model and Params, the judge prompt, and the eval's variables, beside the canvas with the step selected.

The model

Pick a Provider and Model from the chat model providers your team added in Settings → Models. The judge runs on your key, so your provider bills you for its calls. Params sets temperature (0 by default: a judge should be repeatable), max tokens and top-p.

Each judge step picks its own model, so one eval can use a small, fast model for a first opinion and a stronger one only for the cases that reach it.

The prompt

Write what you want decided, and put trace data in with variables:

An assistant answered using tool results.

Question:
{{vars.input}}

Tool results:
{{steps.gather.evidence}}

Answer:
{{vars.output}}

Score 0 to 1 how well every figure and claim in the answer is supported by the tool results
(1 = all supported, 0 = invented).

You don't write the answer format. Trodo adds an instruction to reply with exactly the step's declared fields as JSON, and checks what comes back. A malformed reply gets one corrective retry; a second one errors the result. An optional System prompt sits under the prompt.

A variable that is empty on a trace renders as nothing. If no variable in the prompt has a value, the result is errored rather than judged on an empty prompt.

What it returns

Declare the answer on the Output tab:

DeclareAsk forRoute
Number 0 to 1"Score 0 to 1 how…"Ranges: fail below 0.5, a person from 0.5 to 0.8, pass above
One of"Pick one: complete, partial, missing"One route per option
True / false"Did the assistant comply?"True and False

The judge also returns its reasoning, shown on every result and readable by later steps as {{steps.<step id>.reasoning}}.

Writing prompts that decide well

  • Give it the evidence, not the haystack. Gather what matters in a Python step and pass exactly that.
  • Define the scale. "1 = every claim supported, 0 = invented" beats "rate the quality".
  • Prefer categories to fine scores when you'll act on the category: wrong / unhelpful / tone / other is a report, 0.63 is not.
  • Leave the easy cases out. If a screen already passed the clean answers, say so in the prompt.
  • Send the unsure band to a person. Route a middle range of scores to Human review; the grades become labels.

Decision models

Hartley: decision models we train to make your evals better, faster and cheaper.

A decision model (Hartley, or Jev) reads a state and answers questions, each with a probability. Every question is one output of the step, all answered in one pass.

A Decision model step's panel: the decision model and model, the state it reads, the eval's variables and what earlier steps passed on, and its questions.
SettingWhat it does
ModelDecision model (which of your decision models) and Model. A new step takes the team's most recent one.
StateWhat it reads, written like a judge prompt: {{vars.output}}, {{steps.gather.evidence}}. It starts as the input and output (a conversation eval: the transcript).
QuestionsEach one Yes / no, Choice (two or more options) or Score (two to ten levels, lowest first). Write the question, and for yes or no, optionally what counts as yes and as no.
Allow can't tellOn by default: an answer whose confidence is under Minimum confidence (0.6 by default) becomes can't tell.

On the Output tab, each route reads one or more questions: claims_done is yes → …. A Yes / no question answers yes, no or can't tell; a Choice one of its options or can't tell; a Score a number from 0 to the top level, routed by ranges. Route can't tell to a judge or a person rather than an ending: that is what the Grounded in tool results template does.

Which model, and who pays

Decision models are set up in Settings → Models under Decision models: Jev with a TypeSafe API key, or Hartley (Trodo Console) with a Trodo Console API key. They are offered only to decision model steps, never to a judge.

Billing: Trodo's models on your Trodo credit, or your own key. You pick when you configure the step.

If the model is rate limited, overloaded or times out, the step is retried later and nothing is scored meanwhile.

Cost and speed

A judge is usually the slowest step and the only one your own provider bills. Its tokens and cost are recorded on every result and added up as Cost on Analysis. Testing a judge or decision model in the editor calls the model for real.

When it errors

ReasonMeaning
judge_no_model, judge_no_integration, judge_integration_not_foundNo model picked, or the provider was removed from Settings → Models.
judge_provider_errorThe provider refused the call: a bad key, a retired model. The message is the provider's.
judge_output_invalidTwo replies in a row did not match the declared fields.
judge_template_unresolvedNo variable in the prompt had a value on this trace.
judge_template_scopeThe prompt reads something this level can't.
decision_no_integration, decision_integration_not_foundNo decision model picked, or it was removed.
decision_state_unresolved, decision_state_scopeNothing in the state had a value, or it reads something this level can't.

On this page