Check whether a why_prompt complies with our content policy.
Parameters:
why_prompt
: The prompt text to check for content policy complianceReturns:
flagged
: Boolean indicating whether the content was flaggedflagged_categories
: List of categories that were flagged (empty if not flagged)Example Response (flagged content):
Example Response (non-flagged content):
Raises:
Successful Response