Skip to main content

Module errors

Module errors 

Source
Expand description

Typed errors for the public api-store LLM endpoint (feature 472).

Resolves UI finding U1: applications need a typed, pattern-matchable error for the structured 400 body produced when route: Private cannot be honoured on the selected executor. Mirrors the TypeScript surface in sdk/typescript/src/llm/errors.ts.

Structs§

InvalidRouteModeCombinationBody
Wire shape of the structured 400 body for api_store.invalid_route_mode_combination.
InvalidRouteModeCombinationError
Typed error returned by the SDK when route + execution_preference form a rejected combination per the Routing Truth Table in data-model.md §4.
PrivateUnavailableBody
Wire shape of the structured 400 body for api_store.private_unavailable.
PrivateUnavailableError
Typed error returned by the SDK when the host emits the structured 400 body for api_store.private_unavailable.

Enums§

PrivateUnavailableReason
Reason the peer rejected a route: Private request.

Functions§

map_api_error_body
Decode a 400 response body into the corresponding typed error variant, returning None for unknown codes so callers can fall through to a generic transport error.