Check whether an why_prompt is causal or not.
Parameters:
req
: CausalityRequest object containing:
why_prompt
: The why_prompt to check for causalityllm_model
: Language model to use for the check (optional)Returns:
is_causal
: Boolean indicating whether the why_prompt is causalsuggestions
: List of up to 3 strings, each a rephrased version of the original why_prompt as a causal why_promptExample Response:
Raises:
Enum representing the llm model types used in the experiments.
Successful Response