Module: OpenAI::Models::Beta::HostedSkillParam

Extended by:
Internal::Type::Union
Defined in:
lib/openai/models/beta/hosted_skill_param.rb,
sig/openai/models/beta/hosted_skill_param.rbs

Overview

A skill installed in an OpenAI-hosted environment.

Defined Under Namespace

Classes: Inline, SkillReference

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variant_for_dump

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

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

Class Method Details

.variants ⇒ Array(OpenAI::Models::Beta::HostedSkillParam::SkillReference, OpenAI::Models::Beta::HostedSkillParam::Inline)



# File 'lib/openai/models/beta/hosted_skill_param.rb', line 91

Instance Method Details

#initialize(skill_id:, version: nil, type: :skill_reference) ⇒ Object

References a skill uploaded through the Skills API.

Parameters:

  • skill_id (String) —

    The ID of the skill created through /v1/skills.

  • version (String, nil) (defaults to: nil) —

    The skill version, a positive integer or latest; omission selects the default.

  • type (Symbol, :skill_reference) (defaults to: :skill_reference) —

    The type of the object. Always skill_reference.



# File 'lib/openai/models/beta/hosted_skill_param.rb', line 37