Skip to main content
Classify text into categories and get the complete API response including confidence scores, labels, and additional metadata. For a simpler response format, use cohere_classify_simple().

Arguments

This function accepts the same arguments as cohere_classify_simple().

Returns

JSONB: The complete API response including classifications array with predictions, confidences, and metadata.