Class JevWireCodec
The format follows the published reference at https://docs.typesafe.ai/api and is
documented, with what was verified live and what is still inferred, in WIRE.md.
Nothing else in the library names a JSON field (ADR 0003).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecodeError(int status, String body, HttpHeaders headers) Pulls the API's own words out of an error response.decodeModels(String body) decodeResponse(String body) encodeRequest(String model, String state, List<Question> questions) path()The path appended to the configured base URI for an evaluation.
-
Constructor Details
-
JevWireCodec
public JevWireCodec()
-
-
Method Details
-
path
The path appended to the configured base URI for an evaluation. -
modelsPath
-
encodeRequest
-
decodeResponse
-
decodeModels
-
decodeError
Pulls the API's own words out of an error response.The reference does not document the error body. The shape decoded first,
{"detail":{"error_type":..., "message":...}}, is what the live API returned for a missing and for an invalid key on 25 September 2026. Adetailthat is a list or a string is also accepted, because thedetailenvelope is the convention of the framework the API appears to be served by, which uses those shapes for validation failures. Anything else, including an HTML page from a gateway, is still reported with its status and raw body rather than lost.
-