Create History

POST

Generate historical factors relevant to a user’s decision-making process.

This endpoint analyzes a given question and user profile to produce a set of historical factors that could influence the user’s decision. These factors provide context for understanding past behaviors and preferences.

Parameters:

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

Returns:

  • HistoryResponse: A dictionary of historical factors and their descriptions

Raises:

  • HTTPException 404: If there’s an error in generating historical factors

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

historymap from strings to strings