Class: OpenAI::Resources::Safety
- Inherits:
-
Object
- Object
- OpenAI::Resources::Safety
- Defined in:
- lib/openai/resources/safety.rb,
lib/openai/resources/safety/alerts.rb,
sig/openai/resources/safety.rbs,
sig/openai/resources/safety/alerts.rbs
Defined Under Namespace
Classes: Alerts
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(client:) ⇒ Safety
constructor
private
A new instance of Safety.
Constructor Details
#initialize(client:) ⇒ Safety
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Safety.
12 13 14 15 |
# File 'lib/openai/resources/safety.rb', line 12 def initialize(client:) @client = client @alerts = OpenAI::Resources::Safety::Alerts.new(client: client) end |
Instance Attribute Details
#alerts ⇒ OpenAI::Resources::Safety::Alerts (readonly)
7 8 9 |
# File 'lib/openai/resources/safety.rb', line 7 def alerts @alerts end |