Class: OpenAI::Models::Live::ResponsesDelegationConfig::Tool::Shell::Environment::Local::Skill

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/live/responses_delegation_config.rb,
sig/openai/models/live/responses_delegation_config.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(skills: nil, type: :local) ⇒ Skill

Returns a new instance of Skill.

Parameters:

  • description —

    The description of the skill.

  • name —

    The name of the skill.

  • path —

    The path to the directory containing the skill.

  • description: (String)
  • name: (String)
  • path: (String)


1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
# File 'lib/openai/models/live/responses_delegation_config.rb', line 1238

class Skill < OpenAI::Internal::Type::BaseModel
  # @!attribute description
  #   The description of the skill.
  #
  #   @return [String]
  required :description, String

  # @!attribute name
  #   The name of the skill.
  #
  #   @return [String]
  required :name, String

  # @!attribute path
  #   The path to the directory containing the skill.
  #
  #   @return [String]
  required :path, String

  # @!method initialize(description:, name:, path:)
  #   @param description [String]
  #     The description of the skill.
  #
  #   @param name [String]
  #     The name of the skill.
  #
  #   @param path [String]
  #     The path to the directory containing the skill.
end

Instance Attribute Details

#description ⇒ String

The description of the skill.

Returns:

  • (String)


1243
# File 'lib/openai/models/live/responses_delegation_config.rb', line 1243

required :description, String

#name ⇒ String

The name of the skill.

Returns:

  • (String)


1249
# File 'lib/openai/models/live/responses_delegation_config.rb', line 1249

required :name, String

#path ⇒ String

The path to the directory containing the skill.

Returns:

  • (String)


1255
# File 'lib/openai/models/live/responses_delegation_config.rb', line 1255

required :path, String

Instance Method Details

#to_hash ⇒ { description: String, name: String, path: String }

Returns:

  • ({ description: String, name: String, path: String })


1099
1100
1101
1102
1103
# File 'sig/openai/models/live/responses_delegation_config.rbs', line 1099

def to_hash: -> {
  description: String,
  name: String,
  path: String
}