Class: OpenAI::Models::Beta::BetaResponseInputItem::AgentMessage::Content::EncryptedContent

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/beta_response_input_item.rb,
sig/openai/models/beta/beta_response_input_item.rbs

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

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 ⇒ EncryptedContent

Returns a new instance of EncryptedContent.

Parameters:

  • encrypted_content —

    Opaque encrypted content.

  • type —

    The type of the input item. Always encrypted_content.

  • encrypted_content: (String)
  • type: (:encrypted_content)


531
532
533
534
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 531

def initialize: (
  encrypted_content: String,
  ?type: :encrypted_content
) -> void

Instance Attribute Details

#encrypted_content ⇒ String

Opaque encrypted content.

Returns:

  • (String)


670
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 670

required :encrypted_content, String

#type ⇒ :encrypted_content

The type of the input item. Always encrypted_content.

Returns:

  • (:encrypted_content)


676
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 676

required :type, const: :encrypted_content

Instance Method Details

#to_hash ⇒ { encrypted_content: String, ?type: :encrypted_content }

Returns:

  • ({ encrypted_content: String, ?type: :encrypted_content })


536
537
538
539
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 536

def to_hash: -> {
  encrypted_content: String,
  ?type: :encrypted_content
}