Class: OpenAI::Models::Beta::Agents::EnvironmentCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::Agents::EnvironmentCreateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/openai/models/beta/agents/environment_create_params.rb,
sig/openai/models/beta/agents/environment_create_params.rbs
Overview
Defined Under Namespace
Classes: Environment
Instance Attribute Summary collapse
-
#environment ⇒ OpenAI::Beta::Agents::EnvironmentCreateParams::Environment
The required hosting type and its configuration.
- #idempotency_key ⇒ String?
-
#vault_ids ⇒ ::Array[String]?
The IDs of up to 10 vaults made available to an OpenAI-hosted environment.
Attributes included from Internal::Type::RequestParameters
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize ⇒ EnvironmentCreateParams
constructor
A new instance of EnvironmentCreateParams.
- #to_hash ⇒ { environment: OpenAI::Beta::Agents::EnvironmentCreateParams::Environment, ?vault_ids: ::Array[String]?, ?idempotency_key: String, ?request_options: OpenAI::RequestOptions }
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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 ⇒ EnvironmentCreateParams
Returns a new instance of EnvironmentCreateParams.
31 32 33 34 35 36 |
# File 'sig/openai/models/beta/agents/environment_create_params.rbs', line 31
def initialize: (
environment: OpenAI::Beta::Agents::EnvironmentCreateParams::Environment,
?vault_ids: ::Array[String]?,
?idempotency_key: String,
?request_options: OpenAI::request_opts
) -> void
|
Instance Attribute Details
#environment ⇒ OpenAI::Beta::Agents::EnvironmentCreateParams::Environment
The required hosting type and its configuration.
16 |
# File 'lib/openai/models/beta/agents/environment_create_params.rb', line 16 required :environment, -> { OpenAI::Beta::Agents::EnvironmentCreateParams::Environment } |
#idempotency_key ⇒ String?
27 |
# File 'lib/openai/models/beta/agents/environment_create_params.rb', line 27 optional :idempotency_key, String |
#vault_ids ⇒ ::Array[String]?
The IDs of up to 10 vaults made available to an OpenAI-hosted environment.
22 |
# File 'lib/openai/models/beta/agents/environment_create_params.rb', line 22 optional :vault_ids, OpenAI::Internal::Type::ArrayOf[String], nil?: true |
Instance Method Details
#to_hash ⇒ { environment: OpenAI::Beta::Agents::EnvironmentCreateParams::Environment, ?vault_ids: ::Array[String]?, ?idempotency_key: String, ?request_options: OpenAI::RequestOptions }
38 39 40 41 42 43 |
# File 'sig/openai/models/beta/agents/environment_create_params.rbs', line 38
def to_hash: -> {
environment: OpenAI::Beta::Agents::EnvironmentCreateParams::Environment,
?vault_ids: ::Array[String]?,
?idempotency_key: String,
?request_options: OpenAI::RequestOptions
}
|