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