openai 0.119.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 (106) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +26 -0
  3. data/README.md +1 -1
  4. data/lib/openai/models/all_models.rb +1 -0
  5. data/lib/openai/models/beta/agents/automation.rb +27 -0
  6. data/lib/openai/models/beta/agents/automation_agent_config.rb +142 -0
  7. data/lib/openai/models/beta/agents/automation_create_params.rb +27 -0
  8. data/lib/openai/models/beta/agents/automation_created_by.rb +65 -0
  9. data/lib/openai/models/beta/agents/automation_delete_params.rb +24 -0
  10. data/lib/openai/models/beta/agents/automation_deleted.rb +40 -0
  11. data/lib/openai/models/beta/agents/automation_environment.rb +484 -0
  12. data/lib/openai/models/beta/agents/automation_list_params.rb +68 -0
  13. data/lib/openai/models/beta/agents/automation_pause_params.rb +24 -0
  14. data/lib/openai/models/beta/agents/automation_resume_params.rb +24 -0
  15. data/lib/openai/models/beta/agents/automation_retrieve_params.rb +24 -0
  16. data/lib/openai/models/beta/agents/automation_schedule_param.rb +124 -0
  17. data/lib/openai/models/beta/agents/automation_target.rb +153 -0
  18. data/lib/openai/models/beta/agents/automation_target_param.rb +312 -0
  19. data/lib/openai/models/beta/agents/automation_update_params.rb +79 -0
  20. data/lib/openai/models/beta/agents/automations/automation_invocation.rb +148 -0
  21. data/lib/openai/models/beta/agents/automations/automation_invocation_source.rb +59 -0
  22. data/lib/openai/models/beta/agents/automations/invocation_create_params.rb +26 -0
  23. data/lib/openai/models/beta/agents/automations/invocation_list_params.rb +68 -0
  24. data/lib/openai/models/beta/agents/automations/invocation_retrieve_params.rb +32 -0
  25. data/lib/openai/models/beta/agents/environments/file_create_params.rb +11 -1
  26. data/lib/openai/models/beta/agents/one_time_automation.rb +118 -0
  27. data/lib/openai/models/beta/agents/periodic_automation.rb +126 -0
  28. data/lib/openai/models/beta/beta_response.rb +3 -0
  29. data/lib/openai/models/beta/beta_responses_client_event.rb +6 -0
  30. data/lib/openai/models/beta/response_compact_params.rb +6 -0
  31. data/lib/openai/models/beta/response_create_params.rb +6 -0
  32. data/lib/openai/models/responses/response_compact_params.rb +3 -0
  33. data/lib/openai/models/responses_model.rb +1 -0
  34. data/lib/openai/resources/beta/agents/automations/invocations.rb +103 -0
  35. data/lib/openai/resources/beta/agents/automations.rb +211 -0
  36. data/lib/openai/resources/beta/agents.rb +4 -0
  37. data/lib/openai/version.rb +1 -1
  38. data/lib/openai.rb +24 -0
  39. data/rbi/openai/models/all_models.rbi +1 -0
  40. data/rbi/openai/models/beta/agents/automation.rbi +32 -0
  41. data/rbi/openai/models/beta/agents/automation_agent_config.rbi +255 -0
  42. data/rbi/openai/models/beta/agents/automation_create_params.rbi +75 -0
  43. data/rbi/openai/models/beta/agents/automation_created_by.rbi +124 -0
  44. data/rbi/openai/models/beta/agents/automation_delete_params.rbi +57 -0
  45. data/rbi/openai/models/beta/agents/automation_deleted.rbi +71 -0
  46. data/rbi/openai/models/beta/agents/automation_environment.rbi +795 -0
  47. data/rbi/openai/models/beta/agents/automation_list_params.rbi +122 -0
  48. data/rbi/openai/models/beta/agents/automation_pause_params.rbi +57 -0
  49. data/rbi/openai/models/beta/agents/automation_resume_params.rbi +57 -0
  50. data/rbi/openai/models/beta/agents/automation_retrieve_params.rbi +57 -0
  51. data/rbi/openai/models/beta/agents/automation_schedule_param.rbi +228 -0
  52. data/rbi/openai/models/beta/agents/automation_target.rbi +250 -0
  53. data/rbi/openai/models/beta/agents/automation_target_param.rbi +564 -0
  54. data/rbi/openai/models/beta/agents/automation_update_params.rbi +161 -0
  55. data/rbi/openai/models/beta/agents/automations/automation_invocation.rbi +233 -0
  56. data/rbi/openai/models/beta/agents/automations/automation_invocation_source.rbi +123 -0
  57. data/rbi/openai/models/beta/agents/automations/invocation_create_params.rbi +61 -0
  58. data/rbi/openai/models/beta/agents/automations/invocation_list_params.rbi +125 -0
  59. data/rbi/openai/models/beta/agents/automations/invocation_retrieve_params.rbi +68 -0
  60. data/rbi/openai/models/beta/agents/environments/file_create_params.rbi +27 -1
  61. data/rbi/openai/models/beta/agents/one_time_automation.rbi +168 -0
  62. data/rbi/openai/models/beta/agents/periodic_automation.rbi +177 -0
  63. data/rbi/openai/models/beta/beta_response.rbi +1 -0
  64. data/rbi/openai/models/beta/beta_responses_client_event.rbi +8 -0
  65. data/rbi/openai/models/beta/response_compact_params.rbi +2 -0
  66. data/rbi/openai/models/beta/response_create_params.rbi +2 -0
  67. data/rbi/openai/models/responses/response_compact_params.rbi +1 -0
  68. data/rbi/openai/models/responses_model.rbi +1 -0
  69. data/rbi/openai/resources/beta/agents/automations/invocations.rbi +67 -0
  70. data/rbi/openai/resources/beta/agents/automations.rbi +141 -0
  71. data/rbi/openai/resources/beta/agents.rbi +3 -0
  72. data/sig/openai/models/all_models.rbs +2 -0
  73. data/sig/openai/models/beta/agent_session_turn_reasoning_summary_part_done_event.rbs +1 -4
  74. data/sig/openai/models/beta/agents/automation.rbs +17 -0
  75. data/sig/openai/models/beta/agents/automation_agent_config.rbs +143 -0
  76. data/sig/openai/models/beta/agents/automation_create_params.rbs +33 -0
  77. data/sig/openai/models/beta/agents/automation_created_by.rbs +62 -0
  78. data/sig/openai/models/beta/agents/automation_delete_params.rbs +27 -0
  79. data/sig/openai/models/beta/agents/automation_deleted.rbs +39 -0
  80. data/sig/openai/models/beta/agents/automation_environment.rbs +428 -0
  81. data/sig/openai/models/beta/agents/automation_list_params.rbs +85 -0
  82. data/sig/openai/models/beta/agents/automation_pause_params.rbs +27 -0
  83. data/sig/openai/models/beta/agents/automation_resume_params.rbs +27 -0
  84. data/sig/openai/models/beta/agents/automation_retrieve_params.rbs +27 -0
  85. data/sig/openai/models/beta/agents/automation_schedule_param.rbs +127 -0
  86. data/sig/openai/models/beta/agents/automation_target.rbs +157 -0
  87. data/sig/openai/models/beta/agents/automation_target_param.rbs +299 -0
  88. data/sig/openai/models/beta/agents/automation_update_params.rbs +97 -0
  89. data/sig/openai/models/beta/agents/automations/automation_invocation.rbs +134 -0
  90. data/sig/openai/models/beta/agents/automations/automation_invocation_source.rbs +62 -0
  91. data/sig/openai/models/beta/agents/automations/invocation_create_params.rbs +29 -0
  92. data/sig/openai/models/beta/agents/automations/invocation_list_params.rbs +81 -0
  93. data/sig/openai/models/beta/agents/automations/invocation_retrieve_params.rbs +37 -0
  94. data/sig/openai/models/beta/agents/environments/file_create_params.rbs +12 -1
  95. data/sig/openai/models/beta/agents/one_time_automation.rbs +111 -0
  96. data/sig/openai/models/beta/agents/periodic_automation.rbs +118 -0
  97. data/sig/openai/models/beta/beta_response.rbs +2 -0
  98. data/sig/openai/models/beta/beta_responses_client_event.rbs +4 -0
  99. data/sig/openai/models/beta/response_compact_params.rbs +4 -0
  100. data/sig/openai/models/beta/response_create_params.rbs +4 -0
  101. data/sig/openai/models/responses/response_compact_params.rbs +2 -0
  102. data/sig/openai/models/responses_model.rbs +2 -0
  103. data/sig/openai/resources/beta/agents/automations/invocations.rbs +32 -0
  104. data/sig/openai/resources/beta/agents/automations.rbs +57 -0
  105. data/sig/openai/resources/beta/agents.rbs +2 -0
  106. metadata +73 -1
@@ -0,0 +1,255 @@
1
+ # typed: strong
2
+
3
+ module OpenAI
4
+ module Models
5
+
6
+ module Beta
7
+
8
+ module Agents
9
+
10
+ class AutomationAgentConfig < OpenAI::Internal::Type::BaseModel
11
+
12
+ OrHash = T.type_alias do
13
+ T.any(
14
+ OpenAI::Beta::Agents::AutomationAgentConfig,
15
+ OpenAI::Internal::AnyHash
16
+ )
17
+ end
18
+
19
+ # Custom instructions, or null when absent.
20
+ sig { returns(T.nilable(String)) }
21
+ attr_accessor :instructions
22
+
23
+ # The requested model name.
24
+ sig { returns(String) }
25
+ attr_accessor :model
26
+
27
+ # The configuration for creating and coordinating subagents.
28
+ sig { returns(OpenAI::Beta::MultiAgentConfig) }
29
+ attr_reader :multi_agent
30
+
31
+ sig { params(multi_agent: OpenAI::Beta::MultiAgentConfig::OrHash).void }
32
+ attr_writer :multi_agent
33
+
34
+ # The configured reasoning policy.
35
+ sig { returns(OpenAI::Beta::AgentReasoning) }
36
+ attr_reader :reasoning
37
+
38
+ sig { params(reasoning: OpenAI::Beta::AgentReasoning::OrHash).void }
39
+ attr_writer :reasoning
40
+
41
+ # The configured service-tier policy.
42
+ sig { returns(OpenAI::Beta::Agents::AutomationAgentConfig::ServiceTier::TaggedSymbol) }
43
+ attr_accessor :service_tier
44
+
45
+ # The configured output format and verbosity.
46
+ sig { returns(OpenAI::Beta::AgentText) }
47
+ attr_reader :text
48
+
49
+ sig { params(text: OpenAI::Beta::AgentText::OrHash).void }
50
+ attr_writer :text
51
+
52
+ # Configured tools, excluding confidential credentials.
53
+ sig { returns(T::Array[OpenAI::Beta::AgentTool::Variants]) }
54
+ attr_accessor :tools
55
+
56
+ # The effective context compaction settings.
57
+ sig { returns(T.nilable(OpenAI::Beta::Agents::AutomationAgentConfig::Compaction)) }
58
+ attr_reader :compaction
59
+
60
+ sig { params(compaction: OpenAI::Beta::Agents::AutomationAgentConfig::Compaction::OrHash).void }
61
+ attr_writer :compaction
62
+
63
+ # The effective experimental settings for the agent.
64
+ sig { returns(T.nilable(OpenAI::Beta::Agents::AutomationAgentConfig::Experimental)) }
65
+ attr_reader :experimental
66
+
67
+ sig { params(experimental: OpenAI::Beta::Agents::AutomationAgentConfig::Experimental::OrHash).void }
68
+ attr_writer :experimental
69
+
70
+ # Inline agent configuration without a generated session-local identity.
71
+ sig do
72
+ params(
73
+
74
+ instructions: T.nilable(String),
75
+
76
+ model: String,
77
+
78
+ multi_agent: OpenAI::Beta::MultiAgentConfig::OrHash,
79
+
80
+ reasoning: OpenAI::Beta::AgentReasoning::OrHash,
81
+
82
+ service_tier: OpenAI::Beta::Agents::AutomationAgentConfig::ServiceTier::OrSymbol,
83
+
84
+ text: OpenAI::Beta::AgentText::OrHash,
85
+
86
+ tools: T::Array[
87
+ T.any(
88
+ OpenAI::Beta::AgentTool::Function::OrHash,
89
+ OpenAI::Beta::AgentTool::ProgrammaticToolCalling::OrHash,
90
+ OpenAI::Beta::AgentTool::Mcp::OrHash,
91
+ OpenAI::Beta::AgentTool::WebSearch::OrHash,
92
+ OpenAI::Beta::AgentTool::ComputerUse::OrHash,
93
+ OpenAI::Beta::AgentTool::Automations::OrHash
94
+ )
95
+ ],
96
+
97
+ compaction: OpenAI::Beta::Agents::AutomationAgentConfig::Compaction::OrHash,
98
+
99
+ experimental: OpenAI::Beta::Agents::AutomationAgentConfig::Experimental::OrHash
100
+ )
101
+ .returns(T.attached_class)
102
+ end
103
+ def self.new(
104
+
105
+ # Custom instructions, or null when absent.
106
+ instructions:,
107
+
108
+ # The requested model name.
109
+ model:,
110
+
111
+ # The configuration for creating and coordinating subagents.
112
+ multi_agent:,
113
+
114
+ # The configured reasoning policy.
115
+ reasoning:,
116
+
117
+ # The configured service-tier policy.
118
+ service_tier:,
119
+
120
+ # The configured output format and verbosity.
121
+ text:,
122
+
123
+ # Configured tools, excluding confidential credentials.
124
+ tools:,
125
+
126
+ # The effective context compaction settings.
127
+ compaction: nil,
128
+
129
+ # The effective experimental settings for the agent.
130
+
131
+ experimental: nil
132
+ )
133
+ end
134
+
135
+ sig do
136
+ override.returns(
137
+ {
138
+ instructions: T.nilable(String),
139
+ model: String,
140
+ multi_agent: OpenAI::Beta::MultiAgentConfig,
141
+ reasoning: OpenAI::Beta::AgentReasoning,
142
+ service_tier: OpenAI::Beta::Agents::AutomationAgentConfig::ServiceTier::TaggedSymbol,
143
+ text: OpenAI::Beta::AgentText,
144
+ tools: T::Array[OpenAI::Beta::AgentTool::Variants],
145
+ compaction: OpenAI::Beta::Agents::AutomationAgentConfig::Compaction,
146
+ experimental: OpenAI::Beta::Agents::AutomationAgentConfig::Experimental
147
+ }
148
+ )
149
+ end
150
+ def to_hash
151
+ end
152
+
153
+ # The configured service-tier policy.
154
+ module ServiceTier
155
+ extend OpenAI::Internal::Type::Enum
156
+
157
+ TaggedSymbol = T.type_alias { T.all(Symbol, OpenAI::Beta::Agents::AutomationAgentConfig::ServiceTier) }
158
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
159
+
160
+ AUTO = T.let(:auto, OpenAI::Beta::Agents::AutomationAgentConfig::ServiceTier::TaggedSymbol)
161
+ DEFAULT = T.let(:default, OpenAI::Beta::Agents::AutomationAgentConfig::ServiceTier::TaggedSymbol)
162
+ FLEX = T.let(:flex, OpenAI::Beta::Agents::AutomationAgentConfig::ServiceTier::TaggedSymbol)
163
+ PRIORITY = T.let(:priority, OpenAI::Beta::Agents::AutomationAgentConfig::ServiceTier::TaggedSymbol)
164
+ FAST = T.let(:fast, OpenAI::Beta::Agents::AutomationAgentConfig::ServiceTier::TaggedSymbol)
165
+ ULTRAFAST = T.let(:ultrafast, OpenAI::Beta::Agents::AutomationAgentConfig::ServiceTier::TaggedSymbol)
166
+
167
+ sig { override.returns(T::Array[OpenAI::Beta::Agents::AutomationAgentConfig::ServiceTier::TaggedSymbol]) }
168
+ def self.values
169
+ end
170
+ end
171
+
172
+ class Compaction < OpenAI::Internal::Type::BaseModel
173
+ OrHash = T.type_alias do
174
+ T.any(
175
+ OpenAI::Beta::Agents::AutomationAgentConfig::Compaction,
176
+ OpenAI::Internal::AnyHash
177
+ )
178
+ end
179
+
180
+ # Whether context is compacted in the background. Defaults to true.
181
+ sig { returns(T::Boolean) }
182
+ attr_accessor :async
183
+
184
+ # The effective context compaction settings.
185
+ sig do
186
+ params(
187
+
188
+ async: T::Boolean
189
+ )
190
+ .returns(T.attached_class)
191
+ end
192
+ def self.new(
193
+
194
+ # Whether context is compacted in the background. Defaults to true.
195
+
196
+ async:
197
+ )
198
+ end
199
+
200
+ sig do
201
+ override.returns(
202
+ {async: T::Boolean}
203
+ )
204
+ end
205
+ def to_hash
206
+ end
207
+
208
+ end
209
+
210
+ class Experimental < OpenAI::Internal::Type::BaseModel
211
+ OrHash = T.type_alias do
212
+ T.any(
213
+ OpenAI::Beta::Agents::AutomationAgentConfig::Experimental,
214
+ OpenAI::Internal::AnyHash
215
+ )
216
+ end
217
+
218
+ # Whether the model receives periodic current-time reminders.
219
+ sig { returns(T::Boolean) }
220
+ attr_accessor :time_awareness
221
+
222
+ # The effective experimental settings for the agent.
223
+ sig do
224
+ params(
225
+
226
+ time_awareness: T::Boolean
227
+ )
228
+ .returns(T.attached_class)
229
+ end
230
+ def self.new(
231
+
232
+ # Whether the model receives periodic current-time reminders.
233
+
234
+ time_awareness:
235
+ )
236
+ end
237
+
238
+ sig do
239
+ override.returns(
240
+ {time_awareness: T::Boolean}
241
+ )
242
+ end
243
+ def to_hash
244
+ end
245
+
246
+ end
247
+
248
+ end
249
+
250
+ end
251
+
252
+ end
253
+
254
+ end
255
+ end
@@ -0,0 +1,75 @@
1
+ # typed: strong
2
+
3
+ module OpenAI
4
+ module Models
5
+
6
+ module Beta
7
+
8
+ module Agents
9
+
10
+ class AutomationCreateParams < OpenAI::Internal::Type::BaseModel
11
+
12
+ extend OpenAI::Internal::Type::RequestParameters::Converter
13
+ include OpenAI::Internal::Type::RequestParameters
14
+
15
+ OrHash = T.type_alias do
16
+ T.any(
17
+ OpenAI::Beta::Agents::AutomationCreateParams,
18
+ OpenAI::Internal::AnyHash
19
+ )
20
+ end
21
+
22
+ # Creates an automation without invoking it immediately.
23
+ sig {
24
+ returns(
25
+ T.any(
26
+ OpenAI::Beta::Agents::AutomationScheduleParam::Periodic,
27
+ OpenAI::Beta::Agents::AutomationScheduleParam::Once
28
+ )
29
+ )
30
+ }
31
+ attr_accessor :create_automation_params
32
+
33
+ sig do
34
+ params(
35
+
36
+ create_automation_params: T.any(
37
+ OpenAI::Beta::Agents::AutomationScheduleParam::Periodic::OrHash,
38
+ OpenAI::Beta::Agents::AutomationScheduleParam::Once::OrHash
39
+ ),
40
+
41
+ request_options: OpenAI::RequestOptions::OrHash
42
+ )
43
+ .returns(T.attached_class)
44
+ end
45
+ def self.new(
46
+
47
+ # Creates an automation without invoking it immediately.
48
+ create_automation_params:,
49
+
50
+ request_options: {}
51
+ )
52
+ end
53
+
54
+ sig do
55
+ override.returns(
56
+ {
57
+ create_automation_params: T.any(
58
+ OpenAI::Beta::Agents::AutomationScheduleParam::Periodic,
59
+ OpenAI::Beta::Agents::AutomationScheduleParam::Once
60
+ ),
61
+ request_options: OpenAI::RequestOptions
62
+ }
63
+ )
64
+ end
65
+ def to_hash
66
+ end
67
+
68
+ end
69
+
70
+ end
71
+
72
+ end
73
+
74
+ end
75
+ end
@@ -0,0 +1,124 @@
1
+ # typed: strong
2
+
3
+ module OpenAI
4
+ module Models
5
+
6
+ module Beta
7
+
8
+ module Agents
9
+
10
+ # How the automation was created, independently of how an invocation started.
11
+ module AutomationCreatedBy
12
+ extend OpenAI::Internal::Type::Union
13
+
14
+ Variants = T.type_alias do
15
+ T.any(
16
+ OpenAI::Beta::Agents::AutomationCreatedBy::Developer,
17
+ OpenAI::Beta::Agents::AutomationCreatedBy::Agent
18
+ )
19
+ end
20
+
21
+ class Developer < OpenAI::Internal::Type::BaseModel
22
+ OrHash = T.type_alias do
23
+ T.any(
24
+ OpenAI::Beta::Agents::AutomationCreatedBy::Developer,
25
+ OpenAI::Internal::AnyHash
26
+ )
27
+ end
28
+
29
+ # The type of the object. Always `developer`.
30
+ sig { returns(Symbol) }
31
+ attr_accessor :type
32
+
33
+ sig do
34
+ params(
35
+
36
+ type: Symbol
37
+ )
38
+ .returns(T.attached_class)
39
+ end
40
+ def self.new(
41
+
42
+ # The type of the object. Always `developer`.
43
+
44
+ type: :developer
45
+ )
46
+ end
47
+
48
+ sig do
49
+ override.returns(
50
+ {type: Symbol}
51
+ )
52
+ end
53
+ def to_hash
54
+ end
55
+
56
+ end
57
+
58
+ class Agent < OpenAI::Internal::Type::BaseModel
59
+ OrHash = T.type_alias do
60
+ T.any(
61
+ OpenAI::Beta::Agents::AutomationCreatedBy::Agent,
62
+ OpenAI::Internal::AnyHash
63
+ )
64
+ end
65
+
66
+ # The creator session, which is also the automation's target.
67
+ sig { returns(String) }
68
+ attr_accessor :session_id
69
+
70
+ # The tool call that created the automation.
71
+ sig { returns(String) }
72
+ attr_accessor :tool_call_id
73
+
74
+ # The type of the object. Always `agent`.
75
+ sig { returns(Symbol) }
76
+ attr_accessor :type
77
+
78
+ sig do
79
+ params(
80
+
81
+ session_id: String,
82
+
83
+ tool_call_id: String,
84
+
85
+ type: Symbol
86
+ )
87
+ .returns(T.attached_class)
88
+ end
89
+ def self.new(
90
+
91
+ # The creator session, which is also the automation's target.
92
+ session_id:,
93
+
94
+ # The tool call that created the automation.
95
+ tool_call_id:,
96
+
97
+ # The type of the object. Always `agent`.
98
+
99
+ type: :agent
100
+ )
101
+ end
102
+
103
+ sig do
104
+ override.returns(
105
+ {session_id: String, tool_call_id: String, type: Symbol}
106
+ )
107
+ end
108
+ def to_hash
109
+ end
110
+
111
+ end
112
+
113
+ sig { override.returns(T::Array[OpenAI::Beta::Agents::AutomationCreatedBy::Variants]) }
114
+ def self.variants
115
+ end
116
+
117
+ end
118
+
119
+ end
120
+
121
+ end
122
+
123
+ end
124
+ end
@@ -0,0 +1,57 @@
1
+ # typed: strong
2
+
3
+ module OpenAI
4
+ module Models
5
+
6
+ module Beta
7
+
8
+ module Agents
9
+
10
+ class AutomationDeleteParams < OpenAI::Internal::Type::BaseModel
11
+
12
+ extend OpenAI::Internal::Type::RequestParameters::Converter
13
+ include OpenAI::Internal::Type::RequestParameters
14
+
15
+ OrHash = T.type_alias do
16
+ T.any(
17
+ OpenAI::Beta::Agents::AutomationDeleteParams,
18
+ OpenAI::Internal::AnyHash
19
+ )
20
+ end
21
+
22
+ sig { returns(String) }
23
+ attr_accessor :automation_id
24
+
25
+ sig do
26
+ params(
27
+
28
+ automation_id: String,
29
+
30
+ request_options: OpenAI::RequestOptions::OrHash
31
+ )
32
+ .returns(T.attached_class)
33
+ end
34
+ def self.new(
35
+
36
+ automation_id:,
37
+
38
+ request_options: {}
39
+ )
40
+ end
41
+
42
+ sig do
43
+ override.returns(
44
+ {automation_id: String, request_options: OpenAI::RequestOptions}
45
+ )
46
+ end
47
+ def to_hash
48
+ end
49
+
50
+ end
51
+
52
+ end
53
+
54
+ end
55
+
56
+ end
57
+ end
@@ -0,0 +1,71 @@
1
+ # typed: strong
2
+
3
+ module OpenAI
4
+ module Models
5
+
6
+ module Beta
7
+
8
+ module Agents
9
+
10
+ class AutomationDeleted < OpenAI::Internal::Type::BaseModel
11
+
12
+ OrHash = T.type_alias do
13
+ T.any(
14
+ OpenAI::Beta::Agents::AutomationDeleted,
15
+ OpenAI::Internal::AnyHash
16
+ )
17
+ end
18
+
19
+ # The deleted automation ID.
20
+ sig { returns(String) }
21
+ attr_accessor :id
22
+
23
+ # Always true.
24
+ sig { returns(T::Boolean) }
25
+ attr_accessor :deleted
26
+
27
+ # Always `agent.automation.deleted`.
28
+ sig { returns(Symbol) }
29
+ attr_accessor :object
30
+
31
+ sig do
32
+ params(
33
+
34
+ id: String,
35
+
36
+ deleted: T::Boolean,
37
+
38
+ object: Symbol
39
+ )
40
+ .returns(T.attached_class)
41
+ end
42
+ def self.new(
43
+
44
+ # The deleted automation ID.
45
+ id:,
46
+
47
+ # Always true.
48
+ deleted:,
49
+
50
+ # Always `agent.automation.deleted`.
51
+
52
+ object: :"agent.automation.deleted"
53
+ )
54
+ end
55
+
56
+ sig do
57
+ override.returns(
58
+ {id: String, deleted: T::Boolean, object: Symbol}
59
+ )
60
+ end
61
+ def to_hash
62
+ end
63
+
64
+ end
65
+
66
+ end
67
+
68
+ end
69
+
70
+ end
71
+ end