Google Gemini - Categorize text action

The Categorize text action sorts text into categories. The output datapill contains the category that matches best or an error if no category is found. You can create a none category using the List of categories parameter.

Input

Input fieldDescription
ModelSelect the Gemini model to use.
Source textProvide the text to categorize.
List of categoriesCreate a list of categories to sort the text into and provide rules to classify what each category represents.

Output

Output fieldDescription
Best matching categoryThe category replied by Gemini.
Sexually explicitThe likelihood that the text contains sexually explicit content. NEGLIGIBLE indicates there is little to no risk of such content being present.
Hate speechThe likelihood that the text contains or promotes hate speech, such as discriminatory symbols or context targeting protected groups. NEGLIGIBLE indicates there is little to no risk of such content being present.
HarassmentThe likelihood that the text contains harassing behavior, threats, or abuse toward individuals or groups. NEGLIGIBLE indicates there is little to no risk of such content being present.
Dangerous contentThe likelihood that the text contains dangerous or harmful content such as violence, self-harm, or instructions for unsafe behavior. NEGLIGIBLE indicates there is little to no risk of such content being present.

Last updated: