Labels

Evaluate content against published label versions. Returns one result per version in request order. Optional response_kind adds choice, ordinal, or priority aggregation; score is the default. Requires a label-first account; other accounts receive FAILED_PRECONDITION.

post/v1/labels/evaluate

Request

Request body

thresholdnumber double

The threshold to use for truthiness. If not set a default value will be used.

labelVersionIdsstring[]

IDs of the published label versions to evaluate against. Maximum 10 per request.

globalContextstring

Optional global context override for this evaluation call.

responseKind'score' | 'choice' | 'ordinal' | 'priority'

Aggregation over the evaluated label versions. Omit for independent scores.

abstainboolean

Whether choice and ordinal abstain when no label evaluation has outcome TRUE. Defaults to true; set false to force selection.

Response

A successful response.

contentHashstring

The hash of the content that was evaluated.

Changes

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the new optional request property /