latestOpenAPI 3.1.02026-08-19270462702.4 KB

b92f75fd3b61

felix

Generate Records Constraints Endpoint

Generate constraints for records/custom tasks.

Args: request: Field definitions and optional domain description. auth: Authenticated caller.

Returns: Generated constraints with an estimated token usage figure.

Raises: HTTPException: 500 when constraint generation fails.

post/felix/constraints/records

Request body

user_idstring nullable

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

domain_descriptionstring nullable

Domain description for generation context

min_criteriainteger

Minimum number of constraints to generate

Response

Successful Response

successboolean required
countinteger required
token_usageinteger nullable

Estimated tokens used for constraint generation