Strands Agents’ Python and TypeScript SDKs expose Jev through TypeSafeDecisionModel. A support app can ask which team should handle a ticket and whether it needs attention today. The SDK returns an answer or Uncertain for each question and keeps the model’s preferences in the result metadata.
Set the review threshold per question
- Read the right number. For yes/no questions, Strands’ code measures how far the probability of yes is from an even split. The documented default confidence floor of 0.5 accepts a yes at a probability of at least 0.75 or a no at 0.25 or below. For multiple choice, the SDK uses the confidence supplied by the provider.
- Keep the evidence when the model abstains. The SDK keeps the probabilities and confidence even when it replaces the typed answer with
Uncertain. The response also identifies the model that answered, which is worth recording when you request a moving alias such asjev-latest. - Give uncertainty its own branch. A ticket with an unclear team can go to a shared triage queue. Handle a timeout or malformed response separately: in that case the app has no valid decision to review.
Caveat: The adapter code was inspected without calling the hosted model. A typed answer can still be wrong, so test each cutoff against labeled tickets before automating the route.