Class: OpenAI::Models::BetaResponsesClientEvent::Beta::BetaResponsesClientEvent::ResponseCreate::Moderation::Policy

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
sig/openai/models/beta/beta_responses_client_event.rbs

Defined Under Namespace

Classes: Input, Output

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, 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, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initializeObject



477
# File 'sig/openai/models/beta/beta_responses_client_event.rbs', line 477

def initialize: (

Instance Attribute Details

#inputOpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::Moderation::Policy::Input?

Returns the value of attribute input.

Returns:

  • (OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::Moderation::Policy::Input, nil)


473
474
475
# File 'sig/openai/models/beta/beta_responses_client_event.rbs', line 473

def input
  @input
end

#outputOpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::Moderation::Policy::Output?

Returns the value of attribute output.

Returns:

  • (OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::Moderation::Policy::Output, nil)


475
476
477
# File 'sig/openai/models/beta/beta_responses_client_event.rbs', line 475

def output
  @output
end

Instance Method Details

#to_hash{

Returns:

  • ({)


482
# File 'sig/openai/models/beta/beta_responses_client_event.rbs', line 482

def to_hash: -> {