promptdojo_

Triage the bad prediction — reproduce with the logged input, then route by class — step 6 of 7

Write route_failure(failure_class):

  • If the class is a key in ROUTES, return "route to <destination>" using the dict value.
  • Anything else — including the eternal favorite, "the model is dumb" — returns "not a triage category - go classify the trace".

Three inputs run, one of them the shrug. Expected output:

route to post-processing code
not a triage category - go classify the trace
route to retrieval pipeline

full-screen editor opens — close anytime to keep reading.