latestOpenAPI 3.1.02026-08-19270462702.4 KB

b92f75fd3b61

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