Class: OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::Moderation::Policy
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::Moderation::Policy
- Defined in:
- lib/openai/models/beta/beta_responses_client_event.rb,
sig/openai/models/beta/beta_responses_client_event.rbs
Overview
Defined Under Namespace
Instance Attribute Summary collapse
-
#input ⇒ OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::Moderation::Policy::Input?
The moderation policy for the response input.
-
#output ⇒ OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::Moderation::Policy::Output?
The moderation policy for the response output.
Attributes inherited from Internal::Type::BaseModel
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(input: nil, output: nil) ⇒ Policy
constructor
A new instance of Policy.
- #to_hash ⇒ { ?input: OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::Moderation::Policy::Input?, ?output: OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::Moderation::Policy::Output? }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, fields, hash, #hash, inherited, #inspect, inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(input: nil, output: nil) ⇒ Policy
Returns a new instance of Policy.
|
|
# File 'lib/openai/models/beta/beta_responses_client_event.rb', line 1888
|
Instance Attribute Details
#input ⇒ OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::Moderation::Policy::Input?
The moderation policy for the response input.
1868 1869 1870 1871 1872 1873 1874 |
# File 'lib/openai/models/beta/beta_responses_client_event.rb', line 1868 optional( :input, -> { OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::Moderation::Policy::Input }, nil?: true ) |
#output ⇒ OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::Moderation::Policy::Output?
The moderation policy for the response output.
1880 1881 1882 1883 1884 1885 1886 |
# File 'lib/openai/models/beta/beta_responses_client_event.rb', line 1880 optional( :output, -> { OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::Moderation::Policy::Output }, nil?: true ) |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/openai/models/beta/beta_responses_client_event.rb', line 1919
|
Instance Method Details
#to_hash ⇒ { ?input: OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::Moderation::Policy::Input?, ?output: OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::Moderation::Policy::Output? }
1268 1269 1270 1271 |
# File 'sig/openai/models/beta/beta_responses_client_event.rbs', line 1268
def to_hash: -> {
?input: OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::Moderation::Policy::Input?,
?output: OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::Moderation::Policy::Output?
}
|