Typed error class hierarchy for OMA. Replaces brittle string-pattern error classification (see commit 30e162b's TRANSIENT/FATAL allowlists). Boundary wrappers around external SDK calls (CF Containers, model providers) should re-throw native errors as instances of these classes vi
// Source: https://github.com/openma-ai/open-managed-agents | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works // Provided via justclaw.it.com; keep this notice with the code. // Typed error class hierarchy for OMA. Replaces brittle string-pattern // error classification (see commit 30e162b's TRANSIENT/FATAL allowlists). // // Boundary wrappers around external SDK calls (CF Containers, model // providers) should re-throw native errors as instances // of these classes via `classifyExternalError` (or by direct construction // when the boundary has typed knowledge of the failure mode). The // processUserMessage retry switch then operates on `instanceof` checks // instead of substring matching — robust to vendor-side wording changes // and net-new tra ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key