felix

Expand Constraint Choices Endpoint

Expand the choice list for a single constraint.

Args: request: Constraint to expand, target count, and task description. auth: Authenticated caller.

Returns: The updated constraint with its expanded choices and token usage.

Raises: HTTPException: 503 for transient upstream failures, 500 otherwise.

post/felix/constraints/expand

Request body

user_idstring nullable

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

task_descriptionstring required

Task description for context

max_countinteger

Maximum number of choices after expansion

Response

Successful Response

successboolean required
expanded_choicesstring[] required
countinteger required
token_usageinteger nullable

Estimated tokens used for expansion

Changes

No recorded changes to this endpoint across all 3 revisions of this API.