Create Attributes

POST

Create a list of attributes for a given why_prompt.

Parameters:

  • req: AttributesRequest object containing:
    • why_prompt: The main concept or input question
    • country: Target country
    • attribute_count: Number of attributes to generate (optional)
    • prompt_type: Type of prompt to use (optional)
    • llm_model: Language model to use (optional)

Returns:

  • List of attributes.

Example Response:

1[
2 "Price",
3 "Range",
4 "Charging Time",
5 "Safety Rating"
6]

Raises:

  • HTTPException 404: If an error occurs during creation

Request

This endpoint expects an object.
why_promptstringRequired
countrystringRequired
prompt_typeenumOptional
Allowed values: genericserviceproductexperiencepolicy

Enum representing the type of prompts used in experiment designs.

attribute_countintegerOptional>=2<=10Defaults to 4
llm_modelenumOptionalDefaults to gpt4

Enum representing the llm model types used in the experiments.

Response

Successful Response