Runtime Errors

Provider failures, tool exceptions, and unexpected throws inside runPrompt may mark runs failed and attach diagnostic objects. sendRouteError maps uncaught errors on HTTP routes to 400/500 with string error fields.

See also

Was this page helpful?