openai 1.2.0 → 1.3.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 (202) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -0
  3. data/README.md +1 -1
  4. data/lib/openai/models/admin/organization/organization_spend_limit.rb +38 -1
  5. data/lib/openai/models/admin/organization/projects/project_spend_limit.rb +38 -1
  6. data/lib/openai/models/admin/organization/projects/spend_limit_update_params.rb +51 -1
  7. data/lib/openai/models/admin/organization/spend_limit_update_params.rb +49 -1
  8. data/lib/openai/models/admin/organization/usage_costs_params.rb +2 -2
  9. data/lib/openai/models/batch.rb +4 -6
  10. data/lib/openai/models/batch_create_params.rb +2 -4
  11. data/lib/openai/models/beta/agents/automation_target_param.rb +2 -2
  12. data/lib/openai/models/beta/agents/session_create_params.rb +2 -2
  13. data/lib/openai/models/beta/agents/session_update_params.rb +12 -1
  14. data/lib/openai/models/beta/beta_compacted_response.rb +19 -1
  15. data/lib/openai/models/beta/beta_container_auto.rb +8 -2
  16. data/lib/openai/models/beta/beta_response.rb +11 -13
  17. data/lib/openai/models/beta/beta_responses_client_event.rb +11 -13
  18. data/lib/openai/models/beta/response_compact_params.rb +19 -10
  19. data/lib/openai/models/beta/response_create_params.rb +11 -13
  20. data/lib/openai/models/chat/chat_completion.rb +2 -4
  21. data/lib/openai/models/chat/completion_create_params.rb +15 -17
  22. data/lib/openai/models/chat/completion_update_params.rb +2 -4
  23. data/lib/openai/models/completion_create_params.rb +3 -3
  24. data/lib/openai/models/conversations/conversation_create_params.rb +12 -5
  25. data/lib/openai/models/eval_create_params.rb +2 -4
  26. data/lib/openai/models/eval_create_response.rb +5 -9
  27. data/lib/openai/models/eval_list_response.rb +5 -9
  28. data/lib/openai/models/eval_retrieve_response.rb +5 -9
  29. data/lib/openai/models/eval_stored_completions_data_source_config.rb +2 -4
  30. data/lib/openai/models/eval_update_params.rb +2 -4
  31. data/lib/openai/models/eval_update_response.rb +5 -9
  32. data/lib/openai/models/evals/create_eval_completions_run_data_source.rb +6 -8
  33. data/lib/openai/models/evals/run_cancel_response.rb +4 -6
  34. data/lib/openai/models/evals/run_create_params.rb +4 -6
  35. data/lib/openai/models/evals/run_create_response.rb +4 -6
  36. data/lib/openai/models/evals/run_list_response.rb +4 -6
  37. data/lib/openai/models/evals/run_retrieve_response.rb +4 -6
  38. data/lib/openai/models/fine_tuning/fine_tuning_job.rb +2 -4
  39. data/lib/openai/models/fine_tuning/job_create_params.rb +7 -6
  40. data/lib/openai/models/live/fork_server_event.rb +4 -4
  41. data/lib/openai/models/live/media_session_config.rb +15 -16
  42. data/lib/openai/models/live/responses_delegation_config.rb +8 -2
  43. data/lib/openai/models/live/responses_delegation_update_config.rb +8 -2
  44. data/lib/openai/models/live/server_event.rb +4 -4
  45. data/lib/openai/models/live/sideband_server_event.rb +4 -4
  46. data/lib/openai/models/realtime/realtime_audio_config_input.rb +12 -9
  47. data/lib/openai/models/realtime/realtime_response.rb +2 -4
  48. data/lib/openai/models/realtime/realtime_response_create_params.rb +2 -4
  49. data/lib/openai/models/responses/compacted_response.rb +19 -1
  50. data/lib/openai/models/responses/container_auto.rb +8 -2
  51. data/lib/openai/models/responses/response.rb +8 -10
  52. data/lib/openai/models/responses/response_compact_params.rb +19 -10
  53. data/lib/openai/models/responses/response_create_params.rb +8 -10
  54. data/lib/openai/models/responses/responses_client_event.rb +8 -10
  55. data/lib/openai/models/vector_store.rb +2 -4
  56. data/lib/openai/models/vector_store_create_params.rb +2 -4
  57. data/lib/openai/models/vector_store_update_params.rb +2 -4
  58. data/lib/openai/resources/admin/organization/projects/spend_limit.rb +5 -1
  59. data/lib/openai/resources/admin/organization/spend_limit.rb +5 -1
  60. data/lib/openai/resources/admin/organization/usage.rb +1 -1
  61. data/lib/openai/resources/batches.rb +1 -2
  62. data/lib/openai/resources/beta/agents/sessions/events.rb +7 -2
  63. data/lib/openai/resources/beta/agents/sessions/traces.rb +4 -2
  64. data/lib/openai/resources/beta/agents/sessions.rb +8 -4
  65. data/lib/openai/resources/beta/responses.rb +9 -6
  66. data/lib/openai/resources/chat/completions.rb +11 -14
  67. data/lib/openai/resources/completions.rb +2 -2
  68. data/lib/openai/resources/conversations.rb +5 -3
  69. data/lib/openai/resources/evals/runs.rb +1 -2
  70. data/lib/openai/resources/evals.rb +2 -4
  71. data/lib/openai/resources/fine_tuning/jobs.rb +2 -3
  72. data/lib/openai/resources/responses.rb +15 -14
  73. data/lib/openai/resources/vector_stores.rb +2 -4
  74. data/lib/openai/version.rb +1 -1
  75. data/rbi/openai/models/admin/organization/organization_spend_limit.rbi +68 -1
  76. data/rbi/openai/models/admin/organization/projects/project_spend_limit.rbi +68 -1
  77. data/rbi/openai/models/admin/organization/projects/spend_limit_update_params.rbi +87 -0
  78. data/rbi/openai/models/admin/organization/spend_limit_update_params.rbi +85 -0
  79. data/rbi/openai/models/admin/organization/usage_costs_params.rbi +2 -2
  80. data/rbi/openai/models/batch.rbi +4 -6
  81. data/rbi/openai/models/batch_create_params.rbi +2 -4
  82. data/rbi/openai/models/beta/agents/automation_target_param.rbi +2 -2
  83. data/rbi/openai/models/beta/agents/session_create_params.rbi +2 -2
  84. data/rbi/openai/models/beta/agents/session_update_params.rbi +12 -0
  85. data/rbi/openai/models/beta/beta_compacted_response.rbi +24 -1
  86. data/rbi/openai/models/beta/beta_container_auto.rbi +8 -2
  87. data/rbi/openai/models/beta/beta_response.rbi +11 -13
  88. data/rbi/openai/models/beta/beta_responses_client_event.rbi +11 -13
  89. data/rbi/openai/models/beta/response_compact_params.rbi +19 -9
  90. data/rbi/openai/models/beta/response_create_params.rbi +11 -13
  91. data/rbi/openai/models/chat/chat_completion.rbi +2 -4
  92. data/rbi/openai/models/chat/completion_create_params.rbi +14 -16
  93. data/rbi/openai/models/chat/completion_update_params.rbi +2 -4
  94. data/rbi/openai/models/completion_create_params.rbi +3 -3
  95. data/rbi/openai/models/conversations/conversation_create_params.rbi +12 -4
  96. data/rbi/openai/models/eval_create_params.rbi +2 -4
  97. data/rbi/openai/models/eval_create_response.rbi +5 -9
  98. data/rbi/openai/models/eval_list_response.rbi +5 -9
  99. data/rbi/openai/models/eval_retrieve_response.rbi +5 -9
  100. data/rbi/openai/models/eval_stored_completions_data_source_config.rbi +2 -4
  101. data/rbi/openai/models/eval_update_params.rbi +2 -4
  102. data/rbi/openai/models/eval_update_response.rbi +5 -9
  103. data/rbi/openai/models/evals/create_eval_completions_run_data_source.rbi +6 -8
  104. data/rbi/openai/models/evals/run_cancel_response.rbi +4 -6
  105. data/rbi/openai/models/evals/run_create_params.rbi +4 -6
  106. data/rbi/openai/models/evals/run_create_response.rbi +4 -6
  107. data/rbi/openai/models/evals/run_list_response.rbi +4 -6
  108. data/rbi/openai/models/evals/run_retrieve_response.rbi +4 -6
  109. data/rbi/openai/models/fine_tuning/fine_tuning_job.rbi +2 -4
  110. data/rbi/openai/models/fine_tuning/job_create_params.rbi +8 -6
  111. data/rbi/openai/models/live/fork_server_event.rbi +3 -3
  112. data/rbi/openai/models/live/media_session_config.rbi +15 -16
  113. data/rbi/openai/models/live/responses_delegation_config.rbi +8 -2
  114. data/rbi/openai/models/live/responses_delegation_update_config.rbi +8 -2
  115. data/rbi/openai/models/live/server_event.rbi +3 -3
  116. data/rbi/openai/models/live/sideband_server_event.rbi +3 -3
  117. data/rbi/openai/models/realtime/realtime_audio_config_input.rbi +12 -9
  118. data/rbi/openai/models/realtime/realtime_response.rbi +2 -4
  119. data/rbi/openai/models/realtime/realtime_response_create_params.rbi +2 -4
  120. data/rbi/openai/models/responses/compacted_response.rbi +24 -1
  121. data/rbi/openai/models/responses/container_auto.rbi +8 -2
  122. data/rbi/openai/models/responses/response.rbi +8 -10
  123. data/rbi/openai/models/responses/response_compact_params.rbi +19 -9
  124. data/rbi/openai/models/responses/response_create_params.rbi +8 -10
  125. data/rbi/openai/models/responses/responses_client_event.rbi +8 -10
  126. data/rbi/openai/models/vector_store.rbi +2 -4
  127. data/rbi/openai/models/vector_store_create_params.rbi +2 -4
  128. data/rbi/openai/models/vector_store_update_params.rbi +2 -4
  129. data/rbi/openai/resources/admin/organization/projects/spend_limit.rbi +6 -0
  130. data/rbi/openai/resources/admin/organization/spend_limit.rbi +6 -0
  131. data/rbi/openai/resources/admin/organization/usage.rbi +1 -1
  132. data/rbi/openai/resources/batches.rbi +1 -2
  133. data/rbi/openai/resources/beta/agents/sessions/events.rbi +7 -2
  134. data/rbi/openai/resources/beta/agents/sessions/traces.rbi +4 -2
  135. data/rbi/openai/resources/beta/agents/sessions.rbi +7 -3
  136. data/rbi/openai/resources/beta/responses.rbi +8 -5
  137. data/rbi/openai/resources/chat/completions.rbi +11 -14
  138. data/rbi/openai/resources/completions.rbi +2 -2
  139. data/rbi/openai/resources/conversations.rbi +4 -2
  140. data/rbi/openai/resources/evals/runs.rbi +1 -2
  141. data/rbi/openai/resources/evals.rbi +2 -4
  142. data/rbi/openai/resources/fine_tuning/jobs.rbi +2 -3
  143. data/rbi/openai/resources/responses.rbi +14 -13
  144. data/rbi/openai/resources/vector_stores.rbi +2 -4
  145. data/sig/openai/models/admin/organization/organization_spend_limit.rbs +42 -2
  146. data/sig/openai/models/admin/organization/projects/project_spend_limit.rbs +42 -2
  147. data/sig/openai/models/admin/organization/projects/spend_limit_update_params.rbs +48 -0
  148. data/sig/openai/models/admin/organization/spend_limit_update_params.rbs +48 -0
  149. data/sig/openai/models/admin/organization/usage_costs_params.rbs +3 -3
  150. data/sig/openai/models/batch.rbs +5 -7
  151. data/sig/openai/models/batch_create_params.rbs +2 -4
  152. data/sig/openai/models/beta/agents/automation_target_param.rbs +2 -2
  153. data/sig/openai/models/beta/agents/session_create_params.rbs +2 -2
  154. data/sig/openai/models/beta/agents/session_update_params.rbs +10 -0
  155. data/sig/openai/models/beta/beta_compacted_response.rbs +21 -2
  156. data/sig/openai/models/beta/beta_container_auto.rbs +12 -3
  157. data/sig/openai/models/beta/beta_response.rbs +8 -10
  158. data/sig/openai/models/beta/beta_responses_client_event.rbs +11 -13
  159. data/sig/openai/models/beta/response_compact_params.rbs +14 -6
  160. data/sig/openai/models/beta/response_create_params.rbs +11 -13
  161. data/sig/openai/models/chat/chat_completion.rbs +2 -4
  162. data/sig/openai/models/chat/completion_create_params.rbs +10 -12
  163. data/sig/openai/models/chat/completion_update_params.rbs +2 -4
  164. data/sig/openai/models/completion_create_params.rbs +2 -2
  165. data/sig/openai/models/conversations/conversation_create_params.rbs +10 -4
  166. data/sig/openai/models/eval_create_params.rbs +2 -4
  167. data/sig/openai/models/eval_create_response.rbs +4 -8
  168. data/sig/openai/models/eval_list_response.rbs +4 -8
  169. data/sig/openai/models/eval_retrieve_response.rbs +4 -8
  170. data/sig/openai/models/eval_stored_completions_data_source_config.rbs +2 -4
  171. data/sig/openai/models/eval_update_params.rbs +2 -4
  172. data/sig/openai/models/eval_update_response.rbs +4 -8
  173. data/sig/openai/models/evals/create_eval_completions_run_data_source.rbs +7 -9
  174. data/sig/openai/models/evals/run_cancel_response.rbs +5 -7
  175. data/sig/openai/models/evals/run_create_params.rbs +5 -7
  176. data/sig/openai/models/evals/run_create_response.rbs +5 -7
  177. data/sig/openai/models/evals/run_list_response.rbs +5 -7
  178. data/sig/openai/models/evals/run_retrieve_response.rbs +5 -7
  179. data/sig/openai/models/fine_tuning/fine_tuning_job.rbs +2 -4
  180. data/sig/openai/models/fine_tuning/job_create_params.rbs +6 -6
  181. data/sig/openai/models/live/media_session_config.rbs +21 -21
  182. data/sig/openai/models/live/responses_delegation_config.rbs +8 -2
  183. data/sig/openai/models/live/responses_delegation_update_config.rbs +8 -2
  184. data/sig/openai/models/realtime/realtime_audio_config_input.rbs +12 -9
  185. data/sig/openai/models/realtime/realtime_response.rbs +2 -4
  186. data/sig/openai/models/realtime/realtime_response_create_params.rbs +2 -4
  187. data/sig/openai/models/responses/compacted_response.rbs +21 -2
  188. data/sig/openai/models/responses/container_auto.rbs +12 -3
  189. data/sig/openai/models/responses/response.rbs +8 -10
  190. data/sig/openai/models/responses/response_compact_params.rbs +14 -6
  191. data/sig/openai/models/responses/response_create_params.rbs +11 -13
  192. data/sig/openai/models/responses/responses_client_event.rbs +11 -13
  193. data/sig/openai/models/vector_store.rbs +2 -4
  194. data/sig/openai/models/vector_store_create_params.rbs +2 -4
  195. data/sig/openai/models/vector_store_update_params.rbs +2 -4
  196. data/sig/openai/resources/admin/organization/projects/spend_limit.rbs +1 -0
  197. data/sig/openai/resources/admin/organization/spend_limit.rbs +1 -0
  198. data/sig/openai/resources/beta/agents/sessions.rbs +1 -0
  199. data/sig/openai/resources/beta/responses.rbs +1 -0
  200. data/sig/openai/resources/conversations.rbs +1 -0
  201. data/sig/openai/resources/responses.rbs +1 -0
  202. metadata +1 -1
@@ -74,11 +74,11 @@ module OpenAI
74
74
  def limit=: (Integer) -> Integer
75
75
 
76
76
  # Return only costs for these exact line item names. Each value must match the
77
- # complete `line_item` value, for example `gpt-6-astra, input_tokens`.
77
+ # complete `line_item` value, for example `gpt-6.2-astra, input_tokens`.
78
78
  attr_reader line_items: ::Array[String]?
79
79
 
80
80
  # Return only costs for these exact line item names. Each value must match the
81
- # complete `line_item` value, for example `gpt-6-astra, input_tokens`.
81
+ # complete `line_item` value, for example `gpt-6.2-astra, input_tokens`.
82
82
  def line_items=: (::Array[String]) -> ::Array[String]
83
83
 
84
84
  # A cursor for use in pagination. Corresponding to the `next_page` field from the
@@ -117,7 +117,7 @@ module OpenAI
117
117
  # 180, and the default is 7.
118
118
  # @param line_items
119
119
  # Return only costs for these exact line item names. Each value must match the
120
- # complete `line_item` value, for example `gpt-6-astra, input_tokens`.
120
+ # complete `line_item` value, for example `gpt-6.2-astra, input_tokens`.
121
121
  # @param page
122
122
  # A cursor for use in pagination. Corresponding to the `next_page` field from the
123
123
  # previous response.
@@ -106,21 +106,20 @@ module OpenAI
106
106
  def in_progress_at=: (Integer) -> Integer
107
107
 
108
108
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
109
- # for storing additional information about the object in a structured format, and
110
- # querying for objects via API or the dashboard.
109
+ # for storing additional information about the object in a structured format.
111
110
  #
112
111
  # Keys are strings with a maximum length of 64 characters. Values are strings with
113
112
  # a maximum length of 512 characters.
114
113
  attr_accessor metadata: OpenAI::Models::metadata?
115
114
 
116
- # Model ID used to process the batch, like `gpt-6-astra`. OpenAI offers a wide
115
+ # Model ID used to process the batch, like `gpt-6.2-astra`. OpenAI offers a wide
117
116
  # range of models with different capabilities, performance characteristics, and
118
117
  # price points. Refer to the
119
118
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
120
119
  # compare available models.
121
120
  attr_reader model: String?
122
121
 
123
- # Model ID used to process the batch, like `gpt-6-astra`. OpenAI offers a wide
122
+ # Model ID used to process the batch, like `gpt-6.2-astra`. OpenAI offers a wide
124
123
  # range of models with different capabilities, performance characteristics, and
125
124
  # price points. Refer to the
126
125
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
@@ -181,13 +180,12 @@ module OpenAI
181
180
  # The Unix timestamp (in seconds) for when the batch started processing.
182
181
  # @param metadata
183
182
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
184
- # for storing additional information about the object in a structured format, and
185
- # querying for objects via API or the dashboard.
183
+ # for storing additional information about the object in a structured format.
186
184
  #
187
185
  # Keys are strings with a maximum length of 64 characters. Values are strings with
188
186
  # a maximum length of 512 characters.
189
187
  # @param model
190
- # Model ID used to process the batch, like `gpt-6-astra`. OpenAI offers a wide
188
+ # Model ID used to process the batch, like `gpt-6.2-astra`. OpenAI offers a wide
191
189
  # range of models with different capabilities, performance characteristics, and
192
190
  # price points. Refer to the
193
191
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
@@ -35,8 +35,7 @@ module OpenAI
35
35
  attr_accessor input_file_id: String
36
36
 
37
37
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
38
- # for storing additional information about the object in a structured format, and
39
- # querying for objects via API or the dashboard.
38
+ # for storing additional information about the object in a structured format.
40
39
  #
41
40
  # Keys are strings with a maximum length of 64 characters. Values are strings with
42
41
  # a maximum length of 512 characters.
@@ -71,8 +70,7 @@ module OpenAI
71
70
  # requests, and can be up to 200 MB in size.
72
71
  # @param metadata
73
72
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
74
- # for storing additional information about the object in a structured format, and
75
- # querying for objects via API or the dashboard.
73
+ # for storing additional information about the object in a structured format.
76
74
  #
77
75
  # Keys are strings with a maximum length of 64 characters. Values are strings with
78
76
  # a maximum length of 512 characters.
@@ -136,7 +136,7 @@ module OpenAI
136
136
  attr_accessor text: OpenAI::Beta::AgentTextParam?
137
137
 
138
138
  # Tools available to the agent. Omit to inherit, or pass null to clear them. The
139
- # resolved tool list must fit within 3 MiB (3,145,728 bytes) of compact UTF-8
139
+ # resolved tool list must fit within 8 MiB (8,388,608 bytes) of compact UTF-8
140
140
  # JSON.
141
141
  attr_accessor tools: ::Array[OpenAI::Models::Beta::agent_tool_param]?
142
142
 
@@ -162,7 +162,7 @@ module OpenAI
162
162
  # Configuration for text generated by the agent.
163
163
  # @param tools
164
164
  # Tools available to the agent. Omit to inherit, or pass null to clear them. The
165
- # resolved tool list must fit within 3 MiB (3,145,728 bytes) of compact UTF-8
165
+ # resolved tool list must fit within 8 MiB (8,388,608 bytes) of compact UTF-8
166
166
  # JSON.
167
167
  def initialize: (
168
168
  ?compaction: OpenAI::Beta::Agents::AutomationTargetParam::NewSession::Agent::Compaction?,
@@ -187,7 +187,7 @@ module OpenAI
187
187
  attr_accessor text: OpenAI::Beta::AgentTextParam?
188
188
 
189
189
  # Tools available to the agent. Omit to inherit, or pass null to clear them. The
190
- # resolved tool list must fit within 3 MiB (3,145,728 bytes) of compact UTF-8
190
+ # resolved tool list must fit within 8 MiB (8,388,608 bytes) of compact UTF-8
191
191
  # JSON.
192
192
  attr_accessor tools: ::Array[OpenAI::Models::Beta::agent_tool_param]?
193
193
 
@@ -213,7 +213,7 @@ module OpenAI
213
213
  # Configuration for text generated by the agent.
214
214
  # @param tools
215
215
  # Tools available to the agent. Omit to inherit, or pass null to clear them. The
216
- # resolved tool list must fit within 3 MiB (3,145,728 bytes) of compact UTF-8
216
+ # resolved tool list must fit within 8 MiB (8,388,608 bytes) of compact UTF-8
217
217
  # JSON.
218
218
  def initialize: (
219
219
  ?compaction: OpenAI::Beta::Agents::SessionCreateParams::Agent::Compaction?,
@@ -10,6 +10,7 @@ module OpenAI
10
10
  ?prompt_cache_options: OpenAI::Beta::Agents::SessionUpdateParams::PromptCacheOptions?,
11
11
  ?review: OpenAI::Models::Beta::Agents::SessionUpdateParams::review,
12
12
  ?spend_control: OpenAI::Beta::Agents::SessionUpdateParams::SpendControl?,
13
+ ?vault_ids: ::Array[String]?,
13
14
  ?request_options: OpenAI::request_opts
14
15
  }
15
16
 
@@ -50,6 +51,10 @@ module OpenAI
50
51
  # spend.
51
52
  attr_accessor spend_control: OpenAI::Beta::Agents::SessionUpdateParams::SpendControl?
52
53
 
54
+ # Replaces the session's referenced vaults. Omit to retain them; null or [] clears
55
+ # them.
56
+ attr_accessor vault_ids: ::Array[String]?
57
+
53
58
  # @param agent
54
59
  # Agent settings to update on this session. Omitted fields stay unchanged.
55
60
  # @param metadata
@@ -65,6 +70,9 @@ module OpenAI
65
70
  # @param spend_control
66
71
  # Omit to retain the limit; null or a null limit removes it without resetting
67
72
  # spend.
73
+ # @param vault_ids
74
+ # Replaces the session's referenced vaults. Omit to retain them; null or [] clears
75
+ # them.
68
76
  def initialize: (
69
77
  session_id: String,
70
78
  ?agent: OpenAI::Beta::Agents::SessionUpdateParams::Agent,
@@ -72,6 +80,7 @@ module OpenAI
72
80
  ?prompt_cache_options: OpenAI::Beta::Agents::SessionUpdateParams::PromptCacheOptions?,
73
81
  ?review: OpenAI::Models::Beta::Agents::SessionUpdateParams::review,
74
82
  ?spend_control: OpenAI::Beta::Agents::SessionUpdateParams::SpendControl?,
83
+ ?vault_ids: ::Array[String]?,
75
84
  ?request_options: OpenAI::request_opts
76
85
  ) -> void
77
86
 
@@ -82,6 +91,7 @@ module OpenAI
82
91
  ?prompt_cache_options: OpenAI::Beta::Agents::SessionUpdateParams::PromptCacheOptions?,
83
92
  ?review: OpenAI::Models::Beta::Agents::SessionUpdateParams::review,
84
93
  ?spend_control: OpenAI::Beta::Agents::SessionUpdateParams::SpendControl?,
94
+ ?vault_ids: ::Array[String]?,
85
95
  ?request_options: OpenAI::RequestOptions
86
96
  }
87
97
 
@@ -10,7 +10,9 @@ module OpenAI
10
10
  ?object: :"response.compaction",
11
11
  output: ::Array[OpenAI::Models::Beta::beta_response_item],
12
12
  usage: OpenAI::Beta::BetaResponseUsage,
13
- ?image: OpenAI::Beta::BetaCompactedResponse::Image
13
+ ?image: OpenAI::Beta::BetaCompactedResponse::Image,
14
+ ?safety_identifier: String?,
15
+ ?service_tier: String
14
16
  }
15
17
 
16
18
  class BetaCompactedResponse < OpenAI::Internal::Type::BaseModel
@@ -37,6 +39,15 @@ module OpenAI
37
39
  OpenAI::Beta::BetaCompactedResponse::Image
38
40
  ) -> OpenAI::Beta::BetaCompactedResponse::Image
39
41
 
42
+ # A stable identifier that was used for safety monitoring and abuse detection.
43
+ attr_accessor safety_identifier: String?
44
+
45
+ # The service tier used for compaction, when reported.
46
+ attr_reader service_tier: String?
47
+
48
+ # The service tier used for compaction, when reported.
49
+ def service_tier=: (String) -> String
50
+
40
51
  # @param id
41
52
  # The unique identifier for the compacted response.
42
53
  # @param created_at
@@ -47,6 +58,10 @@ module OpenAI
47
58
  # @param usage
48
59
  # Token accounting for the compaction pass, including cached, reasoning, and total
49
60
  # tokens.
61
+ # @param safety_identifier
62
+ # A stable identifier that was used for safety monitoring and abuse detection.
63
+ # @param service_tier
64
+ # The service tier used for compaction, when reported.
50
65
  # @param object
51
66
  # The object type. Always `response.compaction`.
52
67
  def initialize: (
@@ -55,6 +70,8 @@ module OpenAI
55
70
  output: ::Array[OpenAI::Models::Beta::beta_response_item],
56
71
  usage: OpenAI::Beta::BetaResponseUsage,
57
72
  ?image: OpenAI::Beta::BetaCompactedResponse::Image,
73
+ ?safety_identifier: String?,
74
+ ?service_tier: String,
58
75
  ?object: :"response.compaction"
59
76
  ) -> void
60
77
 
@@ -64,7 +81,9 @@ module OpenAI
64
81
  ?object: :"response.compaction",
65
82
  output: ::Array[OpenAI::Models::Beta::beta_response_item],
66
83
  usage: OpenAI::Beta::BetaResponseUsage,
67
- ?image: OpenAI::Beta::BetaCompactedResponse::Image
84
+ ?image: OpenAI::Beta::BetaCompactedResponse::Image,
85
+ ?safety_identifier: String?,
86
+ ?service_tier: String
68
87
  }
69
88
 
70
89
  type image =
@@ -33,10 +33,16 @@ module OpenAI
33
33
  OpenAI::Models::Beta::BetaContainerAuto::network_policy
34
34
  ) -> OpenAI::Models::Beta::BetaContainerAuto::network_policy
35
35
 
36
- # An optional list of skills referenced by id or inline data.
36
+ # An optional list of skills referenced by id or inline data. Across all inline
37
+ # skills in this list, decoded ZIP data must total at most 50 MiB and Base64 text
38
+ # must total at most 70,254,592 characters, including line breaks. Skill
39
+ # references do not count toward these limits.
37
40
  attr_reader skills: ::Array[OpenAI::Models::Beta::BetaContainerAuto::skill]?
38
41
 
39
- # An optional list of skills referenced by id or inline data.
42
+ # An optional list of skills referenced by id or inline data. Across all inline
43
+ # skills in this list, decoded ZIP data must total at most 50 MiB and Base64 text
44
+ # must total at most 70,254,592 characters, including line breaks. Skill
45
+ # references do not count toward these limits.
40
46
  def skills=: (
41
47
  ::Array[OpenAI::Models::Beta::BetaContainerAuto::skill]
42
48
  ) -> ::Array[OpenAI::Models::Beta::BetaContainerAuto::skill]
@@ -48,7 +54,10 @@ module OpenAI
48
54
  # @param network_policy
49
55
  # Network access policy for the container.
50
56
  # @param skills
51
- # An optional list of skills referenced by id or inline data.
57
+ # An optional list of skills referenced by id or inline data. Across all inline
58
+ # skills in this list, decoded ZIP data must total at most 50 MiB and Base64 text
59
+ # must total at most 70,254,592 characters, including line breaks. Skill
60
+ # references do not count toward these limits.
52
61
  # @param type
53
62
  # Automatically creates a container for this request
54
63
  def initialize: (
@@ -69,16 +69,15 @@ module OpenAI
69
69
  attr_accessor instructions: OpenAI::Models::Beta::BetaResponse::instructions?
70
70
 
71
71
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
72
- # for storing additional information about the object in a structured format, and
73
- # querying for objects via API or the dashboard.
72
+ # for storing additional information about the object in a structured format.
74
73
  #
75
74
  # Keys are strings with a maximum length of 64 characters. Values are strings with
76
75
  # a maximum length of 512 characters.
77
76
  attr_accessor metadata: ::Hash[Symbol, String]?
78
77
 
79
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
80
- # range of models with different capabilities, performance characteristics, and
81
- # price points. Refer to the
78
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
79
+ # wide range of models with different capabilities, performance characteristics,
80
+ # and price points. Refer to the
82
81
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
83
82
  # compare available models.
84
83
  attr_accessor model: OpenAI::Models::Beta::BetaResponse::model
@@ -383,15 +382,14 @@ module OpenAI
383
382
  # swap out system (or developer) messages in new responses.
384
383
  # @param metadata
385
384
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
386
- # for storing additional information about the object in a structured format, and
387
- # querying for objects via API or the dashboard.
385
+ # for storing additional information about the object in a structured format.
388
386
  #
389
387
  # Keys are strings with a maximum length of 64 characters. Values are strings with
390
388
  # a maximum length of 512 characters.
391
389
  # @param model
392
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
393
- # range of models with different capabilities, performance characteristics, and
394
- # price points. Refer to the
390
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
391
+ # wide range of models with different capabilities, performance characteristics,
392
+ # and price points. Refer to the
395
393
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
396
394
  # compare available models.
397
395
  # @param output
@@ -171,23 +171,22 @@ module OpenAI
171
171
  attr_accessor max_tool_calls: Integer?
172
172
 
173
173
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
174
- # for storing additional information about the object in a structured format, and
175
- # querying for objects via API or the dashboard.
174
+ # for storing additional information about the object in a structured format.
176
175
  #
177
176
  # Keys are strings with a maximum length of 64 characters. Values are strings with
178
177
  # a maximum length of 512 characters.
179
178
  attr_accessor metadata: ::Hash[Symbol, String]?
180
179
 
181
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
182
- # range of models with different capabilities, performance characteristics, and
183
- # price points. Refer to the
180
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
181
+ # wide range of models with different capabilities, performance characteristics,
182
+ # and price points. Refer to the
184
183
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
185
184
  # compare available models.
186
185
  attr_reader model: OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::model?
187
186
 
188
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
189
- # range of models with different capabilities, performance characteristics, and
190
- # price points. Refer to the
187
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
188
+ # wide range of models with different capabilities, performance characteristics,
189
+ # and price points. Refer to the
191
190
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
192
191
  # compare available models.
193
192
  def model=: (
@@ -517,15 +516,14 @@ module OpenAI
517
516
  # ignored.
518
517
  # @param metadata
519
518
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
520
- # for storing additional information about the object in a structured format, and
521
- # querying for objects via API or the dashboard.
519
+ # for storing additional information about the object in a structured format.
522
520
  #
523
521
  # Keys are strings with a maximum length of 64 characters. Values are strings with
524
522
  # a maximum length of 512 characters.
525
523
  # @param model
526
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
527
- # range of models with different capabilities, performance characteristics, and
528
- # price points. Refer to the
524
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
525
+ # wide range of models with different capabilities, performance characteristics,
526
+ # and price points. Refer to the
529
527
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
530
528
  # compare available models.
531
529
  # @param moderation
@@ -11,6 +11,7 @@ module OpenAI
11
11
  ?prompt_cache_key: String?,
12
12
  ?prompt_cache_options: OpenAI::Beta::ResponseCompactParams::PromptCacheOptions?,
13
13
  ?prompt_cache_retention: OpenAI::Models::Beta::ResponseCompactParams::prompt_cache_retention?,
14
+ ?safety_identifier: String?,
14
15
  ?service_tier: OpenAI::Models::Beta::ResponseCompactParams::service_tier?,
15
16
  ?betas: ::Array[OpenAI::Models::Beta::ResponseCompactParams::beta],
16
17
  ?request_options: OpenAI::request_opts
@@ -20,9 +21,9 @@ module OpenAI
20
21
  extend OpenAI::Internal::Type::RequestParameters::Converter
21
22
  include OpenAI::Internal::Type::RequestParameters
22
23
 
23
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
24
- # range of models with different capabilities, performance characteristics, and
25
- # price points. Refer to the
24
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
25
+ # wide range of models with different capabilities, performance characteristics,
26
+ # and price points. Refer to the
26
27
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
27
28
  # compare available models.
28
29
  attr_accessor model: OpenAI::Models::Beta::ResponseCompactParams::model?
@@ -67,6 +68,9 @@ module OpenAI
67
68
  # How long to retain a prompt cache entry created by this request.
68
69
  attr_accessor prompt_cache_retention: OpenAI::Models::Beta::ResponseCompactParams::prompt_cache_retention?
69
70
 
71
+ # A stable identifier used for safety monitoring and abuse detection.
72
+ attr_accessor safety_identifier: String?
73
+
70
74
  # Specifies the processing type used for serving the request. - If set to 'auto',
71
75
  # then the request will be processed with the service tier configured in the
72
76
  # Project settings. Unless otherwise configured, the Project will use 'default'. -
@@ -92,9 +96,9 @@ module OpenAI
92
96
  ) -> ::Array[OpenAI::Models::Beta::ResponseCompactParams::beta]
93
97
 
94
98
  # @param model
95
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
96
- # range of models with different capabilities, performance characteristics, and
97
- # price points. Refer to the
99
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
100
+ # wide range of models with different capabilities, performance characteristics,
101
+ # and price points. Refer to the
98
102
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
99
103
  # compare available models.
100
104
  # @param image
@@ -125,6 +129,8 @@ module OpenAI
125
129
  # for current details.
126
130
  # @param prompt_cache_retention
127
131
  # How long to retain a prompt cache entry created by this request.
132
+ # @param safety_identifier
133
+ # A stable identifier used for safety monitoring and abuse detection.
128
134
  # @param service_tier
129
135
  # Specifies the processing type used for serving the request. - If set to 'auto',
130
136
  # then the request will be processed with the service tier configured in the
@@ -151,6 +157,7 @@ module OpenAI
151
157
  ?prompt_cache_key: String?,
152
158
  ?prompt_cache_options: OpenAI::Beta::ResponseCompactParams::PromptCacheOptions?,
153
159
  ?prompt_cache_retention: OpenAI::Models::Beta::ResponseCompactParams::prompt_cache_retention?,
160
+ ?safety_identifier: String?,
154
161
  ?service_tier: OpenAI::Models::Beta::ResponseCompactParams::service_tier?,
155
162
  ?betas: ::Array[OpenAI::Models::Beta::ResponseCompactParams::beta],
156
163
  ?request_options: OpenAI::request_opts
@@ -165,6 +172,7 @@ module OpenAI
165
172
  ?prompt_cache_key: String?,
166
173
  ?prompt_cache_options: OpenAI::Beta::ResponseCompactParams::PromptCacheOptions?,
167
174
  ?prompt_cache_retention: OpenAI::Models::Beta::ResponseCompactParams::prompt_cache_retention?,
175
+ ?safety_identifier: String?,
168
176
  ?service_tier: OpenAI::Models::Beta::ResponseCompactParams::service_tier?,
169
177
  ?betas: ::Array[OpenAI::Models::Beta::ResponseCompactParams::beta],
170
178
  ?request_options: OpenAI::RequestOptions
@@ -149,23 +149,22 @@ module OpenAI
149
149
  attr_accessor max_tool_calls: Integer?
150
150
 
151
151
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
152
- # for storing additional information about the object in a structured format, and
153
- # querying for objects via API or the dashboard.
152
+ # for storing additional information about the object in a structured format.
154
153
  #
155
154
  # Keys are strings with a maximum length of 64 characters. Values are strings with
156
155
  # a maximum length of 512 characters.
157
156
  attr_accessor metadata: ::Hash[Symbol, String]?
158
157
 
159
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
160
- # range of models with different capabilities, performance characteristics, and
161
- # price points. Refer to the
158
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
159
+ # wide range of models with different capabilities, performance characteristics,
160
+ # and price points. Refer to the
162
161
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
163
162
  # compare available models.
164
163
  attr_reader model: OpenAI::Models::Beta::ResponseCreateParams::model?
165
164
 
166
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
167
- # range of models with different capabilities, performance characteristics, and
168
- # price points. Refer to the
165
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
166
+ # wide range of models with different capabilities, performance characteristics,
167
+ # and price points. Refer to the
169
168
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
170
169
  # compare available models.
171
170
  def model=: (
@@ -477,15 +476,14 @@ module OpenAI
477
476
  # ignored.
478
477
  # @param metadata
479
478
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
480
- # for storing additional information about the object in a structured format, and
481
- # querying for objects via API or the dashboard.
479
+ # for storing additional information about the object in a structured format.
482
480
  #
483
481
  # Keys are strings with a maximum length of 64 characters. Values are strings with
484
482
  # a maximum length of 512 characters.
485
483
  # @param model
486
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
487
- # range of models with different capabilities, performance characteristics, and
488
- # price points. Refer to the
484
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
485
+ # wide range of models with different capabilities, performance characteristics,
486
+ # and price points. Refer to the
489
487
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
490
488
  # compare available models.
491
489
  # @param moderation
@@ -35,8 +35,7 @@ module OpenAI
35
35
  attr_accessor object: :"chat.completion"
36
36
 
37
37
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
38
- # for storing additional information about the object in a structured format, and
39
- # querying for objects via API or the dashboard.
38
+ # for storing additional information about the object in a structured format.
40
39
  #
41
40
  # Keys are strings with a maximum length of 64 characters. Values are strings with
42
41
  # a maximum length of 512 characters.
@@ -99,8 +98,7 @@ module OpenAI
99
98
  # The model used for the chat completion.
100
99
  # @param metadata
101
100
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
102
- # for storing additional information about the object in a structured format, and
103
- # querying for objects via API or the dashboard.
101
+ # for storing additional information about the object in a structured format.
104
102
  #
105
103
  # Keys are strings with a maximum length of 64 characters. Values are strings with
106
104
  # a maximum length of 512 characters.
@@ -54,9 +54,9 @@ module OpenAI
54
54
  # [audio](https://developers.openai.com/api/docs/guides/audio).
55
55
  attr_accessor messages: ::Array[OpenAI::Models::Chat::chat_completion_message_param]
56
56
 
57
- # Model ID used to generate the response, like `gpt-6-astra` or `o3`. OpenAI
58
- # offers a wide range of models with different capabilities, performance
59
- # characteristics, and price points. Refer to the
57
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
58
+ # wide range of models with different capabilities, performance characteristics,
59
+ # and price points. Refer to the
60
60
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
61
61
  # compare available models.
62
62
  attr_accessor model: OpenAI::Models::Chat::CompletionCreateParams::model
@@ -147,8 +147,7 @@ module OpenAI
147
147
  attr_accessor max_tokens: Integer?
148
148
 
149
149
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
150
- # for storing additional information about the object in a structured format, and
151
- # querying for objects via API or the dashboard.
150
+ # for storing additional information about the object in a structured format.
152
151
  #
153
152
  # Keys are strings with a maximum length of 64 characters. Values are strings with
154
153
  # a maximum length of 512 characters.
@@ -318,7 +317,7 @@ module OpenAI
318
317
  # parameter.
319
318
  attr_accessor service_tier: OpenAI::Models::Chat::CompletionCreateParams::service_tier?
320
319
 
321
- # Not supported with latest reasoning models `o3` and `o4-mini`.
320
+ # Not supported with reasoning models `o3` and `o4-mini`.
322
321
  #
323
322
  # Up to 4 sequences where the API will stop generating further tokens. The
324
323
  # returned text will not contain the stop sequence.
@@ -432,9 +431,9 @@ module OpenAI
432
431
  # [images](https://developers.openai.com/api/docs/guides/images-vision), and
433
432
  # [audio](https://developers.openai.com/api/docs/guides/audio).
434
433
  # @param model
435
- # Model ID used to generate the response, like `gpt-6-astra` or `o3`. OpenAI
436
- # offers a wide range of models with different capabilities, performance
437
- # characteristics, and price points. Refer to the
434
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
435
+ # wide range of models with different capabilities, performance characteristics,
436
+ # and price points. Refer to the
438
437
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
439
438
  # compare available models.
440
439
  # @param audio
@@ -491,8 +490,7 @@ module OpenAI
491
490
  # [o-series models](https://developers.openai.com/api/docs/guides/reasoning).
492
491
  # @param metadata
493
492
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
494
- # for storing additional information about the object in a structured format, and
495
- # querying for objects via API or the dashboard.
493
+ # for storing additional information about the object in a structured format.
496
494
  #
497
495
  # Keys are strings with a maximum length of 64 characters. Values are strings with
498
496
  # a maximum length of 512 characters.
@@ -615,7 +613,7 @@ module OpenAI
615
613
  # request. This response value may be different from the value set in the
616
614
  # parameter.
617
615
  # @param stop
618
- # Not supported with latest reasoning models `o3` and `o4-mini`.
616
+ # Not supported with reasoning models `o3` and `o4-mini`.
619
617
  #
620
618
  # Up to 4 sequences where the API will stop generating further tokens. The
621
619
  # returned text will not contain the stop sequence.
@@ -15,8 +15,7 @@ module OpenAI
15
15
  attr_accessor completion_id: String
16
16
 
17
17
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
18
- # for storing additional information about the object in a structured format, and
19
- # querying for objects via API or the dashboard.
18
+ # for storing additional information about the object in a structured format.
20
19
  #
21
20
  # Keys are strings with a maximum length of 64 characters. Values are strings with
22
21
  # a maximum length of 512 characters.
@@ -24,8 +23,7 @@ module OpenAI
24
23
 
25
24
  # @param metadata
26
25
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
27
- # for storing additional information about the object in a structured format, and
28
- # querying for objects via API or the dashboard.
26
+ # for storing additional information about the object in a structured format.
29
27
  #
30
28
  # Keys are strings with a maximum length of 64 characters. Values are strings with
31
29
  # a maximum length of 512 characters.
@@ -117,7 +117,7 @@ module OpenAI
117
117
  # response parameter to monitor changes in the backend.
118
118
  attr_accessor seed: Integer?
119
119
 
120
- # Not supported with latest reasoning models `o3` and `o4-mini`.
120
+ # Not supported with reasoning models `o3` and `o4-mini`.
121
121
  #
122
122
  # Up to 4 sequences where the API will stop generating further tokens. The
123
123
  # returned text will not contain the stop sequence.
@@ -236,7 +236,7 @@ module OpenAI
236
236
  # Determinism is not guaranteed, and you should refer to the `system_fingerprint`
237
237
  # response parameter to monitor changes in the backend.
238
238
  # @param stop
239
- # Not supported with latest reasoning models `o3` and `o4-mini`.
239
+ # Not supported with reasoning models `o3` and `o4-mini`.
240
240
  #
241
241
  # Up to 4 sequences where the API will stop generating further tokens. The
242
242
  # returned text will not contain the stop sequence.
@@ -5,6 +5,7 @@ module OpenAI
5
5
  {
6
6
  ?items: ::Array[OpenAI::Models::Responses::response_input_item]?,
7
7
  ?metadata: OpenAI::Models::metadata?,
8
+ ?safety_identifier: String?,
8
9
  ?request_options: OpenAI::request_opts
9
10
  }
10
11
 
@@ -17,32 +18,37 @@ module OpenAI
17
18
  attr_accessor items: ::Array[OpenAI::Models::Responses::response_input_item]?
18
19
 
19
20
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
20
- # for storing additional information about the object in a structured format, and
21
- # querying for objects via API or the dashboard.
21
+ # for storing additional information about the object in a structured format.
22
22
  #
23
23
  # Keys are strings with a maximum length of 64 characters. Values are strings with
24
24
  # a maximum length of 512 characters.
25
25
  attr_accessor metadata: OpenAI::Models::metadata?
26
26
 
27
+ # A stable identifier used for safety monitoring and abuse detection.
28
+ attr_accessor safety_identifier: String?
29
+
27
30
  # @param items
28
31
  # Initial items to include in the conversation context. You may add up to 20 items
29
32
  # at a time.
30
33
  # @param metadata
31
34
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
32
- # for storing additional information about the object in a structured format, and
33
- # querying for objects via API or the dashboard.
35
+ # for storing additional information about the object in a structured format.
34
36
  #
35
37
  # Keys are strings with a maximum length of 64 characters. Values are strings with
36
38
  # a maximum length of 512 characters.
39
+ # @param safety_identifier
40
+ # A stable identifier used for safety monitoring and abuse detection.
37
41
  def initialize: (
38
42
  ?items: ::Array[OpenAI::Models::Responses::response_input_item]?,
39
43
  ?metadata: OpenAI::Models::metadata?,
44
+ ?safety_identifier: String?,
40
45
  ?request_options: OpenAI::request_opts
41
46
  ) -> void
42
47
 
43
48
  def to_hash: -> {
44
49
  ?items: ::Array[OpenAI::Models::Responses::response_input_item]?,
45
50
  ?metadata: OpenAI::Models::metadata?,
51
+ ?safety_identifier: String?,
46
52
  ?request_options: OpenAI::RequestOptions
47
53
  }
48
54
  end