Module resolve
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.
Provider-surface detection and best-effort normalization: the preferred path for turning raw provider JSON into normalized types when no codec annotation is present.
Enums
- ProviderSurface: A built-in provider request/response surface.
Functions
- detect_request_surface: Detect the request surface from a raw request body by top-level key.
- detect_request_surface_with_hint: Like
detect_request_surface, but a recognizedprovider_hintresolves the one ambiguous shape (an Anthropic request without a top-levelsystem, otherwise read as OpenAI Chat). Today, only the exact hints"anthropic"and"anthropic.messages"change detection;Noneor any other value is ignored and detection stays shape-only. - detect_response_surface: Detect the response surface from a raw provider response, classifying only when exactly one built-in shape matches (the built-in codecs accept minimal objects, so decode success alone is not a reliable classifier).
- normalize_request: Best-effort decode of a raw request into
AnnotatedLlmRequest(fail-open). - normalize_request_with_hint: Like
normalize_request, but a recognizedprovider_hintcan disambiguate provider request shapes that are otherwise identical. - normalize_response: Best-effort decode of a raw response into
AnnotatedLlmResponse(fail-open).