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

Changes

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