struct

AI::Google::SafetySetting

Inherits JSON::Serializable < Struct < Value < Object

Safety setting for content filtering.

Constructors

new(category : String, threshold : String)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

category

Harm category to filter.

Source
threshold

Threshold level for blocking.

Source