Class: OpenAI::Models::Skill

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

Overview

See Also:

  • OpenAI::Resources::Skills#create

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_with_error, 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 —

    Unique identifier for the skill.

  • created_at —

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

  • default_version —

    Default version for the skill.

  • description —

    Description of the skill.

  • latest_version —

    Latest version for the skill.

  • name —

    Name of the skill.

  • object (defaults to: :skill) —

    The object type, which is skill.



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

Instance Attribute Details

#created_at ⇒ Integer

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_version ⇒ String

Default version for the skill.

Returns:

  • (String)


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

required :default_version, String

#description ⇒ String

Description of the skill.

Returns:

  • (String)


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

required :description, String

#id ⇒ String

Unique identifier for the skill.

Returns:

  • (String)


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

required :id, String

#latest_version ⇒ String

Latest version for the skill.

Returns:

  • (String)


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

required :latest_version, String

#name ⇒ String

Name of the skill.

Returns:

  • (String)


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

required :name, String

#object ⇒ :skill

The object type, which is skill.

Returns:

  • (:skill)


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

required :object, const: :skill

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


60
# File 'sig/openai/models/skill.rbs', line 60

def to_hash: -> {