Judgment Labs Logo
Sdk referenceTypescript

BaseResponse

Base fields shared by all scorer response types. Custom judges return one of the concrete subtypes (`BinaryResponse`, `NumericResponse`, or `CategoricalResponse`) from their `score()` method.

Base fields shared by all scorer response types.

Custom judges return one of the concrete subtypes (BinaryResponse, NumericResponse, or CategoricalResponse) from their score() method.

Properties

value

:

string | number | boolean

The score value. Type depends on the concrete response type.

reason

:

string

Human-readable explanation of why this score was given.

citations

:

Citation[] | null | undefined

Optional trace citations supporting this score.

Last updated on

On this page