Class: OpenAI::Models::Live::ResponsesDelegationConfig::Tool::Shell::Environment::ContainerAuto::Skill::SkillReference

Inherits:
Internal::Type::BaseModel
  • Object
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 ⇒ SkillReference

Returns a new instance of SkillReference.

Parameters:

  • skill_id —

    The ID of the referenced skill.

  • version —

    Optional skill version. Use a positive integer or 'latest'. Omit for default.

  • type —

    References a skill created with the /v1/skills endpoint.

  • skill_id: (String)
  • version: (String, nil)
  • type: (:skill_reference)


926
927
928
929
930
# File 'sig/openai/models/live/responses_delegation_config.rbs', line 926

def initialize: (
  skill_id: String,
  ?version: String?,
  ?type: :skill_reference
) -> void

Instance Attribute Details

#skill_id ⇒ String

The ID of the referenced skill.

Returns:

  • (String)


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

required :skill_id, String

#type ⇒ :skill_reference

References a skill created with the /v1/skills endpoint.

Returns:

  • (:skill_reference)


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

required :type, const: :skill_reference

#version ⇒ String?

Optional skill version. Use a positive integer or 'latest'. Omit for default.

Returns:

  • (String, nil)


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

optional :version, String, nil?: true

Instance Method Details

#to_hash ⇒ { skill_id: String, ?type: :skill_reference, ?version: String? }

Returns:

  • ({ skill_id: String, ?type: :skill_reference, ?version: String? })


932
933
934
935
936
# File 'sig/openai/models/live/responses_delegation_config.rbs', line 932

def to_hash: -> {
  skill_id: String,
  ?type: :skill_reference,
  ?version: String?
}