openai 0.97.0 → 0.99.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 (244) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +31 -0
  3. data/README.md +76 -1
  4. data/lib/openai/helpers/agents/session_stream.rb +60 -3
  5. data/lib/openai/helpers/beta/agents/artifacts.rb +72 -0
  6. data/lib/openai/helpers/beta/agents/creation_stream.rb +69 -0
  7. data/lib/openai/helpers/beta/agents/files.rb +236 -0
  8. data/lib/openai/helpers/beta/agents/function_tool.rb +65 -0
  9. data/lib/openai/helpers/beta/agents/model_adapter.rb +27 -0
  10. data/lib/openai/helpers/beta/agents/result.rb +170 -0
  11. data/lib/openai/helpers/beta/agents/typed_output.rb +191 -0
  12. data/lib/openai/helpers/live/websocket.rb +7 -1
  13. data/lib/openai/helpers/realtime/conversation_item_variant_resolver.rb +1 -1
  14. data/lib/openai/helpers/responses_websocket/connection.rb +7 -1
  15. data/lib/openai/helpers/responses_websocket/session.rb +5 -1
  16. data/lib/openai/helpers/responses_websocket/transports/async_websocket.rb +12 -2
  17. data/lib/openai/internal/transport/base_client.rb +18 -0
  18. data/lib/openai/internal/type/array_of.rb +1 -1
  19. data/lib/openai/internal/type/base_model.rb +6 -3
  20. data/lib/openai/internal/type/converter.rb +50 -3
  21. data/lib/openai/internal/type/hash_of.rb +1 -1
  22. data/lib/openai/internal/type/union.rb +6 -6
  23. data/lib/openai/models/admin/organization/usage_audio_speeches_response.rb +16 -3
  24. data/lib/openai/models/admin/organization/usage_audio_transcriptions_response.rb +16 -3
  25. data/lib/openai/models/admin/organization/usage_code_interpreter_sessions_response.rb +16 -3
  26. data/lib/openai/models/admin/organization/usage_completions_response.rb +16 -3
  27. data/lib/openai/models/admin/organization/usage_costs_response.rb +16 -3
  28. data/lib/openai/models/admin/organization/usage_embeddings_response.rb +16 -3
  29. data/lib/openai/models/admin/organization/usage_file_search_calls_response.rb +16 -3
  30. data/lib/openai/models/admin/organization/usage_images_response.rb +16 -3
  31. data/lib/openai/models/admin/organization/usage_moderations_response.rb +16 -3
  32. data/lib/openai/models/admin/organization/usage_vector_stores_response.rb +16 -3
  33. data/lib/openai/models/admin/organization/usage_web_search_calls_response.rb +16 -3
  34. data/lib/openai/models/all_models.rb +42 -0
  35. data/lib/openai/models/audio/speech_create_params.rb +6 -0
  36. data/lib/openai/models/audio/voice.rb +75 -0
  37. data/lib/openai/models/audio/voice_create_params.rb +217 -0
  38. data/lib/openai/models/beta/agent_create_params.rb +0 -3
  39. data/lib/openai/models/beta/agent_update_params.rb +0 -3
  40. data/lib/openai/models/beta/agents/session_create_params.rb +0 -3
  41. data/lib/openai/models/beta/agents/session_update_params.rb +0 -3
  42. data/lib/openai/models/beta/agents/sessions/session_trace.rb +64 -0
  43. data/lib/openai/models/beta/agents/sessions/trace_list_params.rb +68 -0
  44. data/lib/openai/models/beta/agents/vaults/credential.rb +8 -4
  45. data/lib/openai/models/beta/beta_response.rb +220 -0
  46. data/lib/openai/models/beta/beta_response_output_text.rb +2 -2
  47. data/lib/openai/models/beta/beta_response_output_text_annotation_added_event.rb +2 -2
  48. data/lib/openai/models/beta/beta_responses_client_event.rb +220 -0
  49. data/lib/openai/models/beta/beta_tool.rb +3 -9
  50. data/lib/openai/models/beta/environment.rb +33 -1
  51. data/lib/openai/models/beta/environment_param.rb +24 -1
  52. data/lib/openai/models/beta/response_compact_params.rb +220 -0
  53. data/lib/openai/models/beta/response_create_params.rb +220 -0
  54. data/lib/openai/models/beta/session_turn_error.rb +3 -0
  55. data/lib/openai/models/chat/chat_completion_audio_param.rb +6 -3
  56. data/lib/openai/models/chat/chat_completion_content_part_image.rb +1 -0
  57. data/lib/openai/models/chat_model.rb +178 -0
  58. data/lib/openai/models/image.rb +14 -14
  59. data/lib/openai/models/image_create_variation_params.rb +7 -7
  60. data/lib/openai/models/image_edit_params.rb +76 -87
  61. data/lib/openai/models/image_generate_params.rb +51 -62
  62. data/lib/openai/models/image_model.rb +5 -3
  63. data/lib/openai/models/live/fork_server_event.rb +14 -3
  64. data/lib/openai/models/live/server_event.rb +14 -3
  65. data/lib/openai/models/realtime/realtime_audio_config_output.rb +9 -6
  66. data/lib/openai/models/realtime/realtime_response_create_audio_output.rb +9 -6
  67. data/lib/openai/models/realtime/translations/client_secret_create_params.rb +28 -0
  68. data/lib/openai/models/responses/response_compact_params.rb +220 -0
  69. data/lib/openai/models/responses/response_output_text.rb +2 -2
  70. data/lib/openai/models/responses/response_output_text_annotation_added_event.rb +2 -2
  71. data/lib/openai/models/responses/tool.rb +3 -9
  72. data/lib/openai/models/responses_model.rb +42 -0
  73. data/lib/openai/models/webhooks/agent_session_action_required_webhook_event.rb +109 -0
  74. data/lib/openai/models/webhooks/agent_session_created_webhook_event.rb +106 -0
  75. data/lib/openai/models/webhooks/agent_session_failed_webhook_event.rb +86 -0
  76. data/lib/openai/models/webhooks/agent_session_idle_webhook_event.rb +86 -0
  77. data/lib/openai/models/webhooks/agent_session_in_progress_webhook_event.rb +86 -0
  78. data/lib/openai/models/webhooks/unwrap_webhook_event.rb +18 -2
  79. data/lib/openai/models/webhooks/webhook_create_params.rb +5 -0
  80. data/lib/openai/models/webhooks/webhook_test_params.rb +5 -0
  81. data/lib/openai/models/webhooks/webhook_update_params.rb +5 -0
  82. data/lib/openai/resources/audio/speech.rb +2 -0
  83. data/lib/openai/resources/audio/voices.rb +53 -0
  84. data/lib/openai/resources/audio.rb +5 -0
  85. data/lib/openai/resources/beta/agents/environments/files.rb +31 -0
  86. data/lib/openai/resources/beta/agents/sessions/artifacts.rb +8 -0
  87. data/lib/openai/resources/beta/agents/sessions/events.rb +6 -5
  88. data/lib/openai/resources/beta/agents/sessions/traces.rb +58 -0
  89. data/lib/openai/resources/beta/agents/sessions.rb +18 -5
  90. data/lib/openai/resources/evals/runs.rb +1 -1
  91. data/lib/openai/resources/images.rb +71 -103
  92. data/lib/openai/resources/realtime/translations/client_secrets.rb +58 -0
  93. data/lib/openai/resources/realtime/translations.rb +20 -0
  94. data/lib/openai/resources/realtime.rb +4 -0
  95. data/lib/openai/resources/webhooks.rb +1 -1
  96. data/lib/openai/version.rb +1 -1
  97. data/lib/openai.rb +17 -1
  98. data/rbi/openai/helpers/agents.rbi +20 -1
  99. data/rbi/openai/helpers/beta/agents/artifacts.rbi +29 -0
  100. data/rbi/openai/helpers/beta/agents/files.rbi +65 -0
  101. data/rbi/openai/helpers/beta/agents/function_tool.rbi +40 -0
  102. data/rbi/openai/helpers/beta/agents/model_adapter.rbi +22 -0
  103. data/rbi/openai/helpers/beta/agents.rbi +146 -0
  104. data/rbi/openai/internal/transport/base_client.rbi +12 -0
  105. data/rbi/openai/internal/type/base_model.rbi +2 -2
  106. data/rbi/openai/internal/type/converter.rbi +21 -3
  107. data/rbi/openai/internal/type/union.rbi +6 -2
  108. data/rbi/openai/models/admin/organization/usage_audio_speeches_response.rbi +19 -2
  109. data/rbi/openai/models/admin/organization/usage_audio_transcriptions_response.rbi +19 -2
  110. data/rbi/openai/models/admin/organization/usage_code_interpreter_sessions_response.rbi +19 -2
  111. data/rbi/openai/models/admin/organization/usage_completions_response.rbi +19 -2
  112. data/rbi/openai/models/admin/organization/usage_costs_response.rbi +19 -2
  113. data/rbi/openai/models/admin/organization/usage_embeddings_response.rbi +19 -2
  114. data/rbi/openai/models/admin/organization/usage_file_search_calls_response.rbi +19 -2
  115. data/rbi/openai/models/admin/organization/usage_images_response.rbi +19 -2
  116. data/rbi/openai/models/admin/organization/usage_moderations_response.rbi +19 -2
  117. data/rbi/openai/models/admin/organization/usage_vector_stores_response.rbi +19 -2
  118. data/rbi/openai/models/admin/organization/usage_web_search_calls_response.rbi +19 -2
  119. data/rbi/openai/models/audio/speech_create_params.rbi +6 -0
  120. data/rbi/openai/models/audio/voice.rbi +111 -0
  121. data/rbi/openai/models/audio/voice_create_params.rbi +321 -0
  122. data/rbi/openai/models/beta/agent_create_params.rbi +0 -3
  123. data/rbi/openai/models/beta/agent_update_params.rbi +0 -3
  124. data/rbi/openai/models/beta/agents/session_create_params.rbi +0 -3
  125. data/rbi/openai/models/beta/agents/session_update_params.rbi +0 -3
  126. data/rbi/openai/models/beta/agents/sessions/session_trace.rbi +97 -0
  127. data/rbi/openai/models/beta/agents/sessions/trace_list_params.rbi +121 -0
  128. data/rbi/openai/models/beta/agents/vaults/credential.rbi +5 -5
  129. data/rbi/openai/models/beta/beta_response_output_text.rbi +2 -2
  130. data/rbi/openai/models/beta/beta_response_output_text_annotation_added_event.rbi +2 -2
  131. data/rbi/openai/models/beta/beta_tool.rbi +3 -9
  132. data/rbi/openai/models/beta/environment.rbi +29 -0
  133. data/rbi/openai/models/beta/environment_param.rbi +31 -0
  134. data/rbi/openai/models/beta/session_turn_error.rbi +3 -0
  135. data/rbi/openai/models/chat/chat_completion_audio_param.rbi +6 -3
  136. data/rbi/openai/models/chat/chat_completion_content_part_image.rbi +1 -0
  137. data/rbi/openai/models/image.rbi +14 -14
  138. data/rbi/openai/models/image_create_variation_params.rbi +6 -6
  139. data/rbi/openai/models/image_edit_params.rbi +61 -82
  140. data/rbi/openai/models/image_generate_params.rbi +30 -61
  141. data/rbi/openai/models/image_model.rbi +3 -3
  142. data/rbi/openai/models/live/fork_server_event.rbi +14 -2
  143. data/rbi/openai/models/live/server_event.rbi +14 -2
  144. data/rbi/openai/models/realtime/realtime_audio_config_output.rbi +9 -6
  145. data/rbi/openai/models/realtime/realtime_response_create_audio_output.rbi +9 -6
  146. data/rbi/openai/models/realtime/translations/client_secret_create_params.rbi +68 -0
  147. data/rbi/openai/models/responses/response_output_text.rbi +2 -2
  148. data/rbi/openai/models/responses/response_output_text_annotation_added_event.rbi +2 -2
  149. data/rbi/openai/models/responses/tool.rbi +3 -9
  150. data/rbi/openai/models/webhooks/agent_session_action_required_webhook_event.rbi +222 -0
  151. data/rbi/openai/models/webhooks/agent_session_created_webhook_event.rbi +202 -0
  152. data/rbi/openai/models/webhooks/agent_session_failed_webhook_event.rbi +151 -0
  153. data/rbi/openai/models/webhooks/agent_session_idle_webhook_event.rbi +151 -0
  154. data/rbi/openai/models/webhooks/agent_session_in_progress_webhook_event.rbi +151 -0
  155. data/rbi/openai/models/webhooks/unwrap_webhook_event.rbi +7 -1
  156. data/rbi/openai/models/webhooks/webhook_create_params.rbi +20 -0
  157. data/rbi/openai/models/webhooks/webhook_test_params.rbi +20 -0
  158. data/rbi/openai/models/webhooks/webhook_update_params.rbi +20 -0
  159. data/rbi/openai/resources/audio/speech.rbi +2 -0
  160. data/rbi/openai/resources/audio/voices.rbi +49 -0
  161. data/rbi/openai/resources/audio.rbi +4 -0
  162. data/rbi/openai/resources/beta/agents/environments/files.rbi +31 -0
  163. data/rbi/openai/resources/beta/agents/sessions/artifacts.rbi +8 -0
  164. data/rbi/openai/resources/beta/agents/sessions/events.rbi +6 -5
  165. data/rbi/openai/resources/beta/agents/sessions/traces.rbi +54 -0
  166. data/rbi/openai/resources/beta/agents/sessions.rbi +6 -1
  167. data/rbi/openai/resources/images.rbi +69 -103
  168. data/rbi/openai/resources/realtime/translations/client_secrets.rbi +54 -0
  169. data/rbi/openai/resources/realtime/translations.rbi +22 -0
  170. data/rbi/openai/resources/realtime.rbi +3 -0
  171. data/rbi/openai/resources/webhooks.rbi +5 -0
  172. data/sig/openai/helpers/agents.rbs +7 -0
  173. data/sig/openai/helpers/beta/agents/artifacts.rbs +20 -0
  174. data/sig/openai/helpers/beta/agents/files.rbs +41 -0
  175. data/sig/openai/helpers/beta/agents/function_tool.rbs +24 -0
  176. data/sig/openai/helpers/beta/agents/model_adapter.rbs +16 -0
  177. data/sig/openai/helpers/beta/agents.rbs +71 -0
  178. data/sig/openai/helpers/structured_output.rbs +12 -0
  179. data/sig/openai/internal/transport/base_client.rbs +8 -0
  180. data/sig/openai/internal/type/base_model.rbs +3 -1
  181. data/sig/openai/internal/type/converter.rbs +16 -2
  182. data/sig/openai/internal/type/union.rbs +2 -1
  183. data/sig/openai/models/admin/organization/usage_audio_speeches_response.rbs +20 -3
  184. data/sig/openai/models/admin/organization/usage_audio_transcriptions_response.rbs +20 -3
  185. data/sig/openai/models/admin/organization/usage_code_interpreter_sessions_response.rbs +20 -3
  186. data/sig/openai/models/admin/organization/usage_completions_response.rbs +20 -3
  187. data/sig/openai/models/admin/organization/usage_costs_response.rbs +20 -3
  188. data/sig/openai/models/admin/organization/usage_embeddings_response.rbs +20 -3
  189. data/sig/openai/models/admin/organization/usage_file_search_calls_response.rbs +20 -3
  190. data/sig/openai/models/admin/organization/usage_images_response.rbs +20 -3
  191. data/sig/openai/models/admin/organization/usage_moderations_response.rbs +20 -3
  192. data/sig/openai/models/admin/organization/usage_vector_stores_response.rbs +20 -3
  193. data/sig/openai/models/admin/organization/usage_web_search_calls_response.rbs +20 -3
  194. data/sig/openai/models/audio/speech_create_params.rbs +4 -0
  195. data/sig/openai/models/audio/voice.rbs +70 -0
  196. data/sig/openai/models/audio/voice_create_params.rbs +203 -0
  197. data/sig/openai/models/beta/agent_create_params.rbs +1 -5
  198. data/sig/openai/models/beta/agent_update_params.rbs +1 -5
  199. data/sig/openai/models/beta/agents/session_create_params.rbs +1 -5
  200. data/sig/openai/models/beta/agents/session_update_params.rbs +1 -5
  201. data/sig/openai/models/beta/agents/sessions/session_trace.rbs +65 -0
  202. data/sig/openai/models/beta/agents/sessions/trace_list_params.rbs +81 -0
  203. data/sig/openai/models/beta/agents/vaults/credential.rbs +5 -5
  204. data/sig/openai/models/beta/beta_response_output_text.rbs +2 -2
  205. data/sig/openai/models/beta/beta_response_output_text_annotation_added_event.rbs +2 -2
  206. data/sig/openai/models/beta/beta_tool.rbs +3 -9
  207. data/sig/openai/models/beta/environment.rbs +22 -0
  208. data/sig/openai/models/beta/environment_param.rbs +25 -0
  209. data/sig/openai/models/beta/session_turn_error.rbs +4 -0
  210. data/sig/openai/models/chat/chat_completion_audio_param.rbs +4 -2
  211. data/sig/openai/models/chat/chat_completion_content_part_image.rbs +2 -1
  212. data/sig/openai/models/image.rbs +21 -21
  213. data/sig/openai/models/image_create_variation_params.rbs +4 -4
  214. data/sig/openai/models/image_edit_params.rbs +46 -60
  215. data/sig/openai/models/image_generate_params.rbs +23 -45
  216. data/sig/openai/models/image_model.rbs +6 -6
  217. data/sig/openai/models/live/fork_server_event.rbs +17 -2
  218. data/sig/openai/models/live/server_event.rbs +17 -2
  219. data/sig/openai/models/realtime/realtime_audio_config_output.rbs +9 -6
  220. data/sig/openai/models/realtime/realtime_response_create_audio_output.rbs +9 -6
  221. data/sig/openai/models/realtime/translations/client_secret_create_params.rbs +39 -0
  222. data/sig/openai/models/responses/response_output_text.rbs +2 -2
  223. data/sig/openai/models/responses/response_output_text_annotation_added_event.rbs +2 -2
  224. data/sig/openai/models/responses/tool.rbs +3 -9
  225. data/sig/openai/models/webhooks/agent_session_action_required_webhook_event.rbs +114 -0
  226. data/sig/openai/models/webhooks/agent_session_created_webhook_event.rbs +115 -0
  227. data/sig/openai/models/webhooks/agent_session_failed_webhook_event.rbs +89 -0
  228. data/sig/openai/models/webhooks/agent_session_idle_webhook_event.rbs +89 -0
  229. data/sig/openai/models/webhooks/agent_session_in_progress_webhook_event.rbs +89 -0
  230. data/sig/openai/models/webhooks/unwrap_webhook_event.rbs +6 -1
  231. data/sig/openai/models/webhooks/webhook_create_params.rbs +10 -0
  232. data/sig/openai/models/webhooks/webhook_test_params.rbs +10 -0
  233. data/sig/openai/models/webhooks/webhook_update_params.rbs +10 -0
  234. data/sig/openai/resources/audio/voices.rbs +14 -0
  235. data/sig/openai/resources/audio.rbs +2 -0
  236. data/sig/openai/resources/beta/agents/environments/files.rbs +17 -0
  237. data/sig/openai/resources/beta/agents/sessions/artifacts.rbs +4 -0
  238. data/sig/openai/resources/beta/agents/sessions/traces.rbs +21 -0
  239. data/sig/openai/resources/beta/agents/sessions.rbs +4 -1
  240. data/sig/openai/resources/realtime/translations/client_secrets.rbs +17 -0
  241. data/sig/openai/resources/realtime/translations.rbs +11 -0
  242. data/sig/openai/resources/realtime.rbs +2 -0
  243. data/sig/openai/resources/webhooks.rbs +6 -1
  244. metadata +61 -1
@@ -23,8 +23,7 @@ module OpenAI
23
23
  include OpenAI::Internal::Type::RequestParameters
24
24
 
25
25
  # A text description of the desired image(s). The maximum length is 32000
26
- # characters for the GPT image models, 1000 characters for `dall-e-2` and 4000
27
- # characters for `dall-e-3`.
26
+ # characters.
28
27
  attr_accessor prompt: String
29
28
 
30
29
  # Allows to set transparency for the background of the generated image(s). Must be
@@ -38,12 +37,11 @@ module OpenAI
38
37
  # set the output format to `png` or `webp`.
39
38
  attr_accessor background: OpenAI::Models::ImageGenerateParams::background?
40
39
 
41
- # The model to use for image generation. One of `dall-e-2`, `dall-e-3`, or a GPT
42
- # image model (`gpt-image-1`, `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
43
- # `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
40
+ # The GPT image model to use for image generation. Specify a model explicitly.
41
+ # Supported models include `gpt-image-1`, `gpt-image-1-mini`, `gpt-image-1.5`,
42
+ # `gpt-image-2`, `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
44
43
  # `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
45
- # `gpt-image-2.5-flare-2026-09-08`). Defaults to `dall-e-2` unless a parameter
46
- # specific to the GPT image models is used.
44
+ # `gpt-image-2.5-flare-2026-09-08`, and `chatgpt-image-latest`.
47
45
  attr_accessor model: OpenAI::Models::ImageGenerateParams::model?
48
46
 
49
47
  # Control the content-moderation level for images generated by the GPT image
@@ -51,8 +49,7 @@ module OpenAI
51
49
  # value).
52
50
  attr_accessor moderation: OpenAI::Models::ImageGenerateParams::moderation?
53
51
 
54
- # The number of images to generate. Must be between 1 and 10. For `dall-e-3`, only
55
- # `n=1` is supported.
52
+ # The number of images to generate. Must be between 1 and 10.
56
53
  attr_accessor n: Integer?
57
54
 
58
55
  # The compression level (0-100%) for the generated images. This parameter is only
@@ -79,13 +76,9 @@ module OpenAI
79
76
  # - `high`, `medium` and `low` are supported for the GPT image models.
80
77
  # - `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their
81
78
  # `2026-09-08` snapshots, also support `xhigh` and `max`.
82
- # - `hd` and `standard` are supported for `dall-e-3`.
83
- # - `standard` is the only option for `dall-e-2`.
84
79
  attr_accessor quality: OpenAI::Models::ImageGenerateParams::quality?
85
80
 
86
- # The format in which generated images with `dall-e-2` and `dall-e-3` are
87
- # returned. Must be one of `url` or `b64_json`. URLs are only valid for 60 minutes
88
- # after the image has been generated. This parameter isn't supported for the GPT
81
+ # Legacy response format parameter for retired image models. Unsupported for GPT
89
82
  # image models, which always return base64-encoded images.
90
83
  attr_accessor response_format: OpenAI::Models::ImageGenerateParams::response_format?
91
84
 
@@ -98,15 +91,11 @@ module OpenAI
98
91
  # the maximum supported resolution is `3840x2160`. The requested size must also
99
92
  # satisfy the model's current pixel and edge limits. The standard sizes
100
93
  # `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models;
101
- # `auto` is supported for models that allow automatic sizing. For `dall-e-2`, use
102
- # one of `256x256`, `512x512`, or `1024x1024`. For `dall-e-3`, use one of
103
- # `1024x1024`, `1792x1024`, or `1024x1792`.
94
+ # `auto` is supported for models that allow automatic sizing.
104
95
  attr_accessor size: OpenAI::Models::ImageGenerateParams::size?
105
96
 
106
- # The style of the generated images. This parameter is only supported for
107
- # `dall-e-3`. Must be one of `vivid` or `natural`. Vivid causes the model to lean
108
- # towards generating hyper-real and dramatic images. Natural causes the model to
109
- # produce more natural, less hyper-real looking images.
97
+ # Legacy style parameter for retired image models. Unsupported for GPT image
98
+ # models; describe the desired style in the prompt instead.
110
99
  attr_accessor style: OpenAI::Models::ImageGenerateParams::style?
111
100
 
112
101
  # A unique identifier representing your end-user, which can help OpenAI to monitor
@@ -121,8 +110,7 @@ module OpenAI
121
110
 
122
111
  # @param prompt
123
112
  # A text description of the desired image(s). The maximum length is 32000
124
- # characters for the GPT image models, 1000 characters for `dall-e-2` and 4000
125
- # characters for `dall-e-3`.
113
+ # characters.
126
114
  # @param background
127
115
  # Allows to set transparency for the background of the generated image(s). Must be
128
116
  # one of `transparent`, `opaque`, or `auto` (default value). When `auto` is used,
@@ -134,19 +122,17 @@ module OpenAI
134
122
  # `gpt-image-2-2026-04-21`, this support is in preview. When using `transparent`,
135
123
  # set the output format to `png` or `webp`.
136
124
  # @param model
137
- # The model to use for image generation. One of `dall-e-2`, `dall-e-3`, or a GPT
138
- # image model (`gpt-image-1`, `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
139
- # `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
125
+ # The GPT image model to use for image generation. Specify a model explicitly.
126
+ # Supported models include `gpt-image-1`, `gpt-image-1-mini`, `gpt-image-1.5`,
127
+ # `gpt-image-2`, `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
140
128
  # `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
141
- # `gpt-image-2.5-flare-2026-09-08`). Defaults to `dall-e-2` unless a parameter
142
- # specific to the GPT image models is used.
129
+ # `gpt-image-2.5-flare-2026-09-08`, and `chatgpt-image-latest`.
143
130
  # @param moderation
144
131
  # Control the content-moderation level for images generated by the GPT image
145
132
  # models. Must be either `low` for less restrictive filtering or `auto` (default
146
133
  # value).
147
134
  # @param n
148
- # The number of images to generate. Must be between 1 and 10. For `dall-e-3`, only
149
- # `n=1` is supported.
135
+ # The number of images to generate. Must be between 1 and 10.
150
136
  # @param output_compression
151
137
  # The compression level (0-100%) for the generated images. This parameter is only
152
138
  # supported for the GPT image models with the `webp` or `jpeg` output formats, and
@@ -169,12 +155,8 @@ module OpenAI
169
155
  # - `high`, `medium` and `low` are supported for the GPT image models.
170
156
  # - `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their
171
157
  # `2026-09-08` snapshots, also support `xhigh` and `max`.
172
- # - `hd` and `standard` are supported for `dall-e-3`.
173
- # - `standard` is the only option for `dall-e-2`.
174
158
  # @param response_format
175
- # The format in which generated images with `dall-e-2` and `dall-e-3` are
176
- # returned. Must be one of `url` or `b64_json`. URLs are only valid for 60 minutes
177
- # after the image has been generated. This parameter isn't supported for the GPT
159
+ # Legacy response format parameter for retired image models. Unsupported for GPT
178
160
  # image models, which always return base64-encoded images.
179
161
  # @param size
180
162
  # The size of the generated images. For `gpt-image-2`, `gpt-image-2-2026-04-21`,
@@ -186,14 +168,10 @@ module OpenAI
186
168
  # the maximum supported resolution is `3840x2160`. The requested size must also
187
169
  # satisfy the model's current pixel and edge limits. The standard sizes
188
170
  # `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models;
189
- # `auto` is supported for models that allow automatic sizing. For `dall-e-2`, use
190
- # one of `256x256`, `512x512`, or `1024x1024`. For `dall-e-3`, use one of
191
- # `1024x1024`, `1792x1024`, or `1024x1792`.
171
+ # `auto` is supported for models that allow automatic sizing.
192
172
  # @param style
193
- # The style of the generated images. This parameter is only supported for
194
- # `dall-e-3`. Must be one of `vivid` or `natural`. Vivid causes the model to lean
195
- # towards generating hyper-real and dramatic images. Natural causes the model to
196
- # produce more natural, less hyper-real looking images.
173
+ # Legacy style parameter for retired image models. Unsupported for GPT image
174
+ # models; describe the desired style in the prompt instead.
197
175
  # @param user
198
176
  # A unique identifier representing your end-user, which can help OpenAI to monitor
199
177
  # and detect abuse.
@@ -276,19 +254,19 @@ module OpenAI
276
254
  end
277
255
 
278
256
  type quality =
279
- :standard | :hd | :low | :medium | :high | :xhigh | :max | :auto
257
+ :low | :medium | :high | :xhigh | :max | :auto | :standard | :hd
280
258
 
281
259
  module Quality
282
260
  extend OpenAI::Internal::Type::Enum
283
261
 
284
- STANDARD: :standard
285
- HD: :hd
286
262
  LOW: :low
287
263
  MEDIUM: :medium
288
264
  HIGH: :high
289
265
  XHIGH: :xhigh
290
266
  MAX: :max
291
267
  AUTO: :auto
268
+ STANDARD: :standard
269
+ HD: :hd
292
270
 
293
271
  def self?.values: -> ::Array[OpenAI::Models::ImageGenerateParams::quality]
294
272
  end
@@ -1,15 +1,15 @@
1
1
  module OpenAI
2
2
  module Models
3
3
  type image_model =
4
- :"gpt-image-1"
5
- | :"gpt-image-1-mini"
4
+ :"gpt-image-1.5"
6
5
  | :"gpt-image-2"
7
6
  | :"gpt-image-2-2026-04-21"
8
7
  | :"gpt-image-2.5-sunburst"
9
8
  | :"gpt-image-2.5-sunburst-2026-09-08"
10
9
  | :"gpt-image-2.5-flare"
11
10
  | :"gpt-image-2.5-flare-2026-09-08"
12
- | :"gpt-image-1.5"
11
+ | :"gpt-image-1"
12
+ | :"gpt-image-1-mini"
13
13
  | :"chatgpt-image-latest"
14
14
  | :"dall-e-2"
15
15
  | :"dall-e-3"
@@ -17,15 +17,15 @@ module OpenAI
17
17
  module ImageModel
18
18
  extend OpenAI::Internal::Type::Enum
19
19
 
20
- GPT_IMAGE_1: :"gpt-image-1"
21
- GPT_IMAGE_1_MINI: :"gpt-image-1-mini"
20
+ GPT_IMAGE_1_5: :"gpt-image-1.5"
22
21
  GPT_IMAGE_2: :"gpt-image-2"
23
22
  GPT_IMAGE_2_2026_04_21: :"gpt-image-2-2026-04-21"
24
23
  GPT_IMAGE_2_5_SUNBURST: :"gpt-image-2.5-sunburst"
25
24
  GPT_IMAGE_2_5_SUNBURST_2026_09_08: :"gpt-image-2.5-sunburst-2026-09-08"
26
25
  GPT_IMAGE_2_5_FLARE: :"gpt-image-2.5-flare"
27
26
  GPT_IMAGE_2_5_FLARE_2026_09_08: :"gpt-image-2.5-flare-2026-09-08"
28
- GPT_IMAGE_1_5: :"gpt-image-1.5"
27
+ GPT_IMAGE_1: :"gpt-image-1"
28
+ GPT_IMAGE_1_MINI: :"gpt-image-1-mini"
29
29
  CHATGPT_IMAGE_LATEST: :"chatgpt-image-latest"
30
30
  DALL_E_2: :"dall-e-2"
31
31
  DALL_E_3: :"dall-e-3"
@@ -81,7 +81,12 @@ module OpenAI
81
81
  end
82
82
 
83
83
  type transport_dtmf_send =
84
- { event: String, event_id: String, ?type: :"transport.dtmf.send" }
84
+ {
85
+ event: String,
86
+ event_id: String,
87
+ ?type: :"transport.dtmf.send",
88
+ ?client_event_id: String
89
+ }
85
90
 
86
91
  class TransportDtmfSend < OpenAI::Internal::Type::BaseModel
87
92
  attr_accessor event: String
@@ -90,16 +95,26 @@ module OpenAI
90
95
 
91
96
  attr_accessor type: :"transport.dtmf.send"
92
97
 
98
+ # The event_id of the client command, when supplied.
99
+ attr_reader client_event_id: String?
100
+
101
+ # The event_id of the client command, when supplied.
102
+ def client_event_id=: (String) -> String
103
+
104
+ # @param client_event_id
105
+ # The event_id of the client command, when supplied.
93
106
  def initialize: (
94
107
  event: String,
95
108
  event_id: String,
109
+ ?client_event_id: String,
96
110
  ?type: :"transport.dtmf.send"
97
111
  ) -> void
98
112
 
99
113
  def to_hash: -> {
100
114
  event: String,
101
115
  event_id: String,
102
- ?type: :"transport.dtmf.send"
116
+ ?type: :"transport.dtmf.send",
117
+ ?client_event_id: String
103
118
  }
104
119
  end
105
120
 
@@ -81,7 +81,12 @@ module OpenAI
81
81
  end
82
82
 
83
83
  type transport_dtmf_send =
84
- { event: String, event_id: String, ?type: :"transport.dtmf.send" }
84
+ {
85
+ event: String,
86
+ event_id: String,
87
+ ?type: :"transport.dtmf.send",
88
+ ?client_event_id: String
89
+ }
85
90
 
86
91
  class TransportDtmfSend < OpenAI::Internal::Type::BaseModel
87
92
  attr_accessor event: String
@@ -90,16 +95,26 @@ module OpenAI
90
95
 
91
96
  attr_accessor type: :"transport.dtmf.send"
92
97
 
98
+ # The event_id of the client command, when supplied.
99
+ attr_reader client_event_id: String?
100
+
101
+ # The event_id of the client command, when supplied.
102
+ def client_event_id=: (String) -> String
103
+
104
+ # @param client_event_id
105
+ # The event_id of the client command, when supplied.
93
106
  def initialize: (
94
107
  event: String,
95
108
  event_id: String,
109
+ ?client_event_id: String,
96
110
  ?type: :"transport.dtmf.send"
97
111
  ) -> void
98
112
 
99
113
  def to_hash: -> {
100
114
  event: String,
101
115
  event_id: String,
102
- ?type: :"transport.dtmf.send"
116
+ ?type: :"transport.dtmf.send",
117
+ ?client_event_id: String
103
118
  }
104
119
  end
105
120
 
@@ -39,16 +39,18 @@ module OpenAI
39
39
  # `ash`, `ballad`, `coral`, `echo`, `sage`, `shimmer`, `verse`, `marin`, and
40
40
  # `cedar`. You may also provide a custom voice object with an `id`, for example
41
41
  # `{ "id": "voice_1234" }`. Voice cannot be changed during the session once the
42
- # model has responded with audio at least once. We recommend `marin` and `cedar`
43
- # for best quality.
42
+ # model has responded with audio at least once. Custom voices must be created from
43
+ # audio samples. Voices created from text prompts are supported only in Live. We
44
+ # recommend `marin` and `cedar` for best quality.
44
45
  attr_reader voice: OpenAI::Models::Realtime::RealtimeAudioConfigOutput::voice?
45
46
 
46
47
  # The voice the model uses to respond. Supported built-in voices are `alloy`,
47
48
  # `ash`, `ballad`, `coral`, `echo`, `sage`, `shimmer`, `verse`, `marin`, and
48
49
  # `cedar`. You may also provide a custom voice object with an `id`, for example
49
50
  # `{ "id": "voice_1234" }`. Voice cannot be changed during the session once the
50
- # model has responded with audio at least once. We recommend `marin` and `cedar`
51
- # for best quality.
51
+ # model has responded with audio at least once. Custom voices must be created from
52
+ # audio samples. Voices created from text prompts are supported only in Live. We
53
+ # recommend `marin` and `cedar` for best quality.
52
54
  def voice=: (
53
55
  OpenAI::Models::Realtime::RealtimeAudioConfigOutput::voice
54
56
  ) -> OpenAI::Models::Realtime::RealtimeAudioConfigOutput::voice
@@ -68,8 +70,9 @@ module OpenAI
68
70
  # `ash`, `ballad`, `coral`, `echo`, `sage`, `shimmer`, `verse`, `marin`, and
69
71
  # `cedar`. You may also provide a custom voice object with an `id`, for example
70
72
  # `{ "id": "voice_1234" }`. Voice cannot be changed during the session once the
71
- # model has responded with audio at least once. We recommend `marin` and `cedar`
72
- # for best quality.
73
+ # model has responded with audio at least once. Custom voices must be created from
74
+ # audio samples. Voices created from text prompts are supported only in Live. We
75
+ # recommend `marin` and `cedar` for best quality.
73
76
  def initialize: (
74
77
  ?format_: OpenAI::Models::Realtime::realtime_audio_formats,
75
78
  ?speed: Float,
@@ -38,16 +38,18 @@ module OpenAI
38
38
  # `ash`, `ballad`, `coral`, `echo`, `sage`, `shimmer`, `verse`, `marin`, and
39
39
  # `cedar`. You may also provide a custom voice object with an `id`, for example
40
40
  # `{ "id": "voice_1234" }`. Voice cannot be changed during the session once the
41
- # model has responded with audio at least once. We recommend `marin` and `cedar`
42
- # for best quality.
41
+ # model has responded with audio at least once. Custom voices must be created from
42
+ # audio samples. Voices created from text prompts are supported only in Live. We
43
+ # recommend `marin` and `cedar` for best quality.
43
44
  attr_reader voice: OpenAI::Models::Realtime::RealtimeResponseCreateAudioOutput::Output::voice?
44
45
 
45
46
  # The voice the model uses to respond. Supported built-in voices are `alloy`,
46
47
  # `ash`, `ballad`, `coral`, `echo`, `sage`, `shimmer`, `verse`, `marin`, and
47
48
  # `cedar`. You may also provide a custom voice object with an `id`, for example
48
49
  # `{ "id": "voice_1234" }`. Voice cannot be changed during the session once the
49
- # model has responded with audio at least once. We recommend `marin` and `cedar`
50
- # for best quality.
50
+ # model has responded with audio at least once. Custom voices must be created from
51
+ # audio samples. Voices created from text prompts are supported only in Live. We
52
+ # recommend `marin` and `cedar` for best quality.
51
53
  def voice=: (
52
54
  OpenAI::Models::Realtime::RealtimeResponseCreateAudioOutput::Output::voice
53
55
  ) -> OpenAI::Models::Realtime::RealtimeResponseCreateAudioOutput::Output::voice
@@ -59,8 +61,9 @@ module OpenAI
59
61
  # `ash`, `ballad`, `coral`, `echo`, `sage`, `shimmer`, `verse`, `marin`, and
60
62
  # `cedar`. You may also provide a custom voice object with an `id`, for example
61
63
  # `{ "id": "voice_1234" }`. Voice cannot be changed during the session once the
62
- # model has responded with audio at least once. We recommend `marin` and `cedar`
63
- # for best quality.
64
+ # model has responded with audio at least once. Custom voices must be created from
65
+ # audio samples. Voices created from text prompts are supported only in Live. We
66
+ # recommend `marin` and `cedar` for best quality.
64
67
  def initialize: (
65
68
  ?format_: OpenAI::Models::Realtime::realtime_audio_formats,
66
69
  ?voice: OpenAI::Models::Realtime::RealtimeResponseCreateAudioOutput::Output::voice
@@ -0,0 +1,39 @@
1
+ module OpenAI
2
+ module Models
3
+ module Realtime
4
+ module Translations
5
+ type client_secret_create_params =
6
+ {
7
+ session: OpenAI::Realtime::RealtimeTranslationSessionCreateRequest,
8
+ ?expires_after: OpenAI::Realtime::RealtimeTranslationClientSecretCreateRequest::ExpiresAfter,
9
+ ?request_options: OpenAI::request_opts
10
+ }
11
+
12
+ class ClientSecretCreateParams < OpenAI::Models::Realtime::RealtimeTranslationClientSecretCreateRequest
13
+ extend OpenAI::Internal::Type::RequestParameters::Converter
14
+ include OpenAI::Internal::Type::RequestParameters
15
+
16
+ # @param session
17
+ # Realtime translation session configuration. Translation sessions stream source
18
+ # audio in and translated audio plus transcript deltas out continuously.
19
+ # @param expires_after
20
+ # Configuration for the client secret expiration. Expiration refers to the time
21
+ # after which a client secret will no longer be valid for creating sessions. The
22
+ # session itself may continue after that time once started. A secret can be used
23
+ # to create multiple sessions until it expires.
24
+ def initialize: (
25
+ session: OpenAI::Realtime::RealtimeTranslationSessionCreateRequest,
26
+ ?expires_after: OpenAI::Realtime::RealtimeTranslationClientSecretCreateRequest::ExpiresAfter,
27
+ ?request_options: OpenAI::request_opts
28
+ ) -> void
29
+
30
+ def to_hash: -> {
31
+ session: OpenAI::Realtime::RealtimeTranslationSessionCreateRequest,
32
+ ?expires_after: OpenAI::Realtime::RealtimeTranslationClientSecretCreateRequest::ExpiresAfter,
33
+ ?request_options: OpenAI::RequestOptions
34
+ }
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
@@ -69,7 +69,7 @@ module OpenAI
69
69
  # The filename of the file cited.
70
70
  attr_accessor filename: String
71
71
 
72
- # The index of the file in the list of files.
72
+ # The index in the output text at which to insert the file citation.
73
73
  attr_accessor index: Integer
74
74
 
75
75
  # The type of the file citation. Always `file_citation`.
@@ -80,7 +80,7 @@ module OpenAI
80
80
  # @param filename
81
81
  # The filename of the file cited.
82
82
  # @param index
83
- # The index of the file in the list of files.
83
+ # The index in the output text at which to insert the file citation.
84
84
  # @param type
85
85
  # The type of the file citation. Always `file_citation`.
86
86
  def initialize: (
@@ -92,7 +92,7 @@ module OpenAI
92
92
  # The filename of the file cited.
93
93
  attr_accessor filename: String
94
94
 
95
- # The index of the file in the list of files.
95
+ # The index in the output text at which to insert the file citation.
96
96
  attr_accessor index: Integer
97
97
 
98
98
  # The type of the file citation. Always `file_citation`.
@@ -103,7 +103,7 @@ module OpenAI
103
103
  # @param filename
104
104
  # The filename of the file cited.
105
105
  # @param index
106
- # The index of the file in the list of files.
106
+ # The index in the output text at which to insert the file citation.
107
107
  # @param type
108
108
  # The type of the file citation. Always `file_citation`.
109
109
  def initialize: (
@@ -727,9 +727,7 @@ module OpenAI
727
727
  # the maximum supported resolution is `3840x2160`. The requested size must also
728
728
  # satisfy the model's current pixel and edge limits. The standard sizes
729
729
  # `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models;
730
- # `auto` is supported for models that allow automatic sizing. For `dall-e-2`, use
731
- # one of `256x256`, `512x512`, or `1024x1024`. For `dall-e-3`, use one of
732
- # `1024x1024`, `1792x1024`, or `1024x1792`.
730
+ # `auto` is supported for models that allow automatic sizing.
733
731
  attr_reader size: OpenAI::Models::Responses::Tool::ImageGeneration::size?
734
732
 
735
733
  # The size of the generated images. For `gpt-image-2`, `gpt-image-2-2026-04-21`,
@@ -741,9 +739,7 @@ module OpenAI
741
739
  # the maximum supported resolution is `3840x2160`. The requested size must also
742
740
  # satisfy the model's current pixel and edge limits. The standard sizes
743
741
  # `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models;
744
- # `auto` is supported for models that allow automatic sizing. For `dall-e-2`, use
745
- # one of `256x256`, `512x512`, or `1024x1024`. For `dall-e-3`, use one of
746
- # `1024x1024`, `1792x1024`, or `1024x1792`.
742
+ # `auto` is supported for models that allow automatic sizing.
747
743
  def size=: (
748
744
  OpenAI::Models::Responses::Tool::ImageGeneration::size
749
745
  ) -> OpenAI::Models::Responses::Tool::ImageGeneration::size
@@ -798,9 +794,7 @@ module OpenAI
798
794
  # the maximum supported resolution is `3840x2160`. The requested size must also
799
795
  # satisfy the model's current pixel and edge limits. The standard sizes
800
796
  # `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models;
801
- # `auto` is supported for models that allow automatic sizing. For `dall-e-2`, use
802
- # one of `256x256`, `512x512`, or `1024x1024`. For `dall-e-3`, use one of
803
- # `1024x1024`, `1792x1024`, or `1024x1792`.
797
+ # `auto` is supported for models that allow automatic sizing.
804
798
  # @param type
805
799
  # The type of the image generation tool. Always `image_generation`.
806
800
  def initialize: (
@@ -0,0 +1,114 @@
1
+ module OpenAI
2
+ module Models
3
+ module Webhooks
4
+ type agent_session_action_required_webhook_event =
5
+ {
6
+ id: String,
7
+ created_at: Integer,
8
+ data: OpenAI::Webhooks::AgentSessionActionRequiredWebhookEvent::Data,
9
+ ?object: :event,
10
+ ?type: :"agent.session.action_required"
11
+ }
12
+
13
+ class AgentSessionActionRequiredWebhookEvent < OpenAI::Internal::Type::BaseModel
14
+ # The unique ID of the event.
15
+ attr_accessor id: String
16
+
17
+ # The Unix timestamp, in seconds, when the event was created.
18
+ attr_accessor created_at: Integer
19
+
20
+ attr_accessor data: OpenAI::Webhooks::AgentSessionActionRequiredWebhookEvent::Data
21
+
22
+ # The object type. Always `event`.
23
+ attr_accessor object: :event
24
+
25
+ # The event type. Always `agent.session.action_required`.
26
+ attr_accessor type: :"agent.session.action_required"
27
+
28
+ # @param id
29
+ # The unique ID of the event.
30
+ # @param created_at
31
+ # The Unix timestamp, in seconds, when the event was created.
32
+ # @param object
33
+ # The object type. Always `event`.
34
+ # @param type
35
+ # The event type. Always `agent.session.action_required`.
36
+ def initialize: (
37
+ id: String,
38
+ created_at: Integer,
39
+ data: OpenAI::Webhooks::AgentSessionActionRequiredWebhookEvent::Data,
40
+ ?object: :event,
41
+ ?type: :"agent.session.action_required"
42
+ ) -> void
43
+
44
+ def to_hash: -> {
45
+ id: String,
46
+ created_at: Integer,
47
+ data: OpenAI::Webhooks::AgentSessionActionRequiredWebhookEvent::Data,
48
+ ?object: :event,
49
+ ?type: :"agent.session.action_required"
50
+ }
51
+
52
+ type data =
53
+ {
54
+ id: String,
55
+ required_action: OpenAI::Webhooks::AgentSessionActionRequiredWebhookEvent::Data::RequiredAction
56
+ }
57
+
58
+ class Data < OpenAI::Internal::Type::BaseModel
59
+ # The ID of the session.
60
+ attr_accessor id: String
61
+
62
+ # The action type. Retrieve the session for action details.
63
+ attr_accessor required_action: OpenAI::Webhooks::AgentSessionActionRequiredWebhookEvent::Data::RequiredAction
64
+
65
+ # @param id
66
+ # The ID of the session.
67
+ # @param required_action
68
+ # The action type. Retrieve the session for action details.
69
+ def initialize: (
70
+ id: String,
71
+ required_action: OpenAI::Webhooks::AgentSessionActionRequiredWebhookEvent::Data::RequiredAction
72
+ ) -> void
73
+
74
+ def to_hash: -> {
75
+ id: String,
76
+ required_action: OpenAI::Webhooks::AgentSessionActionRequiredWebhookEvent::Data::RequiredAction
77
+ }
78
+
79
+ type required_action =
80
+ {
81
+ type: OpenAI::Models::Webhooks::AgentSessionActionRequiredWebhookEvent::Data::RequiredAction::type_
82
+ }
83
+
84
+ class RequiredAction < OpenAI::Internal::Type::BaseModel
85
+ attr_accessor type: OpenAI::Models::Webhooks::AgentSessionActionRequiredWebhookEvent::Data::RequiredAction::type_
86
+
87
+ def initialize: (
88
+ type: OpenAI::Models::Webhooks::AgentSessionActionRequiredWebhookEvent::Data::RequiredAction::type_
89
+ ) -> void
90
+
91
+ def to_hash: -> {
92
+ type: OpenAI::Models::Webhooks::AgentSessionActionRequiredWebhookEvent::Data::RequiredAction::type_
93
+ }
94
+
95
+ type type_ =
96
+ :computer_use_approval_request
97
+ | :function_call
98
+ | :environment_connection
99
+
100
+ module Type
101
+ extend OpenAI::Internal::Type::Enum
102
+
103
+ COMPUTER_USE_APPROVAL_REQUEST: :computer_use_approval_request
104
+ FUNCTION_CALL: :function_call
105
+ ENVIRONMENT_CONNECTION: :environment_connection
106
+
107
+ def self?.values: -> ::Array[OpenAI::Models::Webhooks::AgentSessionActionRequiredWebhookEvent::Data::RequiredAction::type_]
108
+ end
109
+ end
110
+ end
111
+ end
112
+ end
113
+ end
114
+ end