struct AI::Google::SafetySetting

Overview

Safety setting for content filtering.

Included Modules

Defined in:

ai/google/google_generative_ai_options.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(category : String, threshold : String) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def category : String #

Harm category to filter.


[View source]
def threshold : String #

Threshold level for blocking.


[View source]