External Diagnostic Object

externalDiagnosticSchema / externalDiagnosticWireSchema (prompt-orchestra-contracts/src/errors.ts) describe user-facing errors from the API and SDK.

Notable fields

  • code, title, category, why
  • Optional where, affectedFields, recovery, retryable, docsHint

The SDK parses error JSON with externalDiagnosticWireSchema and throws PromptOrchestraApiError (prompt-orchestra-ts/src/core/http.ts).

See also

Was this page helpful?