openai 0.101.1 → 0.102.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/lib/openai/models/beta/agents/environment_create_params.rb +300 -0
- data/lib/openai/models/beta/agents/environment_info.rb +4 -1
- data/lib/openai/models/beta/agents/environment_list_params.rb +78 -0
- data/lib/openai/models/beta/environment_param.rb +12 -1
- data/lib/openai/models/webhooks/agent_environment_failed_webhook_event.rb +73 -0
- data/lib/openai/models/webhooks/agent_environment_ready_webhook_event.rb +73 -0
- data/lib/openai/models/webhooks/unwrap_webhook_event.rb +9 -3
- data/lib/openai/models/webhooks/webhook_create_params.rb +2 -0
- data/lib/openai/models/webhooks/webhook_test_params.rb +2 -0
- data/lib/openai/models/webhooks/webhook_update_params.rb +2 -0
- data/lib/openai/resources/beta/agents/environments/files.rb +4 -2
- data/lib/openai/resources/beta/agents/environments/templates.rb +10 -5
- data/lib/openai/resources/beta/agents/environments.rb +80 -1
- data/lib/openai/resources/beta/agents/sessions/artifacts.rb +8 -5
- data/lib/openai/resources/beta/agents/sessions/events.rb +10 -4
- data/lib/openai/resources/beta/agents/sessions/items.rb +2 -1
- data/lib/openai/resources/beta/agents/sessions/subagents/items.rb +2 -1
- data/lib/openai/resources/beta/agents/sessions/subagents/turns/items.rb +2 -1
- data/lib/openai/resources/beta/agents/sessions/subagents/turns.rb +4 -2
- data/lib/openai/resources/beta/agents/sessions/subagents.rb +4 -2
- data/lib/openai/resources/beta/agents/sessions/traces.rb +2 -1
- data/lib/openai/resources/beta/agents/sessions/turns/items.rb +2 -1
- data/lib/openai/resources/beta/agents/sessions/turns.rb +4 -2
- data/lib/openai/resources/beta/agents/sessions.rb +16 -7
- data/lib/openai/resources/beta/agents/vaults/credentials.rb +10 -5
- data/lib/openai/resources/beta/agents/vaults.rb +8 -4
- data/lib/openai/resources/beta/agents.rb +10 -5
- data/lib/openai/resources/beta/assistants.rb +10 -5
- data/lib/openai/resources/beta/chatkit/sessions.rb +4 -2
- data/lib/openai/resources/beta/chatkit/threads.rb +8 -4
- data/lib/openai/resources/beta/threads/messages.rb +10 -5
- data/lib/openai/resources/beta/threads/runs/steps.rb +4 -2
- data/lib/openai/resources/beta/threads/runs.rb +24 -10
- data/lib/openai/resources/beta/threads.rb +16 -7
- data/lib/openai/resources/vector_stores/file_batches.rb +8 -10
- data/lib/openai/resources/vector_stores/files.rb +12 -12
- data/lib/openai/resources/vector_stores.rb +12 -6
- data/lib/openai/resources/webhooks.rb +1 -1
- data/lib/openai/version.rb +1 -1
- data/lib/openai.rb +4 -0
- data/rbi/openai/models/beta/agents/environment_create_params.rbi +499 -0
- data/rbi/openai/models/beta/agents/environment_info.rbi +3 -0
- data/rbi/openai/models/beta/agents/environment_list_params.rbi +136 -0
- data/rbi/openai/models/beta/environment_param.rbi +15 -0
- data/rbi/openai/models/webhooks/agent_environment_failed_webhook_event.rbi +134 -0
- data/rbi/openai/models/webhooks/agent_environment_ready_webhook_event.rbi +134 -0
- data/rbi/openai/models/webhooks/unwrap_webhook_event.rbi +4 -2
- data/rbi/openai/models/webhooks/webhook_create_params.rbi +8 -0
- data/rbi/openai/models/webhooks/webhook_test_params.rbi +8 -0
- data/rbi/openai/models/webhooks/webhook_update_params.rbi +8 -0
- data/rbi/openai/resources/beta/agents/environments.rbi +53 -0
- data/rbi/openai/resources/webhooks.rbi +2 -0
- data/sig/openai/models/beta/agents/environment_create_params.rbs +268 -0
- data/sig/openai/models/beta/agents/environment_info.rbs +5 -1
- data/sig/openai/models/beta/agents/environment_list_params.rbs +97 -0
- data/sig/openai/models/beta/environment_param.rbs +14 -0
- data/sig/openai/models/webhooks/agent_environment_failed_webhook_event.rbs +70 -0
- data/sig/openai/models/webhooks/agent_environment_ready_webhook_event.rbs +70 -0
- data/sig/openai/models/webhooks/unwrap_webhook_event.rbs +3 -1
- data/sig/openai/models/webhooks/webhook_create_params.rbs +4 -0
- data/sig/openai/models/webhooks/webhook_test_params.rbs +4 -0
- data/sig/openai/models/webhooks/webhook_update_params.rbs +4 -0
- data/sig/openai/resources/beta/agents/environments.rbs +15 -0
- data/sig/openai/resources/webhooks.rbs +3 -1
- metadata +13 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e214fa257d53a7b24aa14ad9d7bbabb907c47e3b50b2fbf769177dac7bfe04b8
|
|
4
|
+
data.tar.gz: 4356c890b1060157f4d252b411eb234f6987782cea1ab79a4eba9d8d00028a87
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1b6c400866161baef0e067c3ebd597b483249954373a32e193e58b8383638d52a977d10270f8e0d876b8838109ec3d086049548d20e77aa9d2d6adbd21a778ea
|
|
7
|
+
data.tar.gz: dfa20d336ce432cd06d9a65e4ef94575581783885fed890600f35dc32a54b69af9cc2ef63b3d474d561edc88fcc9f944423832e5aa55812f550395a8622bb35e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.102.0](https://github.com/openai/openai-ruby/compare/v0.101.1...v0.102.0) (2026-10-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **api:** add prewarmed hosted environments ([#818](https://github.com/openai/openai-ruby/issues/818)) ([a9e8015](https://github.com/openai/openai-ruby/commit/a9e80153b030395eca41bf4c6cce0b1e7fcea4dd))
|
|
9
|
+
|
|
3
10
|
## [0.101.1](https://github.com/openai/openai-ruby/compare/v0.101.0...v0.101.1) (2026-10-08)
|
|
4
11
|
|
|
5
12
|
|
data/README.md
CHANGED
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Agents
|
|
7
|
+
# @see OpenAI::Resources::Beta::Agents::Environments#create
|
|
8
|
+
class EnvironmentCreateParams < OpenAI::Internal::Type::BaseModel
|
|
9
|
+
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include OpenAI::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute environment
|
|
13
|
+
# The required hosting type and its configuration.
|
|
14
|
+
#
|
|
15
|
+
# @return [OpenAI::Models::Beta::Agents::EnvironmentCreateParams::Environment]
|
|
16
|
+
required :environment, -> { OpenAI::Beta::Agents::EnvironmentCreateParams::Environment }
|
|
17
|
+
|
|
18
|
+
# @!attribute vault_ids
|
|
19
|
+
# The IDs of up to 10 vaults made available to an OpenAI-hosted environment.
|
|
20
|
+
#
|
|
21
|
+
# @return [Array<String>, nil]
|
|
22
|
+
optional :vault_ids, OpenAI::Internal::Type::ArrayOf[String], nil?: true
|
|
23
|
+
|
|
24
|
+
# @!attribute idempotency_key
|
|
25
|
+
#
|
|
26
|
+
# @return [String, nil]
|
|
27
|
+
optional :idempotency_key, String
|
|
28
|
+
|
|
29
|
+
# @!method initialize(environment:, vault_ids: nil, idempotency_key: nil, request_options: {})
|
|
30
|
+
# @param environment [OpenAI::Models::Beta::Agents::EnvironmentCreateParams::Environment]
|
|
31
|
+
# The required hosting type and its configuration.
|
|
32
|
+
#
|
|
33
|
+
# @param vault_ids [Array<String>, nil]
|
|
34
|
+
# The IDs of up to 10 vaults made available to an OpenAI-hosted environment.
|
|
35
|
+
#
|
|
36
|
+
# @param idempotency_key [String]
|
|
37
|
+
#
|
|
38
|
+
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
|
|
39
|
+
|
|
40
|
+
class Environment < OpenAI::Internal::Type::BaseModel
|
|
41
|
+
# @!attribute type
|
|
42
|
+
# The type of the object. Always `openai_hosted`.
|
|
43
|
+
#
|
|
44
|
+
# @return [Symbol, :openai_hosted]
|
|
45
|
+
required :type, const: :openai_hosted
|
|
46
|
+
|
|
47
|
+
# @!attribute capability_directories
|
|
48
|
+
# Directories that contain capabilities exposed to the agent. Defaults to an empty
|
|
49
|
+
# list.
|
|
50
|
+
#
|
|
51
|
+
# @return [Array<String>, nil]
|
|
52
|
+
optional :capability_directories, OpenAI::Internal::Type::ArrayOf[String], nil?: true
|
|
53
|
+
|
|
54
|
+
# @!attribute desktop
|
|
55
|
+
# Desktop provisioning. Omission or null inherits the template setting, or
|
|
56
|
+
# defaults to disabled.
|
|
57
|
+
#
|
|
58
|
+
# @return [OpenAI::Models::Beta::Agents::EnvironmentCreateParams::Environment::Desktop, nil]
|
|
59
|
+
optional(
|
|
60
|
+
:desktop,
|
|
61
|
+
-> {
|
|
62
|
+
OpenAI::Beta::Agents::EnvironmentCreateParams::Environment::Desktop
|
|
63
|
+
},
|
|
64
|
+
nil?: true
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
# @!attribute env
|
|
68
|
+
# Environment variables made available to the agent.
|
|
69
|
+
#
|
|
70
|
+
# @return [Hash{Symbol=>String}, nil]
|
|
71
|
+
optional :env, OpenAI::Internal::Type::HashOf[String], nil?: true
|
|
72
|
+
|
|
73
|
+
# @!attribute environment_template_id
|
|
74
|
+
# A reusable hosted template applied before inline configuration. Omitted fields
|
|
75
|
+
# inherit the template; network overrides cannot broaden its policy.
|
|
76
|
+
#
|
|
77
|
+
# @return [String, nil]
|
|
78
|
+
optional :environment_template_id, String
|
|
79
|
+
|
|
80
|
+
# @!attribute files
|
|
81
|
+
# Files available before the agent starts. Defaults to an empty list.
|
|
82
|
+
#
|
|
83
|
+
# @return [Array<OpenAI::Models::Beta::HostedEnvironmentFileParam::FileID, OpenAI::Models::Beta::HostedEnvironmentFileParam::Inline>, nil]
|
|
84
|
+
optional(
|
|
85
|
+
:files,
|
|
86
|
+
-> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::Beta::HostedEnvironmentFileParam] },
|
|
87
|
+
nil?: true
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
# @!attribute network
|
|
91
|
+
# Network access policy for the environment. If omitted, the API version
|
|
92
|
+
# determines whether network access is enabled or disabled.
|
|
93
|
+
#
|
|
94
|
+
# @return [OpenAI::Models::Beta::Agents::EnvironmentCreateParams::Environment::Network, nil]
|
|
95
|
+
optional(
|
|
96
|
+
:network,
|
|
97
|
+
-> {
|
|
98
|
+
OpenAI::Beta::Agents::EnvironmentCreateParams::Environment::Network
|
|
99
|
+
},
|
|
100
|
+
nil?: true
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
# @!attribute packages
|
|
104
|
+
# Packages to install in the environment. Defaults to empty package lists.
|
|
105
|
+
#
|
|
106
|
+
# @return [OpenAI::Models::Beta::Agents::EnvironmentCreateParams::Environment::Packages, nil]
|
|
107
|
+
optional(
|
|
108
|
+
:packages,
|
|
109
|
+
-> { OpenAI::Beta::Agents::EnvironmentCreateParams::Environment::Packages },
|
|
110
|
+
nil?: true
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
# @!attribute plugins
|
|
114
|
+
# Plugins provided as inline ZIP archives. Defaults to an empty list.
|
|
115
|
+
#
|
|
116
|
+
# @return [Array<OpenAI::Models::Beta::HostedPluginParam>, nil]
|
|
117
|
+
optional(
|
|
118
|
+
:plugins,
|
|
119
|
+
-> {
|
|
120
|
+
OpenAI::Internal::Type::ArrayOf[OpenAI::Beta::HostedPluginParam]
|
|
121
|
+
},
|
|
122
|
+
nil?: true
|
|
123
|
+
)
|
|
124
|
+
|
|
125
|
+
# @!attribute setup_commands
|
|
126
|
+
# Ordered, confidential setup commands. Command bodies are never returned.
|
|
127
|
+
#
|
|
128
|
+
# @return [Array<OpenAI::Models::Beta::SetupCommandParam>, nil]
|
|
129
|
+
optional(
|
|
130
|
+
:setup_commands,
|
|
131
|
+
-> { OpenAI::Internal::Type::ArrayOf[OpenAI::Beta::SetupCommandParam] },
|
|
132
|
+
nil?: true
|
|
133
|
+
)
|
|
134
|
+
|
|
135
|
+
# @!attribute skills
|
|
136
|
+
# Skills referenced by ID or provided as inline ZIP archives. Defaults to an empty
|
|
137
|
+
# list.
|
|
138
|
+
#
|
|
139
|
+
# @return [Array<OpenAI::Models::Beta::HostedSkillParam::SkillReference, OpenAI::Models::Beta::HostedSkillParam::Inline>, nil]
|
|
140
|
+
optional(
|
|
141
|
+
:skills,
|
|
142
|
+
-> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::Beta::HostedSkillParam] },
|
|
143
|
+
nil?: true
|
|
144
|
+
)
|
|
145
|
+
|
|
146
|
+
# @!method initialize(capability_directories: nil, desktop: nil, env: nil, environment_template_id: nil, files: nil, network: nil, packages: nil, plugins: nil, setup_commands: nil, skills: nil, type: :openai_hosted)
|
|
147
|
+
# The required hosting type and its configuration.
|
|
148
|
+
#
|
|
149
|
+
# @param capability_directories [Array<String>, nil]
|
|
150
|
+
# Directories that contain capabilities exposed to the agent. Defaults to an empty
|
|
151
|
+
# list.
|
|
152
|
+
#
|
|
153
|
+
# @param desktop [OpenAI::Models::Beta::Agents::EnvironmentCreateParams::Environment::Desktop, nil]
|
|
154
|
+
# Desktop provisioning. Omission or null inherits the template setting, or
|
|
155
|
+
# defaults to disabled.
|
|
156
|
+
#
|
|
157
|
+
# @param env [Hash{Symbol=>String}, nil]
|
|
158
|
+
# Environment variables made available to the agent.
|
|
159
|
+
#
|
|
160
|
+
# @param environment_template_id [String]
|
|
161
|
+
# A reusable hosted template applied before inline configuration. Omitted fields
|
|
162
|
+
# inherit the template; network overrides cannot broaden its policy.
|
|
163
|
+
#
|
|
164
|
+
# @param files [Array<OpenAI::Models::Beta::HostedEnvironmentFileParam::FileID, OpenAI::Models::Beta::HostedEnvironmentFileParam::Inline>, nil]
|
|
165
|
+
# Files available before the agent starts. Defaults to an empty list.
|
|
166
|
+
#
|
|
167
|
+
# @param network [OpenAI::Models::Beta::Agents::EnvironmentCreateParams::Environment::Network, nil]
|
|
168
|
+
# Network access policy for the environment. If omitted, the API version
|
|
169
|
+
# determines whether network access is enabled or disabled.
|
|
170
|
+
#
|
|
171
|
+
# @param packages [OpenAI::Models::Beta::Agents::EnvironmentCreateParams::Environment::Packages, nil]
|
|
172
|
+
# Packages to install in the environment. Defaults to empty package lists.
|
|
173
|
+
#
|
|
174
|
+
# @param plugins [Array<OpenAI::Models::Beta::HostedPluginParam>, nil]
|
|
175
|
+
# Plugins provided as inline ZIP archives. Defaults to an empty list.
|
|
176
|
+
#
|
|
177
|
+
# @param setup_commands [Array<OpenAI::Models::Beta::SetupCommandParam>, nil]
|
|
178
|
+
# Ordered, confidential setup commands. Command bodies are never returned.
|
|
179
|
+
#
|
|
180
|
+
# @param skills [Array<OpenAI::Models::Beta::HostedSkillParam::SkillReference, OpenAI::Models::Beta::HostedSkillParam::Inline>, nil]
|
|
181
|
+
# Skills referenced by ID or provided as inline ZIP archives. Defaults to an empty
|
|
182
|
+
# list.
|
|
183
|
+
#
|
|
184
|
+
# @param type [Symbol, :openai_hosted]
|
|
185
|
+
# The type of the object. Always `openai_hosted`.
|
|
186
|
+
|
|
187
|
+
# @see OpenAI::Models::Beta::Agents::EnvironmentCreateParams::Environment#desktop
|
|
188
|
+
class Desktop < OpenAI::Internal::Type::BaseModel
|
|
189
|
+
# @!attribute enabled
|
|
190
|
+
# Whether to provision the desktop and its browser proxy.
|
|
191
|
+
#
|
|
192
|
+
# @return [Boolean]
|
|
193
|
+
required :enabled, OpenAI::Internal::Type::Boolean
|
|
194
|
+
|
|
195
|
+
# @!method initialize(enabled:)
|
|
196
|
+
# Desktop provisioning. Omission or null inherits the template setting, or
|
|
197
|
+
# defaults to disabled.
|
|
198
|
+
#
|
|
199
|
+
# @param enabled [Boolean]
|
|
200
|
+
# Whether to provision the desktop and its browser proxy.
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# @see OpenAI::Models::Beta::Agents::EnvironmentCreateParams::Environment#network
|
|
204
|
+
class Network < OpenAI::Internal::Type::BaseModel
|
|
205
|
+
# @!attribute access
|
|
206
|
+
# The environment's network access mode.
|
|
207
|
+
#
|
|
208
|
+
# @return [Symbol, OpenAI::Models::Beta::Agents::EnvironmentCreateParams::Environment::Network::Access]
|
|
209
|
+
required(
|
|
210
|
+
:access,
|
|
211
|
+
enum: -> { OpenAI::Beta::Agents::EnvironmentCreateParams::Environment::Network::Access }
|
|
212
|
+
)
|
|
213
|
+
|
|
214
|
+
# @!attribute allowed_domains
|
|
215
|
+
# Domains the environment may access when network access is restricted.
|
|
216
|
+
#
|
|
217
|
+
# @return [Array<String>, nil]
|
|
218
|
+
optional :allowed_domains, OpenAI::Internal::Type::ArrayOf[String], nil?: true
|
|
219
|
+
|
|
220
|
+
# @!attribute blocked_domains
|
|
221
|
+
# Domains blocked for both executor and browser when access is restricted. A
|
|
222
|
+
# nonempty list requires `access: restricted` and cannot be combined with nonempty
|
|
223
|
+
# `allowed_domains`. Wildcard domains are not supported.
|
|
224
|
+
#
|
|
225
|
+
# @return [Array<String>, nil]
|
|
226
|
+
optional :blocked_domains, OpenAI::Internal::Type::ArrayOf[String], nil?: true
|
|
227
|
+
|
|
228
|
+
# @!method initialize(access:, allowed_domains: nil, blocked_domains: nil)
|
|
229
|
+
# Network access policy for the environment. If omitted, the API version
|
|
230
|
+
# determines whether network access is enabled or disabled.
|
|
231
|
+
#
|
|
232
|
+
# @param access [Symbol, OpenAI::Models::Beta::Agents::EnvironmentCreateParams::Environment::Network::Access]
|
|
233
|
+
# The environment's network access mode.
|
|
234
|
+
#
|
|
235
|
+
# @param allowed_domains [Array<String>, nil]
|
|
236
|
+
# Domains the environment may access when network access is restricted.
|
|
237
|
+
#
|
|
238
|
+
# @param blocked_domains [Array<String>, nil]
|
|
239
|
+
# Domains blocked for both executor and browser when access is restricted. A
|
|
240
|
+
# nonempty list requires `access: restricted` and cannot be combined with nonempty
|
|
241
|
+
# `allowed_domains`. Wildcard domains are not supported.
|
|
242
|
+
|
|
243
|
+
# The environment's network access mode.
|
|
244
|
+
#
|
|
245
|
+
# @see OpenAI::Models::Beta::Agents::EnvironmentCreateParams::Environment::Network#access
|
|
246
|
+
module Access
|
|
247
|
+
extend OpenAI::Internal::Type::Enum
|
|
248
|
+
|
|
249
|
+
# Allows unrestricted network access.
|
|
250
|
+
ENABLED = :enabled
|
|
251
|
+
|
|
252
|
+
# Disables network access.
|
|
253
|
+
DISABLED = :disabled
|
|
254
|
+
|
|
255
|
+
# Applies the configured domain restrictions.
|
|
256
|
+
RESTRICTED = :restricted
|
|
257
|
+
|
|
258
|
+
# @!method self.values
|
|
259
|
+
# @return [Array<Symbol>]
|
|
260
|
+
end
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
# @see OpenAI::Models::Beta::Agents::EnvironmentCreateParams::Environment#packages
|
|
264
|
+
class Packages < OpenAI::Internal::Type::BaseModel
|
|
265
|
+
# @!attribute npm
|
|
266
|
+
# npm packages to install globally. Defaults to an empty list.
|
|
267
|
+
#
|
|
268
|
+
# @return [Array<String>, nil]
|
|
269
|
+
optional :npm, OpenAI::Internal::Type::ArrayOf[String], nil?: true
|
|
270
|
+
|
|
271
|
+
# @!attribute python
|
|
272
|
+
# Python packages to install. Defaults to an empty list.
|
|
273
|
+
#
|
|
274
|
+
# @return [Array<String>, nil]
|
|
275
|
+
optional :python, OpenAI::Internal::Type::ArrayOf[String], nil?: true
|
|
276
|
+
|
|
277
|
+
# @!attribute system_
|
|
278
|
+
# System packages to install. Defaults to an empty list.
|
|
279
|
+
#
|
|
280
|
+
# @return [Array<String>, nil]
|
|
281
|
+
optional :system_, OpenAI::Internal::Type::ArrayOf[String], api_name: :system, nil?: true
|
|
282
|
+
|
|
283
|
+
# @!method initialize(npm: nil, python: nil, system_: nil)
|
|
284
|
+
# Packages to install in the environment. Defaults to empty package lists.
|
|
285
|
+
#
|
|
286
|
+
# @param npm [Array<String>, nil]
|
|
287
|
+
# npm packages to install globally. Defaults to an empty list.
|
|
288
|
+
#
|
|
289
|
+
# @param python [Array<String>, nil]
|
|
290
|
+
# Python packages to install. Defaults to an empty list.
|
|
291
|
+
#
|
|
292
|
+
# @param system_ [Array<String>, nil]
|
|
293
|
+
# System packages to install. Defaults to an empty list.
|
|
294
|
+
end
|
|
295
|
+
end
|
|
296
|
+
end
|
|
297
|
+
end
|
|
298
|
+
end
|
|
299
|
+
end
|
|
300
|
+
end
|
|
@@ -4,7 +4,7 @@ module OpenAI
|
|
|
4
4
|
module Models
|
|
5
5
|
module Beta
|
|
6
6
|
module Agents
|
|
7
|
-
# @see OpenAI::Resources::Beta::Agents::Environments#
|
|
7
|
+
# @see OpenAI::Resources::Beta::Agents::Environments#create
|
|
8
8
|
class EnvironmentInfo < OpenAI::Internal::Type::BaseModel
|
|
9
9
|
# @!attribute id
|
|
10
10
|
# The ID of the environment.
|
|
@@ -79,6 +79,9 @@ module OpenAI
|
|
|
79
79
|
extend OpenAI::Internal::Type::Enum
|
|
80
80
|
|
|
81
81
|
PENDING = :pending
|
|
82
|
+
# Provisioning succeeded and the environment is available for attachment or use.
|
|
83
|
+
READY = :ready
|
|
84
|
+
|
|
82
85
|
CONNECTED = :connected
|
|
83
86
|
DISCONNECTED = :disconnected
|
|
84
87
|
EXPIRED = :expired
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Agents
|
|
7
|
+
# @see OpenAI::Resources::Beta::Agents::Environments#list
|
|
8
|
+
class EnvironmentListParams < OpenAI::Internal::Type::BaseModel
|
|
9
|
+
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include OpenAI::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute after
|
|
13
|
+
# Return environments after this environment ID in the selected order.
|
|
14
|
+
#
|
|
15
|
+
# @return [String, nil]
|
|
16
|
+
optional :after, String
|
|
17
|
+
|
|
18
|
+
# @!attribute limit
|
|
19
|
+
# The maximum number of environments to return, between 1 and 100. Defaults to 20.
|
|
20
|
+
#
|
|
21
|
+
# @return [Integer, nil]
|
|
22
|
+
optional :limit, Integer
|
|
23
|
+
|
|
24
|
+
# @!attribute order
|
|
25
|
+
# The order in which environments are returned. Defaults to `desc`.
|
|
26
|
+
#
|
|
27
|
+
# @return [Symbol, OpenAI::Models::Beta::Agents::EnvironmentListParams::Order, nil]
|
|
28
|
+
optional :order, enum: -> { OpenAI::Beta::Agents::EnvironmentListParams::Order }
|
|
29
|
+
|
|
30
|
+
# @!attribute type
|
|
31
|
+
# The hosting type to list. Defaults to `openai_hosted`.
|
|
32
|
+
#
|
|
33
|
+
# @return [Symbol, OpenAI::Models::Beta::Agents::EnvironmentListParams::Type, nil]
|
|
34
|
+
optional :type, enum: -> { OpenAI::Beta::Agents::EnvironmentListParams::Type }
|
|
35
|
+
|
|
36
|
+
# @!method initialize(after: nil, limit: nil, order: nil, type: nil, request_options: {})
|
|
37
|
+
# @param after [String]
|
|
38
|
+
# Return environments after this environment ID in the selected order.
|
|
39
|
+
#
|
|
40
|
+
# @param limit [Integer]
|
|
41
|
+
# The maximum number of environments to return, between 1 and 100. Defaults to 20.
|
|
42
|
+
#
|
|
43
|
+
# @param order [Symbol, OpenAI::Models::Beta::Agents::EnvironmentListParams::Order]
|
|
44
|
+
# The order in which environments are returned. Defaults to `desc`.
|
|
45
|
+
#
|
|
46
|
+
# @param type [Symbol, OpenAI::Models::Beta::Agents::EnvironmentListParams::Type]
|
|
47
|
+
# The hosting type to list. Defaults to `openai_hosted`.
|
|
48
|
+
#
|
|
49
|
+
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
|
|
50
|
+
|
|
51
|
+
# The order in which environments are returned. Defaults to `desc`.
|
|
52
|
+
module Order
|
|
53
|
+
extend OpenAI::Internal::Type::Enum
|
|
54
|
+
|
|
55
|
+
# Returns resources in ascending order.
|
|
56
|
+
ASC = :asc
|
|
57
|
+
|
|
58
|
+
# Returns resources in descending order.
|
|
59
|
+
DESC = :desc
|
|
60
|
+
|
|
61
|
+
# @!method self.values
|
|
62
|
+
# @return [Array<Symbol>]
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# The hosting type to list. Defaults to `openai_hosted`.
|
|
66
|
+
module Type
|
|
67
|
+
extend OpenAI::Internal::Type::Enum
|
|
68
|
+
|
|
69
|
+
OPENAI_HOSTED = :openai_hosted
|
|
70
|
+
|
|
71
|
+
# @!method self.values
|
|
72
|
+
# @return [Array<Symbol>]
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
@@ -65,6 +65,13 @@ module OpenAI
|
|
|
65
65
|
# @return [Hash{Symbol=>String}, nil]
|
|
66
66
|
optional :env, OpenAI::Internal::Type::HashOf[String], nil?: true
|
|
67
67
|
|
|
68
|
+
# @!attribute environment_id
|
|
69
|
+
# An existing prewarmed environment. Cannot be combined with a template or inline
|
|
70
|
+
# configuration.
|
|
71
|
+
#
|
|
72
|
+
# @return [String, nil]
|
|
73
|
+
optional :environment_id, String
|
|
74
|
+
|
|
68
75
|
# @!attribute environment_template_id
|
|
69
76
|
# A reusable hosted template applied before inline session configuration. Omitted
|
|
70
77
|
# fields inherit the template; network overrides cannot broaden its policy.
|
|
@@ -128,7 +135,7 @@ module OpenAI
|
|
|
128
135
|
nil?: true
|
|
129
136
|
)
|
|
130
137
|
|
|
131
|
-
# @!method initialize(capability_directories: nil, container_size: nil, desktop: nil, env: nil, environment_template_id: nil, files: nil, network: nil, packages: nil, plugins: nil, setup_commands: nil, skills: nil, type: :openai_hosted)
|
|
138
|
+
# @!method initialize(capability_directories: nil, container_size: nil, desktop: nil, env: nil, environment_id: nil, environment_template_id: nil, files: nil, network: nil, packages: nil, plugins: nil, setup_commands: nil, skills: nil, type: :openai_hosted)
|
|
132
139
|
# An existing OpenAI-hosted environment or new inline/template-based hosted
|
|
133
140
|
# configuration.
|
|
134
141
|
#
|
|
@@ -146,6 +153,10 @@ module OpenAI
|
|
|
146
153
|
# @param env [Hash{Symbol=>String}, nil]
|
|
147
154
|
# Environment variables made available to the agent.
|
|
148
155
|
#
|
|
156
|
+
# @param environment_id [String]
|
|
157
|
+
# An existing prewarmed environment. Cannot be combined with a template or inline
|
|
158
|
+
# configuration.
|
|
159
|
+
#
|
|
149
160
|
# @param environment_template_id [String]
|
|
150
161
|
# A reusable hosted template applied before inline session configuration. Omitted
|
|
151
162
|
# fields inherit the template; network overrides cannot broaden its policy.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Webhooks
|
|
6
|
+
class AgentEnvironmentFailedWebhookEvent < OpenAI::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# The unique ID of the event.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute created_at
|
|
14
|
+
# The Unix timestamp, in seconds, when the event was created.
|
|
15
|
+
#
|
|
16
|
+
# @return [Integer]
|
|
17
|
+
required :created_at, Integer
|
|
18
|
+
|
|
19
|
+
# @!attribute data
|
|
20
|
+
# Identifies the environment whose lifecycle changed.
|
|
21
|
+
#
|
|
22
|
+
# @return [OpenAI::Models::Webhooks::AgentEnvironmentFailedWebhookEvent::Data]
|
|
23
|
+
required :data, -> { OpenAI::Webhooks::AgentEnvironmentFailedWebhookEvent::Data }
|
|
24
|
+
|
|
25
|
+
# @!attribute object
|
|
26
|
+
# The object type. Always `event`.
|
|
27
|
+
#
|
|
28
|
+
# @return [Symbol, :event]
|
|
29
|
+
required :object, const: :event
|
|
30
|
+
|
|
31
|
+
# @!attribute type
|
|
32
|
+
# The event type. Always `agent.environment.failed`.
|
|
33
|
+
#
|
|
34
|
+
# @return [Symbol, :"agent.environment.failed"]
|
|
35
|
+
required :type, const: :"agent.environment.failed"
|
|
36
|
+
|
|
37
|
+
# @!method initialize(id:, created_at:, data:, object: :event, type: :"agent.environment.failed")
|
|
38
|
+
# Sent when setup fails for a prewarmed OpenAI-hosted environment before it is
|
|
39
|
+
# attached to a session.
|
|
40
|
+
#
|
|
41
|
+
# @param id [String]
|
|
42
|
+
# The unique ID of the event.
|
|
43
|
+
#
|
|
44
|
+
# @param created_at [Integer]
|
|
45
|
+
# The Unix timestamp, in seconds, when the event was created.
|
|
46
|
+
#
|
|
47
|
+
# @param data [OpenAI::Models::Webhooks::AgentEnvironmentFailedWebhookEvent::Data]
|
|
48
|
+
# Identifies the environment whose lifecycle changed.
|
|
49
|
+
#
|
|
50
|
+
# @param object [Symbol, :event]
|
|
51
|
+
# The object type. Always `event`.
|
|
52
|
+
#
|
|
53
|
+
# @param type [Symbol, :"agent.environment.failed"]
|
|
54
|
+
# The event type. Always `agent.environment.failed`.
|
|
55
|
+
|
|
56
|
+
# @see OpenAI::Models::Webhooks::AgentEnvironmentFailedWebhookEvent#data
|
|
57
|
+
class Data < OpenAI::Internal::Type::BaseModel
|
|
58
|
+
# @!attribute id
|
|
59
|
+
# The ID of the environment.
|
|
60
|
+
#
|
|
61
|
+
# @return [String]
|
|
62
|
+
required :id, String
|
|
63
|
+
|
|
64
|
+
# @!method initialize(id:)
|
|
65
|
+
# Identifies the environment whose lifecycle changed.
|
|
66
|
+
#
|
|
67
|
+
# @param id [String]
|
|
68
|
+
# The ID of the environment.
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Webhooks
|
|
6
|
+
class AgentEnvironmentReadyWebhookEvent < OpenAI::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# The unique ID of the event.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute created_at
|
|
14
|
+
# The Unix timestamp, in seconds, when the event was created.
|
|
15
|
+
#
|
|
16
|
+
# @return [Integer]
|
|
17
|
+
required :created_at, Integer
|
|
18
|
+
|
|
19
|
+
# @!attribute data
|
|
20
|
+
# Identifies the environment whose lifecycle changed.
|
|
21
|
+
#
|
|
22
|
+
# @return [OpenAI::Models::Webhooks::AgentEnvironmentReadyWebhookEvent::Data]
|
|
23
|
+
required :data, -> { OpenAI::Webhooks::AgentEnvironmentReadyWebhookEvent::Data }
|
|
24
|
+
|
|
25
|
+
# @!attribute object
|
|
26
|
+
# The object type. Always `event`.
|
|
27
|
+
#
|
|
28
|
+
# @return [Symbol, :event]
|
|
29
|
+
required :object, const: :event
|
|
30
|
+
|
|
31
|
+
# @!attribute type
|
|
32
|
+
# The event type. Always `agent.environment.ready`.
|
|
33
|
+
#
|
|
34
|
+
# @return [Symbol, :"agent.environment.ready"]
|
|
35
|
+
required :type, const: :"agent.environment.ready"
|
|
36
|
+
|
|
37
|
+
# @!method initialize(id:, created_at:, data:, object: :event, type: :"agent.environment.ready")
|
|
38
|
+
# Sent when a prewarmed OpenAI-hosted environment finishes setup before being
|
|
39
|
+
# attached to a session.
|
|
40
|
+
#
|
|
41
|
+
# @param id [String]
|
|
42
|
+
# The unique ID of the event.
|
|
43
|
+
#
|
|
44
|
+
# @param created_at [Integer]
|
|
45
|
+
# The Unix timestamp, in seconds, when the event was created.
|
|
46
|
+
#
|
|
47
|
+
# @param data [OpenAI::Models::Webhooks::AgentEnvironmentReadyWebhookEvent::Data]
|
|
48
|
+
# Identifies the environment whose lifecycle changed.
|
|
49
|
+
#
|
|
50
|
+
# @param object [Symbol, :event]
|
|
51
|
+
# The object type. Always `event`.
|
|
52
|
+
#
|
|
53
|
+
# @param type [Symbol, :"agent.environment.ready"]
|
|
54
|
+
# The event type. Always `agent.environment.ready`.
|
|
55
|
+
|
|
56
|
+
# @see OpenAI::Models::Webhooks::AgentEnvironmentReadyWebhookEvent#data
|
|
57
|
+
class Data < OpenAI::Internal::Type::BaseModel
|
|
58
|
+
# @!attribute id
|
|
59
|
+
# The ID of the environment.
|
|
60
|
+
#
|
|
61
|
+
# @return [String]
|
|
62
|
+
required :id, String
|
|
63
|
+
|
|
64
|
+
# @!method initialize(id:)
|
|
65
|
+
# Identifies the environment whose lifecycle changed.
|
|
66
|
+
#
|
|
67
|
+
# @param id [String]
|
|
68
|
+
# The ID of the environment.
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
@@ -3,13 +3,19 @@
|
|
|
3
3
|
module OpenAI
|
|
4
4
|
module Models
|
|
5
5
|
module Webhooks
|
|
6
|
-
# Sent when
|
|
7
|
-
#
|
|
6
|
+
# Sent when setup fails for a prewarmed OpenAI-hosted environment before it is
|
|
7
|
+
# attached to a session.
|
|
8
8
|
module UnwrapWebhookEvent
|
|
9
9
|
extend OpenAI::Internal::Type::Union
|
|
10
10
|
|
|
11
11
|
discriminator :type
|
|
12
12
|
|
|
13
|
+
# Sent when setup fails for a prewarmed OpenAI-hosted environment before it is attached to a session.
|
|
14
|
+
variant :"agent.environment.failed", -> { OpenAI::Webhooks::AgentEnvironmentFailedWebhookEvent }
|
|
15
|
+
|
|
16
|
+
# Sent when a prewarmed OpenAI-hosted environment finishes setup before being attached to a session.
|
|
17
|
+
variant :"agent.environment.ready", -> { OpenAI::Webhooks::AgentEnvironmentReadyWebhookEvent }
|
|
18
|
+
|
|
13
19
|
# Sent when an agent session requires an action. Retrieve the session for action details.
|
|
14
20
|
variant :"agent.session.action_required", -> { OpenAI::Webhooks::AgentSessionActionRequiredWebhookEvent }
|
|
15
21
|
|
|
@@ -97,7 +103,7 @@ module OpenAI
|
|
|
97
103
|
variant :"safety.warning_issued", -> { OpenAI::Webhooks::SafetyWarningIssuedWebhookEvent }
|
|
98
104
|
|
|
99
105
|
# @!method self.variants
|
|
100
|
-
# @return [Array(OpenAI::Models::Webhooks::AgentSessionActionRequiredWebhookEvent, OpenAI::Models::Webhooks::AgentSessionCreatedWebhookEvent, OpenAI::Models::Webhooks::AgentSessionFailedWebhookEvent, OpenAI::Models::Webhooks::AgentSessionIdleWebhookEvent, OpenAI::Models::Webhooks::AgentSessionInProgressWebhookEvent, OpenAI::Models::Webhooks::BatchCancelledWebhookEvent, OpenAI::Models::Webhooks::BatchCompletedWebhookEvent, OpenAI::Models::Webhooks::BatchExpiredWebhookEvent, OpenAI::Models::Webhooks::BatchFailedWebhookEvent, OpenAI::Models::Webhooks::EvalRunCanceledWebhookEvent, OpenAI::Models::Webhooks::EvalRunFailedWebhookEvent, OpenAI::Models::Webhooks::EvalRunSucceededWebhookEvent, OpenAI::Models::Webhooks::FineTuningJobCancelledWebhookEvent, OpenAI::Models::Webhooks::FineTuningJobFailedWebhookEvent, OpenAI::Models::Webhooks::FineTuningJobSucceededWebhookEvent, OpenAI::Models::Webhooks::LiveCallIncomingWebhookEvent, OpenAI::Models::Webhooks::LiveTransportIncomingWebhookEvent, OpenAI::Models::Webhooks::RealtimeCallIncomingWebhookEvent, OpenAI::Models::Webhooks::ResponseCancelledWebhookEvent, OpenAI::Models::Webhooks::ResponseCompletedWebhookEvent, OpenAI::Models::Webhooks::ResponseFailedWebhookEvent, OpenAI::Models::Webhooks::ResponseIncompleteWebhookEvent, OpenAI::Models::Webhooks::SafetyAlertCreatedWebhookEvent, OpenAI::Models::Webhooks::SafetyDeactivationIssuedWebhookEvent, OpenAI::Models::Webhooks::SafetyOrgAlertCreatedWebhookEvent, OpenAI::Models::Webhooks::SafetyWarningIssuedWebhookEvent)]
|
|
106
|
+
# @return [Array(OpenAI::Models::Webhooks::AgentEnvironmentFailedWebhookEvent, OpenAI::Models::Webhooks::AgentEnvironmentReadyWebhookEvent, OpenAI::Models::Webhooks::AgentSessionActionRequiredWebhookEvent, OpenAI::Models::Webhooks::AgentSessionCreatedWebhookEvent, OpenAI::Models::Webhooks::AgentSessionFailedWebhookEvent, OpenAI::Models::Webhooks::AgentSessionIdleWebhookEvent, OpenAI::Models::Webhooks::AgentSessionInProgressWebhookEvent, OpenAI::Models::Webhooks::BatchCancelledWebhookEvent, OpenAI::Models::Webhooks::BatchCompletedWebhookEvent, OpenAI::Models::Webhooks::BatchExpiredWebhookEvent, OpenAI::Models::Webhooks::BatchFailedWebhookEvent, OpenAI::Models::Webhooks::EvalRunCanceledWebhookEvent, OpenAI::Models::Webhooks::EvalRunFailedWebhookEvent, OpenAI::Models::Webhooks::EvalRunSucceededWebhookEvent, OpenAI::Models::Webhooks::FineTuningJobCancelledWebhookEvent, OpenAI::Models::Webhooks::FineTuningJobFailedWebhookEvent, OpenAI::Models::Webhooks::FineTuningJobSucceededWebhookEvent, OpenAI::Models::Webhooks::LiveCallIncomingWebhookEvent, OpenAI::Models::Webhooks::LiveTransportIncomingWebhookEvent, OpenAI::Models::Webhooks::RealtimeCallIncomingWebhookEvent, OpenAI::Models::Webhooks::ResponseCancelledWebhookEvent, OpenAI::Models::Webhooks::ResponseCompletedWebhookEvent, OpenAI::Models::Webhooks::ResponseFailedWebhookEvent, OpenAI::Models::Webhooks::ResponseIncompleteWebhookEvent, OpenAI::Models::Webhooks::SafetyAlertCreatedWebhookEvent, OpenAI::Models::Webhooks::SafetyDeactivationIssuedWebhookEvent, OpenAI::Models::Webhooks::SafetyOrgAlertCreatedWebhookEvent, OpenAI::Models::Webhooks::SafetyWarningIssuedWebhookEvent)]
|
|
101
107
|
end
|
|
102
108
|
end
|
|
103
109
|
end
|
|
@@ -62,6 +62,8 @@ module OpenAI
|
|
|
62
62
|
REALTIME_CALL_INCOMING = :"realtime.call.incoming"
|
|
63
63
|
VIDEO_COMPLETED = :"video.completed"
|
|
64
64
|
VIDEO_FAILED = :"video.failed"
|
|
65
|
+
AGENT_ENVIRONMENT_READY = :"agent.environment.ready"
|
|
66
|
+
AGENT_ENVIRONMENT_FAILED = :"agent.environment.failed"
|
|
65
67
|
AGENT_SESSION_CREATED = :"agent.session.created"
|
|
66
68
|
AGENT_SESSION_ACTION_REQUIRED = :"agent.session.action_required"
|
|
67
69
|
AGENT_SESSION_IN_PROGRESS = :"agent.session.in_progress"
|
|
@@ -48,6 +48,8 @@ module OpenAI
|
|
|
48
48
|
REALTIME_CALL_INCOMING = :"realtime.call.incoming"
|
|
49
49
|
VIDEO_COMPLETED = :"video.completed"
|
|
50
50
|
VIDEO_FAILED = :"video.failed"
|
|
51
|
+
AGENT_ENVIRONMENT_READY = :"agent.environment.ready"
|
|
52
|
+
AGENT_ENVIRONMENT_FAILED = :"agent.environment.failed"
|
|
51
53
|
AGENT_SESSION_CREATED = :"agent.session.created"
|
|
52
54
|
AGENT_SESSION_ACTION_REQUIRED = :"agent.session.action_required"
|
|
53
55
|
AGENT_SESSION_IN_PROGRESS = :"agent.session.in_progress"
|