Before you dive in
What you’ll find in the original
- Call env.AI.run with typesafe/jev and supply one state plus named Noul, Choice, and Score questions.
- Use structured objects as state when a decision depends on related records such as a ticket, order charges, and refund policy.
- Read probability distributions and confidence alongside the selected Choice or Score; the examples separate risk scoring from escalation.
Worth knowing
The returned values are example responses in provider documentation, not an evaluation of model accuracy; pricing is delegated to the Cloudflare dashboard.