From 368ed65b3d689e38f516d4808b644cec8f917192 Mon Sep 17 00:00:00 2001 From: Alma Tuck Date: Thu, 1 Oct 2026 11:15:52 -0600 Subject: [PATCH] Docs: decide errors by status; how updates and withdrawals reach installed bots --- README.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c02cee6..e4f7fc3 100644 --- a/README.md +++ b/README.md @@ -134,9 +134,18 @@ const { answers } = await nebo.decide({ - Keep `state` to the fields the questions need and name them in backticks inside `instructions`. Very long state is shortened in the middle before it is sent. -- Throws an `Error` whose message is the reason: a malformed question (a - choice with one option, a `noul` with `criteria`, empty `instructions`), - the bot not signed in to NeboAI, or the decision service failing. +- Throws an `Error` whose message is the reason. The error carries only the + message, not a status code. The reasons, with the status the bot's route + answers: + - 400: a malformed question (a choice with one option, a `noul` with + `criteria`, empty `instructions`), with what is wrong. + - 429: "You've used all the work included in your account. Choose a plan + or add credits to continue." Retrying does not help until the owner adds + a plan or credits. + - 429: "Too many decisions at once. Try again in a moment." The bot has + already retried once. + - 503: "Decisions need NeboAI connected. Sign in to NeboAI and try again." + - 502: the decision service failed; try again later. - Keep counting, dates and thresholds in your own code; ask only what needs judgment. - Billed like any model call; see pricing at https://neboai.com/pricing.