latestOpenAPI 3.1.02026-08-19270462702.4 KB

b92f75fd3b61

felix

Generate Classification Constraints Endpoint

Generate constraints for classification tasks.

Args: request: Labels and optional domain description for the task. auth: Authenticated caller.

Returns: Generated constraints with an estimated token usage figure.

Raises: HTTPException: 500 when constraint generation fails.

post/felix/constraints/classification

Request body

user_idstring nullable

User ID (optional, uses authenticated user if not provided)

domain_descriptionstring nullable

Domain description for generation context

labelsstring[] required

List of classification labels

min_criteriainteger

Minimum number of constraints to generate

Response

Successful Response

successboolean required
countinteger required
token_usageinteger nullable

Estimated tokens used for constraint generation