JevResult

The answers to one request. Read them with the handles you declared (result[Triage.department]) or by id (result.noul("urgent")). A missing or mismatched answer raises JevResponseValidationException when it is read; an id or handle that wasn't part of the request raises IllegalArgumentException.

Properties

Link copied to clipboard

Every answer by question id, choices keyed by option string.

Link copied to clipboard
Link copied to clipboard

The model that answered, as reported by the API (falls back to requestedModel).

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The response body as received.

Link copied to clipboard

The model name that was sent, possibly an alias such as jev-latest.

Link copied to clipboard

The x-typesafe-request-id response header.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
inline fun <E : Enum<E>> enumChoice(id: String): ChoiceAnswer<E>

Reads a Choice by id as constants of E.

Link copied to clipboard
operator fun <A : Answer> get(ref: QuestionRef<A>): A
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String