Class: OpenAI::Models::Skill

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/skill.rb

Overview

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

#initialize(id:, created_at:, default_version:, description:, latest_version:, name:, object: :skill) ⇒ Object

Parameters:

  • id (String)

    Unique identifier for the skill.

  • created_at (Integer)

    Unix timestamp (seconds) for when the skill was created.

  • default_version (String)

    Default version for the skill.

  • description (String)

    Description of the skill.

  • latest_version (String)

    Latest version for the skill.

  • name (String)

    Name of the skill.

  • object (Symbol, :skill) (defaults to: :skill)

    The object type, which is skill.



# File 'lib/openai/models/skill.rb', line 49


Instance Attribute Details

#created_atInteger

Unix timestamp (seconds) for when the skill was created.

Returns:

  • (Integer)


17
# File 'lib/openai/models/skill.rb', line 17

required :created_at, Integer

#default_versionString

Default version for the skill.

Returns:

  • (String)


23
# File 'lib/openai/models/skill.rb', line 23

required :default_version, String

#descriptionString

Description of the skill.

Returns:

  • (String)


29
# File 'lib/openai/models/skill.rb', line 29

required :description, String

#idString

Unique identifier for the skill.

Returns:

  • (String)


11
# File 'lib/openai/models/skill.rb', line 11

required :id, String

#latest_versionString

Latest version for the skill.

Returns:

  • (String)


35
# File 'lib/openai/models/skill.rb', line 35

required :latest_version, String

#nameString

Name of the skill.

Returns:

  • (String)


41
# File 'lib/openai/models/skill.rb', line 41

required :name, String

#objectSymbol, :skill

The object type, which is skill.

Returns:

  • (Symbol, :skill)


47
# File 'lib/openai/models/skill.rb', line 47

required :object, const: :skill