classify

Classify text using only the request's category domain, returning evidence rather than routing policy.

Throws

if provider-specific limits reject the request before any provider call


Classifies text with a spec. Same as calling classify with ClassificationRequest.of(input, spec).

Return

the result

Parameters

input

the text to classify, which may be empty

spec

the classification to make

Throws

if provider-specific limits reject the request before any provider call