Module: OpenAI::Models::Beta::HostedEnvironmentFileParam
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/openai/models/beta/hosted_environment_file_param.rb,
sig/openai/models/beta/hosted_environment_file_param.rbs
Overview
A file materialized in an OpenAI-hosted execution environment.
Defined Under Namespace
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(file_id:, path:, type: :file_id) ⇒ Object
A file previously uploaded through the OpenAI Files API.
- #self?.variants ⇒ ::Array[OpenAI::Models::Beta::hosted_environment_file_param]
Methods included from Internal::Type::Union
==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variants
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_with_error, dump, #dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Class Method Details
.variants ⇒ Array(OpenAI::Models::Beta::HostedEnvironmentFileParam::FileID, OpenAI::Models::Beta::HostedEnvironmentFileParam::Inline)
|
|
# File 'lib/openai/models/beta/hosted_environment_file_param.rb', line 82
|
Instance Method Details
#initialize(file_id:, path:, type: :file_id) ⇒ Object
A file previously uploaded through the OpenAI Files API.
|
|
# File 'lib/openai/models/beta/hosted_environment_file_param.rb', line 37
|
#self?.variants ⇒ ::Array[OpenAI::Models::Beta::hosted_environment_file_param]
43 |
# File 'sig/openai/models/beta/hosted_environment_file_param.rbs', line 43
def self?.variants: -> ::Array[OpenAI::Models::Beta::hosted_environment_file_param]
|