class

OpenAI::CreateModerationResponseResultsItem

Inherits JSON::Serializable < Reference < Object

Constructors

new(flagged : Bool = false, categories : CreateModerationResponseResultsItemCategories = CreateModerationResponseResultsItemCategories.new, category_scores : CreateModerationResponseResultsItemCategoryScores = CreateModerationResponseResultsItemCategoryScores.new, category_applied_input_types : CreateModerationResponseResultsItemCategoryAppliedInputTypes = CreateModerationResponseResultsItemCategoryAppliedInputTypes.new)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

categories

A list of the categories, and whether they are flagged or not.

Source
categories=(categories : CreateModerationResponseResultsItemCategories)

A list of the categories, and whether they are flagged or not.

Source
category_applied_input_types

A list of the categories along with the input type(s) that the score applies to.

Source
category_applied_input_types=(category_applied_input_types : CreateModerationResponseResultsItemCategoryAppliedInputTypes)

A list of the categories along with the input type(s) that the score applies to.

Source
category_scores

A list of the categories along with their scores as predicted by model.

Source
category_scores=(category_scores : CreateModerationResponseResultsItemCategoryScores)

A list of the categories along with their scores as predicted by model.

Source
flagged

Whether any of the below categories are flagged.

Source
flagged=(flagged : Bool)

Whether any of the below categories are flagged.

Source