openai 0.120.0 → 0.121.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.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/README.md +1 -1
  4. data/lib/openai/models/beta/agents/automation.rb +27 -0
  5. data/lib/openai/models/beta/agents/automation_agent_config.rb +142 -0
  6. data/lib/openai/models/beta/agents/automation_create_params.rb +27 -0
  7. data/lib/openai/models/beta/agents/automation_created_by.rb +65 -0
  8. data/lib/openai/models/beta/agents/automation_delete_params.rb +24 -0
  9. data/lib/openai/models/beta/agents/automation_deleted.rb +40 -0
  10. data/lib/openai/models/beta/agents/automation_environment.rb +484 -0
  11. data/lib/openai/models/beta/agents/automation_list_params.rb +68 -0
  12. data/lib/openai/models/beta/agents/automation_pause_params.rb +24 -0
  13. data/lib/openai/models/beta/agents/automation_resume_params.rb +24 -0
  14. data/lib/openai/models/beta/agents/automation_retrieve_params.rb +24 -0
  15. data/lib/openai/models/beta/agents/automation_schedule_param.rb +124 -0
  16. data/lib/openai/models/beta/agents/automation_target.rb +153 -0
  17. data/lib/openai/models/beta/agents/automation_target_param.rb +312 -0
  18. data/lib/openai/models/beta/agents/automation_update_params.rb +79 -0
  19. data/lib/openai/models/beta/agents/automations/automation_invocation.rb +148 -0
  20. data/lib/openai/models/beta/agents/automations/automation_invocation_source.rb +59 -0
  21. data/lib/openai/models/beta/agents/automations/invocation_create_params.rb +26 -0
  22. data/lib/openai/models/beta/agents/automations/invocation_list_params.rb +68 -0
  23. data/lib/openai/models/beta/agents/automations/invocation_retrieve_params.rb +32 -0
  24. data/lib/openai/models/beta/agents/environments/file_create_params.rb +11 -1
  25. data/lib/openai/models/beta/agents/one_time_automation.rb +118 -0
  26. data/lib/openai/models/beta/agents/periodic_automation.rb +126 -0
  27. data/lib/openai/models/beta/beta_responses_client_event.rb +3 -0
  28. data/lib/openai/models/beta/response_compact_params.rb +3 -0
  29. data/lib/openai/models/beta/response_create_params.rb +3 -0
  30. data/lib/openai/resources/beta/agents/automations/invocations.rb +103 -0
  31. data/lib/openai/resources/beta/agents/automations.rb +211 -0
  32. data/lib/openai/resources/beta/agents.rb +4 -0
  33. data/lib/openai/version.rb +1 -1
  34. data/lib/openai.rb +24 -0
  35. data/rbi/openai/models/beta/agents/automation.rbi +32 -0
  36. data/rbi/openai/models/beta/agents/automation_agent_config.rbi +255 -0
  37. data/rbi/openai/models/beta/agents/automation_create_params.rbi +75 -0
  38. data/rbi/openai/models/beta/agents/automation_created_by.rbi +124 -0
  39. data/rbi/openai/models/beta/agents/automation_delete_params.rbi +57 -0
  40. data/rbi/openai/models/beta/agents/automation_deleted.rbi +71 -0
  41. data/rbi/openai/models/beta/agents/automation_environment.rbi +795 -0
  42. data/rbi/openai/models/beta/agents/automation_list_params.rbi +122 -0
  43. data/rbi/openai/models/beta/agents/automation_pause_params.rbi +57 -0
  44. data/rbi/openai/models/beta/agents/automation_resume_params.rbi +57 -0
  45. data/rbi/openai/models/beta/agents/automation_retrieve_params.rbi +57 -0
  46. data/rbi/openai/models/beta/agents/automation_schedule_param.rbi +228 -0
  47. data/rbi/openai/models/beta/agents/automation_target.rbi +250 -0
  48. data/rbi/openai/models/beta/agents/automation_target_param.rbi +564 -0
  49. data/rbi/openai/models/beta/agents/automation_update_params.rbi +161 -0
  50. data/rbi/openai/models/beta/agents/automations/automation_invocation.rbi +233 -0
  51. data/rbi/openai/models/beta/agents/automations/automation_invocation_source.rbi +123 -0
  52. data/rbi/openai/models/beta/agents/automations/invocation_create_params.rbi +61 -0
  53. data/rbi/openai/models/beta/agents/automations/invocation_list_params.rbi +125 -0
  54. data/rbi/openai/models/beta/agents/automations/invocation_retrieve_params.rbi +68 -0
  55. data/rbi/openai/models/beta/agents/environments/file_create_params.rbi +27 -1
  56. data/rbi/openai/models/beta/agents/one_time_automation.rbi +168 -0
  57. data/rbi/openai/models/beta/agents/periodic_automation.rbi +177 -0
  58. data/rbi/openai/models/beta/beta_responses_client_event.rbi +4 -0
  59. data/rbi/openai/models/beta/response_compact_params.rbi +1 -0
  60. data/rbi/openai/models/beta/response_create_params.rbi +1 -0
  61. data/rbi/openai/resources/beta/agents/automations/invocations.rbi +67 -0
  62. data/rbi/openai/resources/beta/agents/automations.rbi +141 -0
  63. data/rbi/openai/resources/beta/agents.rbi +3 -0
  64. data/sig/openai/models/beta/agent_session_turn_reasoning_summary_part_done_event.rbs +1 -4
  65. data/sig/openai/models/beta/agents/automation.rbs +17 -0
  66. data/sig/openai/models/beta/agents/automation_agent_config.rbs +143 -0
  67. data/sig/openai/models/beta/agents/automation_create_params.rbs +33 -0
  68. data/sig/openai/models/beta/agents/automation_created_by.rbs +62 -0
  69. data/sig/openai/models/beta/agents/automation_delete_params.rbs +27 -0
  70. data/sig/openai/models/beta/agents/automation_deleted.rbs +39 -0
  71. data/sig/openai/models/beta/agents/automation_environment.rbs +428 -0
  72. data/sig/openai/models/beta/agents/automation_list_params.rbs +85 -0
  73. data/sig/openai/models/beta/agents/automation_pause_params.rbs +27 -0
  74. data/sig/openai/models/beta/agents/automation_resume_params.rbs +27 -0
  75. data/sig/openai/models/beta/agents/automation_retrieve_params.rbs +27 -0
  76. data/sig/openai/models/beta/agents/automation_schedule_param.rbs +127 -0
  77. data/sig/openai/models/beta/agents/automation_target.rbs +157 -0
  78. data/sig/openai/models/beta/agents/automation_target_param.rbs +299 -0
  79. data/sig/openai/models/beta/agents/automation_update_params.rbs +97 -0
  80. data/sig/openai/models/beta/agents/automations/automation_invocation.rbs +134 -0
  81. data/sig/openai/models/beta/agents/automations/automation_invocation_source.rbs +62 -0
  82. data/sig/openai/models/beta/agents/automations/invocation_create_params.rbs +29 -0
  83. data/sig/openai/models/beta/agents/automations/invocation_list_params.rbs +81 -0
  84. data/sig/openai/models/beta/agents/automations/invocation_retrieve_params.rbs +37 -0
  85. data/sig/openai/models/beta/agents/environments/file_create_params.rbs +12 -1
  86. data/sig/openai/models/beta/agents/one_time_automation.rbs +111 -0
  87. data/sig/openai/models/beta/agents/periodic_automation.rbs +118 -0
  88. data/sig/openai/models/beta/beta_responses_client_event.rbs +2 -0
  89. data/sig/openai/models/beta/response_compact_params.rbs +2 -0
  90. data/sig/openai/models/beta/response_create_params.rbs +2 -0
  91. data/sig/openai/resources/beta/agents/automations/invocations.rbs +32 -0
  92. data/sig/openai/resources/beta/agents/automations.rbs +57 -0
  93. data/sig/openai/resources/beta/agents.rbs +2 -0
  94. metadata +73 -1
@@ -0,0 +1,428 @@
1
+ module OpenAI
2
+ module Models
3
+ module Beta
4
+ module Agents
5
+ type automation_environment =
6
+ OpenAI::Beta::Agents::AutomationEnvironment::None
7
+ | OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted
8
+ | OpenAI::Beta::Agents::AutomationEnvironment::SelfHosted
9
+
10
+ module AutomationEnvironment
11
+ extend OpenAI::Internal::Type::Union
12
+
13
+ type none = { ?type: :none }
14
+
15
+ class None < OpenAI::Internal::Type::BaseModel
16
+ # The type of the object. Always `none`.
17
+ attr_accessor type: :none
18
+
19
+ # @param type
20
+ # The type of the object. Always `none`.
21
+ def initialize: (?type: :none) -> void
22
+
23
+ def to_hash: -> { ?type: :none }
24
+ end
25
+
26
+ type openai_hosted =
27
+ {
28
+ capability_directories: ::Array[String]?,
29
+ container_size: OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::container_size?,
30
+ desktop: OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Desktop?,
31
+ environment_id: String?,
32
+ environment_template_id: String?,
33
+ files: ::Array[OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::file]?,
34
+ network: OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Network?,
35
+ packages: OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Packages?,
36
+ plugins: ::Array[OpenAI::Beta::HostedPlugin]?,
37
+ skills: ::Array[OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::skill]?,
38
+ ?type: :openai_hosted
39
+ }
40
+
41
+ class OpenAIHosted < OpenAI::Internal::Type::BaseModel
42
+ # Directory overrides, or null to inherit the template or creation default.
43
+ attr_accessor capability_directories: ::Array[String]?
44
+
45
+ # The configured container size, or null to use the creation default.
46
+ attr_accessor container_size: OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::container_size?
47
+
48
+ # Desktop overrides, or null to inherit the template or creation default.
49
+ attr_accessor desktop: OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Desktop?
50
+
51
+ # An existing environment reference, or null when provisioning a new environment.
52
+ attr_accessor environment_id: String?
53
+
54
+ # A template reference, or null when no template is selected.
55
+ attr_accessor environment_template_id: String?
56
+
57
+ # File overrides, excluding contents, or null to inherit.
58
+ attr_accessor files: ::Array[OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::file]?
59
+
60
+ # Network overrides, or null to inherit the template or creation default.
61
+ attr_accessor network: OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Network?
62
+
63
+ # Package overrides, or null to inherit the template or creation default.
64
+ attr_accessor packages: OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Packages?
65
+
66
+ # Plugin overrides, excluding archive contents, or null to inherit.
67
+ attr_accessor plugins: ::Array[OpenAI::Beta::HostedPlugin]?
68
+
69
+ # Skill overrides, excluding archive contents, or null to inherit.
70
+ attr_accessor skills: ::Array[OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::skill]?
71
+
72
+ # The type of the object. Always `openai_hosted`.
73
+ attr_accessor type: :openai_hosted
74
+
75
+ # @param capability_directories
76
+ # Directory overrides, or null to inherit the template or creation default.
77
+ # @param container_size
78
+ # The configured container size, or null to use the creation default.
79
+ # @param desktop
80
+ # Desktop overrides, or null to inherit the template or creation default.
81
+ # @param environment_id
82
+ # An existing environment reference, or null when provisioning a new environment.
83
+ # @param environment_template_id
84
+ # A template reference, or null when no template is selected.
85
+ # @param files
86
+ # File overrides, excluding contents, or null to inherit.
87
+ # @param network
88
+ # Network overrides, or null to inherit the template or creation default.
89
+ # @param packages
90
+ # Package overrides, or null to inherit the template or creation default.
91
+ # @param plugins
92
+ # Plugin overrides, excluding archive contents, or null to inherit.
93
+ # @param skills
94
+ # Skill overrides, excluding archive contents, or null to inherit.
95
+ # @param type
96
+ # The type of the object. Always `openai_hosted`.
97
+ def initialize: (
98
+ capability_directories: ::Array[String]?,
99
+ container_size: OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::container_size?,
100
+ desktop: OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Desktop?,
101
+ environment_id: String?,
102
+ environment_template_id: String?,
103
+ files: ::Array[OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::file]?,
104
+ network: OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Network?,
105
+ packages: OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Packages?,
106
+ plugins: ::Array[OpenAI::Beta::HostedPlugin]?,
107
+ skills: ::Array[OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::skill]?,
108
+ ?type: :openai_hosted
109
+ ) -> void
110
+
111
+ def to_hash: -> {
112
+ capability_directories: ::Array[String]?,
113
+ container_size: OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::container_size?,
114
+ desktop: OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Desktop?,
115
+ environment_id: String?,
116
+ environment_template_id: String?,
117
+ files: ::Array[OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::file]?,
118
+ network: OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Network?,
119
+ packages: OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Packages?,
120
+ plugins: ::Array[OpenAI::Beta::HostedPlugin]?,
121
+ skills: ::Array[OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::skill]?,
122
+ ?type: :openai_hosted
123
+ }
124
+
125
+ type container_size = :small | :medium | :large
126
+
127
+ module ContainerSize
128
+ extend OpenAI::Internal::Type::Enum
129
+
130
+ SMALL: :small
131
+ MEDIUM: :medium
132
+ LARGE: :large
133
+
134
+ def self?.values: -> ::Array[OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::container_size]
135
+ end
136
+
137
+ type desktop = { enabled: bool }
138
+
139
+ class Desktop < OpenAI::Internal::Type::BaseModel
140
+ # Whether the environment provisions a desktop and browser proxy.
141
+ attr_accessor enabled: bool
142
+
143
+ # @param enabled
144
+ # Whether the environment provisions a desktop and browser proxy.
145
+ def initialize: (enabled: bool) -> void
146
+
147
+ def to_hash: -> { enabled: bool }
148
+ end
149
+
150
+ type file =
151
+ OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::File::FileID
152
+ | OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::File::Inline
153
+
154
+ module File
155
+ extend OpenAI::Internal::Type::Union
156
+
157
+ type file_id = { file_id: String, path: String, ?type: :file_id }
158
+
159
+ class FileID < OpenAI::Internal::Type::BaseModel
160
+ # The ID of the uploaded file.
161
+ attr_accessor file_id: String
162
+
163
+ # The file's absolute path inside the environment.
164
+ attr_accessor path: String
165
+
166
+ # The type of the object. Always `file_id`.
167
+ attr_accessor type: :file_id
168
+
169
+ # @param file_id
170
+ # The ID of the uploaded file.
171
+ # @param path
172
+ # The file's absolute path inside the environment.
173
+ # @param type
174
+ # The type of the object. Always `file_id`.
175
+ def initialize: (
176
+ file_id: String,
177
+ path: String,
178
+ ?type: :file_id
179
+ ) -> void
180
+
181
+ def to_hash: -> {
182
+ file_id: String,
183
+ path: String,
184
+ ?type: :file_id
185
+ }
186
+ end
187
+
188
+ type inline =
189
+ { path: String, size_bytes: Integer, ?type: :inline }
190
+
191
+ class Inline < OpenAI::Internal::Type::BaseModel
192
+ # The file's absolute path inside the environment.
193
+ attr_accessor path: String
194
+
195
+ # The decoded size of the inline file in bytes.
196
+ attr_accessor size_bytes: Integer
197
+
198
+ # The type of the object. Always `inline`.
199
+ attr_accessor type: :inline
200
+
201
+ # @param path
202
+ # The file's absolute path inside the environment.
203
+ # @param size_bytes
204
+ # The decoded size of the inline file in bytes.
205
+ # @param type
206
+ # The type of the object. Always `inline`.
207
+ def initialize: (
208
+ path: String,
209
+ size_bytes: Integer,
210
+ ?type: :inline
211
+ ) -> void
212
+
213
+ def to_hash: -> {
214
+ path: String,
215
+ size_bytes: Integer,
216
+ ?type: :inline
217
+ }
218
+ end
219
+
220
+ def self?.variants: -> ::Array[OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::file]
221
+ end
222
+
223
+ type network =
224
+ {
225
+ access: OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::Network::access,
226
+ allowed_domains: ::Array[String]
227
+ }
228
+
229
+ class Network < OpenAI::Internal::Type::BaseModel
230
+ # The environment's network access mode.
231
+ attr_accessor access: OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::Network::access
232
+
233
+ # Domains the environment may access when network access is restricted.
234
+ attr_accessor allowed_domains: ::Array[String]
235
+
236
+ # @param access
237
+ # The environment's network access mode.
238
+ # @param allowed_domains
239
+ # Domains the environment may access when network access is restricted.
240
+ def initialize: (
241
+ access: OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::Network::access,
242
+ allowed_domains: ::Array[String]
243
+ ) -> void
244
+
245
+ def to_hash: -> {
246
+ access: OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::Network::access,
247
+ allowed_domains: ::Array[String]
248
+ }
249
+
250
+ type access = :enabled | :disabled | :restricted
251
+
252
+ module Access
253
+ extend OpenAI::Internal::Type::Enum
254
+
255
+ # Allows unrestricted network access.
256
+ ENABLED: :enabled
257
+
258
+ # Disables network access.
259
+ DISABLED: :disabled
260
+
261
+ # Applies the configured domain restrictions.
262
+ RESTRICTED: :restricted
263
+
264
+ def self?.values: -> ::Array[OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::Network::access]
265
+ end
266
+ end
267
+
268
+ type packages =
269
+ {
270
+ npm: ::Array[String],
271
+ python: ::Array[String],
272
+ system_: ::Array[String]
273
+ }
274
+
275
+ class Packages < OpenAI::Internal::Type::BaseModel
276
+ # npm packages installed globally in the environment.
277
+ attr_accessor npm: ::Array[String]
278
+
279
+ # Python packages installed in the environment.
280
+ attr_accessor python: ::Array[String]
281
+
282
+ # System packages installed in the environment.
283
+ attr_accessor system_: ::Array[String]
284
+
285
+ # @param npm
286
+ # npm packages installed globally in the environment.
287
+ # @param python
288
+ # Python packages installed in the environment.
289
+ # @param system_
290
+ # System packages installed in the environment.
291
+ def initialize: (
292
+ npm: ::Array[String],
293
+ python: ::Array[String],
294
+ system_: ::Array[String]
295
+ ) -> void
296
+
297
+ def to_hash: -> {
298
+ npm: ::Array[String],
299
+ python: ::Array[String],
300
+ system_: ::Array[String]
301
+ }
302
+ end
303
+
304
+ type skill =
305
+ OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Skill::SkillReference
306
+ | OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Skill::Inline
307
+
308
+ module Skill
309
+ extend OpenAI::Internal::Type::Union
310
+
311
+ type skill_reference =
312
+ { skill_id: String, ?type: :skill_reference, version: String? }
313
+
314
+ class SkillReference < OpenAI::Internal::Type::BaseModel
315
+ # The referenced skill ID.
316
+ attr_accessor skill_id: String
317
+
318
+ # The type of the object. Always `skill_reference`.
319
+ attr_accessor type: :skill_reference
320
+
321
+ # The requested version selector, including `latest`.
322
+ attr_accessor version: String?
323
+
324
+ # @param skill_id
325
+ # The referenced skill ID.
326
+ # @param version
327
+ # The requested version selector, including `latest`.
328
+ # @param type
329
+ # The type of the object. Always `skill_reference`.
330
+ def initialize: (
331
+ skill_id: String,
332
+ version: String?,
333
+ ?type: :skill_reference
334
+ ) -> void
335
+
336
+ def to_hash: -> {
337
+ skill_id: String,
338
+ ?type: :skill_reference,
339
+ version: String?
340
+ }
341
+ end
342
+
343
+ type inline =
344
+ { description: String, name: String, ?type: :inline }
345
+
346
+ class Inline < OpenAI::Internal::Type::BaseModel
347
+ # The skill description declared in `SKILL.md`.
348
+ attr_accessor description: String
349
+
350
+ # The skill name declared in `SKILL.md`.
351
+ attr_accessor name: String
352
+
353
+ # The type of the object. Always `inline`.
354
+ attr_accessor type: :inline
355
+
356
+ # @param description
357
+ # The skill description declared in `SKILL.md`.
358
+ # @param name
359
+ # The skill name declared in `SKILL.md`.
360
+ # @param type
361
+ # The type of the object. Always `inline`.
362
+ def initialize: (
363
+ description: String,
364
+ name: String,
365
+ ?type: :inline
366
+ ) -> void
367
+
368
+ def to_hash: -> {
369
+ description: String,
370
+ name: String,
371
+ ?type: :inline
372
+ }
373
+ end
374
+
375
+ def self?.variants: -> ::Array[OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::skill]
376
+ end
377
+ end
378
+
379
+ type self_hosted =
380
+ {
381
+ capability_directories: ::Array[String],
382
+ environment_id: String?,
383
+ ?type: :self_hosted,
384
+ workspace_directory: String
385
+ }
386
+
387
+ class SelfHosted < OpenAI::Internal::Type::BaseModel
388
+ # Directories that expose capabilities to the agent.
389
+ attr_accessor capability_directories: ::Array[String]
390
+
391
+ # An existing registration, or null to create a session-owned environment.
392
+ attr_accessor environment_id: String?
393
+
394
+ # The type of the object. Always `self_hosted`.
395
+ attr_accessor type: :self_hosted
396
+
397
+ # The absolute project directory in the environment.
398
+ attr_accessor workspace_directory: String
399
+
400
+ # @param capability_directories
401
+ # Directories that expose capabilities to the agent.
402
+ # @param environment_id
403
+ # An existing registration, or null to create a session-owned environment.
404
+ # @param workspace_directory
405
+ # The absolute project directory in the environment.
406
+ # @param type
407
+ # The type of the object. Always `self_hosted`.
408
+ def initialize: (
409
+ capability_directories: ::Array[String],
410
+ environment_id: String?,
411
+ workspace_directory: String,
412
+ ?type: :self_hosted
413
+ ) -> void
414
+
415
+ def to_hash: -> {
416
+ capability_directories: ::Array[String],
417
+ environment_id: String?,
418
+ ?type: :self_hosted,
419
+ workspace_directory: String
420
+ }
421
+ end
422
+
423
+ def self?.variants: -> ::Array[OpenAI::Models::Beta::Agents::automation_environment]
424
+ end
425
+ end
426
+ end
427
+ end
428
+ end
@@ -0,0 +1,85 @@
1
+ module OpenAI
2
+ module Models
3
+ module Beta
4
+ module Agents
5
+ type automation_list_params =
6
+ {
7
+ ?after: String,
8
+ ?limit: Integer,
9
+ ?order: OpenAI::Models::Beta::Agents::AutomationListParams::order,
10
+ ?session_id: String,
11
+ ?request_options: OpenAI::request_opts
12
+ }
13
+
14
+ class AutomationListParams < OpenAI::Internal::Type::BaseModel
15
+ extend OpenAI::Internal::Type::RequestParameters::Converter
16
+ include OpenAI::Internal::Type::RequestParameters
17
+
18
+ # Return resources after this resource ID in the selected order.
19
+ attr_reader after: String?
20
+
21
+ # Return resources after this resource ID in the selected order.
22
+ def after=: (String) -> String
23
+
24
+ # The maximum number of resources to return, between 1 and 100. Defaults to 20.
25
+ attr_reader limit: Integer?
26
+
27
+ # The maximum number of resources to return, between 1 and 100. Defaults to 20.
28
+ def limit=: (Integer) -> Integer
29
+
30
+ # The order in which resources are returned. Defaults to `desc`.
31
+ attr_reader order: OpenAI::Models::Beta::Agents::AutomationListParams::order?
32
+
33
+ # The order in which resources are returned. Defaults to `desc`.
34
+ def order=: (
35
+ OpenAI::Models::Beta::Agents::AutomationListParams::order
36
+ ) -> OpenAI::Models::Beta::Agents::AutomationListParams::order
37
+
38
+ # Matches existing-session targets, including agent-created automations.
39
+ attr_reader session_id: String?
40
+
41
+ # Matches existing-session targets, including agent-created automations.
42
+ def session_id=: (String) -> String
43
+
44
+ # @param after
45
+ # Return resources after this resource ID in the selected order.
46
+ # @param limit
47
+ # The maximum number of resources to return, between 1 and 100. Defaults to 20.
48
+ # @param order
49
+ # The order in which resources are returned. Defaults to `desc`.
50
+ # @param session_id
51
+ # Matches existing-session targets, including agent-created automations.
52
+ def initialize: (
53
+ ?after: String,
54
+ ?limit: Integer,
55
+ ?order: OpenAI::Models::Beta::Agents::AutomationListParams::order,
56
+ ?session_id: String,
57
+ ?request_options: OpenAI::request_opts
58
+ ) -> void
59
+
60
+ def to_hash: -> {
61
+ ?after: String,
62
+ ?limit: Integer,
63
+ ?order: OpenAI::Models::Beta::Agents::AutomationListParams::order,
64
+ ?session_id: String,
65
+ ?request_options: OpenAI::RequestOptions
66
+ }
67
+
68
+ type order = :asc | :desc
69
+
70
+ module Order
71
+ extend OpenAI::Internal::Type::Enum
72
+
73
+ # Returns resources in ascending order.
74
+ ASC: :asc
75
+
76
+ # Returns resources in descending order.
77
+ DESC: :desc
78
+
79
+ def self?.values: -> ::Array[OpenAI::Models::Beta::Agents::AutomationListParams::order]
80
+ end
81
+ end
82
+ end
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,27 @@
1
+ module OpenAI
2
+ module Models
3
+ module Beta
4
+ module Agents
5
+ type automation_pause_params =
6
+ { automation_id: String, ?request_options: OpenAI::request_opts }
7
+
8
+ class AutomationPauseParams < OpenAI::Internal::Type::BaseModel
9
+ extend OpenAI::Internal::Type::RequestParameters::Converter
10
+ include OpenAI::Internal::Type::RequestParameters
11
+
12
+ attr_accessor automation_id: String
13
+
14
+ def initialize: (
15
+ automation_id: String,
16
+ ?request_options: OpenAI::request_opts
17
+ ) -> void
18
+
19
+ def to_hash: -> {
20
+ automation_id: String,
21
+ ?request_options: OpenAI::RequestOptions
22
+ }
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,27 @@
1
+ module OpenAI
2
+ module Models
3
+ module Beta
4
+ module Agents
5
+ type automation_resume_params =
6
+ { automation_id: String, ?request_options: OpenAI::request_opts }
7
+
8
+ class AutomationResumeParams < OpenAI::Internal::Type::BaseModel
9
+ extend OpenAI::Internal::Type::RequestParameters::Converter
10
+ include OpenAI::Internal::Type::RequestParameters
11
+
12
+ attr_accessor automation_id: String
13
+
14
+ def initialize: (
15
+ automation_id: String,
16
+ ?request_options: OpenAI::request_opts
17
+ ) -> void
18
+
19
+ def to_hash: -> {
20
+ automation_id: String,
21
+ ?request_options: OpenAI::RequestOptions
22
+ }
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,27 @@
1
+ module OpenAI
2
+ module Models
3
+ module Beta
4
+ module Agents
5
+ type automation_retrieve_params =
6
+ { automation_id: String, ?request_options: OpenAI::request_opts }
7
+
8
+ class AutomationRetrieveParams < OpenAI::Internal::Type::BaseModel
9
+ extend OpenAI::Internal::Type::RequestParameters::Converter
10
+ include OpenAI::Internal::Type::RequestParameters
11
+
12
+ attr_accessor automation_id: String
13
+
14
+ def initialize: (
15
+ automation_id: String,
16
+ ?request_options: OpenAI::request_opts
17
+ ) -> void
18
+
19
+ def to_hash: -> {
20
+ automation_id: String,
21
+ ?request_options: OpenAI::RequestOptions
22
+ }
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end