Class: OpenAI::Models::Beta::Agents::Environments::TemplateCreateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/openai/models/beta/agents/environments/template_create_params.rb,
sig/openai/models/beta/agents/environments/template_create_params.rbs

Overview

See Also:

  • OpenAI::Resources::Beta::Agents::Environments::Templates#create

Defined Under Namespace

Classes: Network, Packages

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Attributes inherited from Internal::Type::BaseModel

#last_response

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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

#initializeObject



42
# File 'sig/openai/models/beta/agents/environments/template_create_params.rbs', line 42

def initialize: (

Instance Attribute Details

#capability_directoriesArray<String>?

Directories that contain capabilities exposed to the agent. Defaults to an empty list.

Parameters:

  • value (::Array[String], nil)

Returns:

  • (Array<String>, nil)


18
# File 'lib/openai/models/beta/agents/environments/template_create_params.rb', line 18

optional :capability_directories, OpenAI::Internal::Type::ArrayOf[String], nil?: true

#envHash{Symbol=>String}?

Environment variables made available to the agent.

Parameters:

  • value (::Hash[Symbol, String], nil)

Returns:

  • (Hash{Symbol=>String}, nil)


24
# File 'lib/openai/models/beta/agents/environments/template_create_params.rb', line 24

optional :env, OpenAI::Internal::Type::HashOf[String], nil?: true

#filesArray<OpenAI::Models::Beta::HostedEnvironmentFileParam::FileID, OpenAI::Models::Beta::HostedEnvironmentFileParam::Inline>?

Files available before the agent starts. Defaults to an empty list.

Parameters:

  • value (::Array[OpenAI::Models::Beta::hosted_environment_file_param], nil)

Returns:



30
31
32
33
34
# File 'lib/openai/models/beta/agents/environments/template_create_params.rb', line 30

optional(
  :files,
  -> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::Beta::HostedEnvironmentFileParam] },
  nil?: true
)

#nameString?

An optional human-readable display name for the template.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


40
# File 'lib/openai/models/beta/agents/environments/template_create_params.rb', line 40

optional :name, String, nil?: true

#networkOpenAI::Models::Beta::Agents::Environments::TemplateCreateParams::Network?

Network access for an OpenAI-hosted environment.

Parameters:

  • value (OpenAI::Beta::Agents::Environments::TemplateCreateParams::Network, nil)

Returns:



46
47
48
49
50
51
52
# File 'lib/openai/models/beta/agents/environments/template_create_params.rb', line 46

optional(
  :network,
  -> {
    OpenAI::Beta::Agents::Environments::TemplateCreateParams::Network
  },
  nil?: true
)

#packagesOpenAI::Models::Beta::Agents::Environments::TemplateCreateParams::Packages?

Packages to install in an OpenAI-hosted environment.

Parameters:

  • value (OpenAI::Beta::Agents::Environments::TemplateCreateParams::Packages, nil)

Returns:



58
59
60
61
62
63
64
# File 'lib/openai/models/beta/agents/environments/template_create_params.rb', line 58

optional(
  :packages,
  -> {
    OpenAI::Beta::Agents::Environments::TemplateCreateParams::Packages
  },
  nil?: true
)

#pluginsArray<OpenAI::Models::Beta::HostedPluginParam>?

Plugins provided as inline ZIP archives. Defaults to an empty list.

Parameters:

  • value (::Array[OpenAI::Beta::HostedPluginParam], nil)

Returns:



70
71
72
73
74
75
76
# File 'lib/openai/models/beta/agents/environments/template_create_params.rb', line 70

optional(
  :plugins,
  -> {
    OpenAI::Internal::Type::ArrayOf[OpenAI::Beta::HostedPluginParam]
  },
  nil?: true
)

#setup_commandsArray<OpenAI::Models::Beta::SetupCommandParam>?

Ordered, confidential setup commands. Command bodies are never returned.

Parameters:

  • value (::Array[OpenAI::Beta::SetupCommandParam], nil)

Returns:



82
83
84
85
86
# File 'lib/openai/models/beta/agents/environments/template_create_params.rb', line 82

optional(
  :setup_commands,
  -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Beta::SetupCommandParam] },
  nil?: true
)

#skillsArray<OpenAI::Models::Beta::HostedSkillParam::SkillReference, OpenAI::Models::Beta::HostedSkillParam::Inline>?

Skills referenced by ID or provided as inline ZIP archives. Defaults to an empty list.

Parameters:

  • value (::Array[OpenAI::Models::Beta::hosted_skill_param], nil)

Returns:



93
94
95
96
97
# File 'lib/openai/models/beta/agents/environments/template_create_params.rb', line 93

optional(
  :skills,
  -> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::Beta::HostedSkillParam] },
  nil?: true
)

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openai/models/beta/agents/environments/template_create_params.rb', line 168

Instance Method Details

#to_hash{

Returns:

  • ({)


55
# File 'sig/openai/models/beta/agents/environments/template_create_params.rbs', line 55

def to_hash: -> {