Structs representing a successful TypeSafe API response.
A Response contains:
model— the model that performed the evaluationanswers— a map of your question keys to typedAnswerstructsusage— token counts for the request
Summary
Functions
Parses a raw API response map (as decoded JSON) into a Response struct.
Types
@type answer() :: ExTypesafe.Response.NoulAnswer.t() | ExTypesafe.Response.ChoiceAnswer.t() | ExTypesafe.Response.ScoreAnswer.t()
@type t() :: %ExTypesafe.Response{ answers: %{required(String.t()) => answer()}, model: String.t(), usage: ExTypesafe.Response.Usage.t() }