Create Constraints

POST

Generate constraints that may affect a user’s decision-making process.

This endpoint analyzes a given question, user profile, and relevant attributes to produce a set of constraints or limiting factors that could influence the user’s decision. These constraints help in understanding the boundaries within which a decision is made.

Parameters:

  • req (ConstraintRequest): Contains the question, user profile, and relevant attributes

Returns:

  • ConstraintResponse: A dictionary of constraints and their descriptions

Request

This endpoint expects an object.
why_promptstringRequired
user_profile_attributesmap from strings to lists of strings or lists of integers or lists of doublesRequired
attributeslist of stringsRequired
llm_modelenumOptionalDefaults to gpt4

Enum representing the llm model types used in the experiments.

Response

Successful Response

constraintsmap from strings to strings