Class: OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::Skill::Inline::Source

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/openai/models/live/responses_delegation_update_config.rb,
sig/openai/models/live/responses_delegation_update_config.rbs

Overview

See Also:

  • OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::Skill::Inline#source

Defined Under Namespace

Modules: MediaType, Type

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Class Method Summary collapse

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(data:, media_type:, type:) ⇒ Source

Returns a new instance of Source.

Parameters:

  • data —

    Base64-encoded skill zip bundle.

  • media_type —

    The media type of the inline skill payload. Must be application/zip.

  • type —

    The type of the inline skill source. Must be base64.

  • data: (String)
  • media_type: (OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::Skill::Inline::Source::media_type)
  • type: (OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::Skill::Inline::Source::type_)


# File 'lib/openai/models/live/responses_delegation_update_config.rb', line 1191

Instance Attribute Details

#data ⇒ String

Base64-encoded skill zip bundle.

Returns:

  • (String)


1167
# File 'lib/openai/models/live/responses_delegation_update_config.rb', line 1167

required :data, String

#media_type ⇒ OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::Skill::Inline::Source::media_type

The media type of the inline skill payload. Must be application/zip.

Returns:

  • (OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::Skill::Inline::Source::media_type)


1173
1174
1175
1176
1177
1178
# File 'lib/openai/models/live/responses_delegation_update_config.rb', line 1173

required(
  :media_type,
  enum: -> {
    OpenAI::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::Skill::Inline::Source::MediaType
  }
)

#type ⇒ OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::Skill::Inline::Source::type_

The type of the inline skill source. Must be base64.

Returns:

  • (OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::Skill::Inline::Source::type_)


1184
1185
1186
1187
1188
1189
# File 'lib/openai/models/live/responses_delegation_update_config.rb', line 1184

required(
  :type,
  enum: -> {
    OpenAI::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::Skill::Inline::Source::Type
  }
)

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openai/models/live/responses_delegation_update_config.rb', line 1211

Instance Method Details

#to_hash ⇒ { data: String, media_type: OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::Skill::Inline::Source::media_type, type: OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::Skill::Inline::Source::type_ }

Returns:

  • ({ data: String, media_type: OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::Skill::Inline::Source::media_type, type: OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::Skill::Inline::Source::type_ })


1017
1018
1019
1020
1021
# File 'sig/openai/models/live/responses_delegation_update_config.rbs', line 1017

def to_hash: -> {
  data: String,
  media_type: OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::Skill::Inline::Source::media_type,
  type: OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::Skill::Inline::Source::type_
}