openai 0.110.0 → 0.112.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 (255) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/README.md +1 -1
  4. data/lib/openai/models/beta/agent.rb +2 -2
  5. data/lib/openai/models/beta/agent_create_params.rb +2 -2
  6. data/lib/openai/models/beta/agent_session.rb +2 -2
  7. data/lib/openai/models/beta/agent_tool.rb +18 -1
  8. data/lib/openai/models/beta/agent_tool_param.rb +18 -1
  9. data/lib/openai/models/beta/agent_update_params.rb +2 -2
  10. data/lib/openai/models/beta/agents/session_create_params.rb +2 -2
  11. data/lib/openai/models/beta/beta_response_input_file.rb +23 -1
  12. data/lib/openai/models/beta/beta_response_input_file_content.rb +23 -1
  13. data/lib/openai/models/beta/beta_response_input_image.rb +23 -1
  14. data/lib/openai/models/beta/beta_response_input_image_content.rb +23 -1
  15. data/lib/openai/models/beta/beta_response_input_text.rb +23 -1
  16. data/lib/openai/models/beta/beta_response_input_text_content.rb +23 -1
  17. data/lib/openai/models/beta/beta_response_item.rb +28 -1
  18. data/lib/openai/models/beta/beta_response_output_item.rb +28 -1
  19. data/lib/openai/models/beta/beta_response_tool_search_output_item_param.rb +26 -15
  20. data/lib/openai/models/beta/beta_tool.rb +26 -15
  21. data/lib/openai/models/beta/persisted_agent_tool.rb +18 -1
  22. data/lib/openai/models/beta/persisted_agent_tool_param.rb +18 -1
  23. data/lib/openai/models/chat/chat_completion_content_part.rb +23 -1
  24. data/lib/openai/models/chat/chat_completion_content_part_image.rb +23 -1
  25. data/lib/openai/models/chat/chat_completion_content_part_input_audio.rb +23 -1
  26. data/lib/openai/models/chat/chat_completion_content_part_text.rb +23 -1
  27. data/lib/openai/models/conversations/computer_screenshot_content.rb +23 -1
  28. data/lib/openai/models/decision_create_params.rb +802 -28
  29. data/lib/openai/models/decision_input_json.rb +45 -0
  30. data/lib/openai/models/decision_input_message.rb +304 -48
  31. data/lib/openai/models/decision_input_part.rb +4 -1
  32. data/lib/openai/models/decision_question_input_image.rb +54 -0
  33. data/lib/openai/models/decision_question_input_part.rb +23 -0
  34. data/lib/openai/models/decision_question_input_text.rb +21 -0
  35. data/lib/openai/models/image_edit_params.rb +20 -4
  36. data/lib/openai/models/image_generate_params.rb +23 -7
  37. data/lib/openai/models/image_model.rb +2 -0
  38. data/lib/openai/models/live/client_delegation.rb +20 -1
  39. data/lib/openai/models/live/client_event.rb +4 -4
  40. data/lib/openai/models/live/commentary_append_event.rb +1 -1
  41. data/lib/openai/models/live/decision_assistant_message.rb +154 -0
  42. data/lib/openai/models/live/decision_choice_option.rb +35 -0
  43. data/lib/openai/models/live/decision_developer_message.rb +70 -0
  44. data/lib/openai/models/live/decision_input_text.rb +26 -0
  45. data/lib/openai/models/live/decision_item_create_event.rb +490 -131
  46. data/lib/openai/models/live/decision_item_created_event.rb +486 -131
  47. data/lib/openai/models/live/decision_json_object.rb +10 -0
  48. data/lib/openai/models/live/decision_question.rb +172 -0
  49. data/lib/openai/models/live/decision_stored_assistant_message.rb +152 -0
  50. data/lib/openai/models/live/decision_stored_developer_message.rb +68 -0
  51. data/lib/openai/models/live/decision_stored_system_message.rb +68 -0
  52. data/lib/openai/models/live/decision_stored_user_message.rb +195 -0
  53. data/lib/openai/models/live/decision_system_message.rb +70 -0
  54. data/lib/openai/models/live/decision_trigger.rb +6 -185
  55. data/lib/openai/models/live/decision_user_message.rb +193 -0
  56. data/lib/openai/models/live/decisions_delegation_config.rb +5 -177
  57. data/lib/openai/models/live/decisions_delegation_update_config.rb +5 -184
  58. data/lib/openai/models/live/fork_client_event.rb +4 -4
  59. data/lib/openai/models/live/fork_server_event.rb +2 -2
  60. data/lib/openai/models/live/fork_session_config.rb +20 -1
  61. data/lib/openai/models/live/input_audio_muted_event.rb +3 -2
  62. data/lib/openai/models/live/input_audio_unmute_event.rb +2 -1
  63. data/lib/openai/models/live/input_audio_unmuted_event.rb +3 -2
  64. data/lib/openai/models/live/instructions_append_event.rb +5 -2
  65. data/lib/openai/models/live/media_session_config.rb +39 -2
  66. data/lib/openai/models/live/media_session_fork_config.rb +20 -1
  67. data/lib/openai/models/live/server_event.rb +2 -2
  68. data/lib/openai/models/live/session_accept_params.rb +39 -2
  69. data/lib/openai/models/live/session_config.rb +39 -2
  70. data/lib/openai/models/live/session_resource.rb +39 -2
  71. data/lib/openai/models/live/session_update_config.rb +41 -2
  72. data/lib/openai/models/live/sideband_client_event.rb +4 -4
  73. data/lib/openai/models/live/sideband_server_event.rb +2 -2
  74. data/lib/openai/models/live/thinking_append_event.rb +1 -1
  75. data/lib/openai/models/realtime/conversation_item_input_audio_transcription_delta_event.rb +10 -12
  76. data/lib/openai/models/realtime/realtime_error_event.rb +1 -1
  77. data/lib/openai/models/realtime/realtime_server_event.rb +1 -1
  78. data/lib/openai/models/realtime/realtime_translation_server_event.rb +1 -1
  79. data/lib/openai/models/responses/response_input_file.rb +23 -1
  80. data/lib/openai/models/responses/response_input_file_content.rb +23 -1
  81. data/lib/openai/models/responses/response_input_image.rb +23 -1
  82. data/lib/openai/models/responses/response_input_image_content.rb +23 -1
  83. data/lib/openai/models/responses/response_input_text.rb +23 -1
  84. data/lib/openai/models/responses/response_input_text_content.rb +23 -1
  85. data/lib/openai/models/responses/response_tool_search_output_item_param.rb +26 -15
  86. data/lib/openai/models/responses/tool.rb +26 -15
  87. data/lib/openai/models.rb +8 -0
  88. data/lib/openai/resources/beta/agents.rb +2 -2
  89. data/lib/openai/resources/beta/responses.rb +2 -2
  90. data/lib/openai/resources/decisions.rb +5 -6
  91. data/lib/openai/resources/images.rb +18 -6
  92. data/lib/openai/resources/live/forks.rb +2 -2
  93. data/lib/openai/resources/live/sideband.rb +2 -2
  94. data/lib/openai/resources/live.rb +2 -2
  95. data/lib/openai/resources/realtime/translations.rb +2 -2
  96. data/lib/openai/resources/realtime.rb +2 -2
  97. data/lib/openai/resources/responses.rb +2 -2
  98. data/lib/openai/version.rb +1 -1
  99. data/lib/openai.rb +16 -0
  100. data/rbi/openai/models/beta/agent.rbi +2 -1
  101. data/rbi/openai/models/beta/agent_create_params.rbi +6 -3
  102. data/rbi/openai/models/beta/agent_session.rbi +2 -1
  103. data/rbi/openai/models/beta/agent_tool.rbi +40 -1
  104. data/rbi/openai/models/beta/agent_tool_param.rbi +40 -1
  105. data/rbi/openai/models/beta/agent_update_params.rbi +6 -3
  106. data/rbi/openai/models/beta/agents/session_create_params.rbi +6 -3
  107. data/rbi/openai/models/beta/beta_response_input_file.rbi +31 -1
  108. data/rbi/openai/models/beta/beta_response_input_file_content.rbi +39 -1
  109. data/rbi/openai/models/beta/beta_response_input_image.rbi +31 -1
  110. data/rbi/openai/models/beta/beta_response_input_image_content.rbi +39 -1
  111. data/rbi/openai/models/beta/beta_response_input_text.rbi +31 -1
  112. data/rbi/openai/models/beta/beta_response_input_text_content.rbi +39 -1
  113. data/rbi/openai/models/beta/beta_response_item.rbi +58 -1
  114. data/rbi/openai/models/beta/beta_response_output_item.rbi +58 -1
  115. data/rbi/openai/models/beta/beta_response_tool_search_output_item_param.rbi +24 -15
  116. data/rbi/openai/models/beta/beta_tool.rbi +24 -15
  117. data/rbi/openai/models/beta/persisted_agent_tool.rbi +40 -1
  118. data/rbi/openai/models/beta/persisted_agent_tool_param.rbi +40 -1
  119. data/rbi/openai/models/chat/chat_completion_content_part.rbi +43 -1
  120. data/rbi/openai/models/chat/chat_completion_content_part_image.rbi +41 -1
  121. data/rbi/openai/models/chat/chat_completion_content_part_input_audio.rbi +46 -1
  122. data/rbi/openai/models/chat/chat_completion_content_part_text.rbi +39 -1
  123. data/rbi/openai/models/conversations/computer_screenshot_content.rbi +48 -1
  124. data/rbi/openai/models/decision_create_params.rbi +1273 -26
  125. data/rbi/openai/models/decision_input_json.rbi +75 -0
  126. data/rbi/openai/models/decision_input_message.rbi +455 -52
  127. data/rbi/openai/models/decision_input_part.rbi +2 -1
  128. data/rbi/openai/models/decision_question_input_image.rbi +82 -0
  129. data/rbi/openai/models/decision_question_input_part.rbi +25 -0
  130. data/rbi/openai/models/decision_question_input_text.rbi +49 -0
  131. data/rbi/openai/models/image_edit_params.rbi +12 -3
  132. data/rbi/openai/models/image_generate_params.rbi +15 -6
  133. data/rbi/openai/models/live/client_delegation.rbi +23 -1
  134. data/rbi/openai/models/live/commentary_append_event.rbi +1 -1
  135. data/rbi/openai/models/live/decision_assistant_message.rbi +247 -0
  136. data/rbi/openai/models/live/decision_choice_option.rbi +67 -0
  137. data/rbi/openai/models/live/decision_developer_message.rbi +109 -0
  138. data/rbi/openai/models/live/decision_input_text.rbi +55 -0
  139. data/rbi/openai/models/live/decision_item_create_event.rbi +765 -184
  140. data/rbi/openai/models/live/decision_item_created_event.rbi +737 -184
  141. data/rbi/openai/models/live/decision_json_object.rbi +16 -0
  142. data/rbi/openai/models/live/decision_question.rbi +300 -0
  143. data/rbi/openai/models/live/decision_stored_assistant_message.rbi +245 -0
  144. data/rbi/openai/models/live/decision_stored_developer_message.rbi +107 -0
  145. data/rbi/openai/models/live/decision_stored_system_message.rbi +107 -0
  146. data/rbi/openai/models/live/decision_stored_user_message.rbi +333 -0
  147. data/rbi/openai/models/live/decision_system_message.rbi +109 -0
  148. data/rbi/openai/models/live/decision_trigger.rbi +11 -320
  149. data/rbi/openai/models/live/decision_user_message.rbi +320 -0
  150. data/rbi/openai/models/live/decisions_delegation_config.rbi +10 -321
  151. data/rbi/openai/models/live/decisions_delegation_update_config.rbi +13 -324
  152. data/rbi/openai/models/live/fork_session_config.rbi +27 -1
  153. data/rbi/openai/models/live/input_audio_muted_event.rbi +3 -2
  154. data/rbi/openai/models/live/input_audio_unmute_event.rbi +2 -1
  155. data/rbi/openai/models/live/input_audio_unmuted_event.rbi +3 -2
  156. data/rbi/openai/models/live/instructions_append_event.rbi +5 -2
  157. data/rbi/openai/models/live/media_session_config.rbi +44 -2
  158. data/rbi/openai/models/live/media_session_fork_config.rbi +27 -1
  159. data/rbi/openai/models/live/session_accept_params.rbi +44 -2
  160. data/rbi/openai/models/live/session_config.rbi +44 -2
  161. data/rbi/openai/models/live/session_resource.rbi +44 -2
  162. data/rbi/openai/models/live/session_update_config.rbi +54 -2
  163. data/rbi/openai/models/live/thinking_append_event.rbi +1 -1
  164. data/rbi/openai/models/realtime/conversation_item_input_audio_transcription_delta_event.rbi +10 -12
  165. data/rbi/openai/models/realtime/realtime_error_event.rbi +1 -1
  166. data/rbi/openai/models/responses/response_input_file.rbi +31 -1
  167. data/rbi/openai/models/responses/response_input_file_content.rbi +39 -1
  168. data/rbi/openai/models/responses/response_input_image.rbi +33 -1
  169. data/rbi/openai/models/responses/response_input_image_content.rbi +41 -1
  170. data/rbi/openai/models/responses/response_input_text.rbi +31 -1
  171. data/rbi/openai/models/responses/response_input_text_content.rbi +39 -1
  172. data/rbi/openai/models/responses/response_tool_search_output_item_param.rbi +24 -15
  173. data/rbi/openai/models/responses/tool.rbi +24 -15
  174. data/rbi/openai/models.rbi +8 -0
  175. data/rbi/openai/resources/beta/agents.rbi +4 -2
  176. data/rbi/openai/resources/beta/responses.rbi +8 -1
  177. data/rbi/openai/resources/decisions.rbi +4 -5
  178. data/rbi/openai/resources/images.rbi +18 -6
  179. data/rbi/openai/resources/live/forks.rbi +8 -1
  180. data/rbi/openai/resources/live/sideband.rbi +8 -1
  181. data/rbi/openai/resources/live.rbi +8 -1
  182. data/rbi/openai/resources/realtime/translations.rbi +8 -1
  183. data/rbi/openai/resources/realtime.rbi +8 -1
  184. data/rbi/openai/resources/responses.rbi +8 -1
  185. data/sig/openai/models/beta/agent_tool.rbs +14 -0
  186. data/sig/openai/models/beta/agent_tool_param.rbs +14 -0
  187. data/sig/openai/models/beta/beta_response_input_file.rbs +34 -3
  188. data/sig/openai/models/beta/beta_response_input_file_content.rbs +34 -3
  189. data/sig/openai/models/beta/beta_response_input_image.rbs +34 -3
  190. data/sig/openai/models/beta/beta_response_input_image_content.rbs +34 -3
  191. data/sig/openai/models/beta/beta_response_input_text.rbs +34 -3
  192. data/sig/openai/models/beta/beta_response_input_text_content.rbs +34 -3
  193. data/sig/openai/models/beta/beta_response_item.rbs +34 -3
  194. data/sig/openai/models/beta/beta_response_output_item.rbs +34 -3
  195. data/sig/openai/models/beta/beta_response_tool_search_output_item_param.rbs +24 -15
  196. data/sig/openai/models/beta/beta_tool.rbs +24 -15
  197. data/sig/openai/models/beta/persisted_agent_tool.rbs +14 -0
  198. data/sig/openai/models/beta/persisted_agent_tool_param.rbs +14 -0
  199. data/sig/openai/models/chat/chat_completion_content_part.rbs +34 -3
  200. data/sig/openai/models/chat/chat_completion_content_part_image.rbs +34 -3
  201. data/sig/openai/models/chat/chat_completion_content_part_input_audio.rbs +34 -3
  202. data/sig/openai/models/chat/chat_completion_content_part_text.rbs +34 -3
  203. data/sig/openai/models/conversations/computer_screenshot_content.rbs +34 -3
  204. data/sig/openai/models/decision_create_params.rbs +610 -24
  205. data/sig/openai/models/decision_input_json.rbs +34 -0
  206. data/sig/openai/models/decision_input_message.rbs +264 -35
  207. data/sig/openai/models/decision_input_part.rbs +3 -1
  208. data/sig/openai/models/decision_question_input_image.rbs +51 -0
  209. data/sig/openai/models/decision_question_input_part.rbs +14 -0
  210. data/sig/openai/models/decision_question_input_text.rbs +15 -0
  211. data/sig/openai/models/image_edit_params.rbs +8 -2
  212. data/sig/openai/models/image_generate_params.rbs +10 -4
  213. data/sig/openai/models/live/client_delegation.rbs +30 -3
  214. data/sig/openai/models/live/decision_assistant_message.rbs +134 -0
  215. data/sig/openai/models/live/decision_choice_option.rbs +37 -0
  216. data/sig/openai/models/live/decision_developer_message.rbs +67 -0
  217. data/sig/openai/models/live/decision_input_text.rbs +20 -0
  218. data/sig/openai/models/live/decision_item_create_event.rbs +413 -131
  219. data/sig/openai/models/live/decision_item_created_event.rbs +401 -131
  220. data/sig/openai/models/live/decision_json_object.rbs +9 -0
  221. data/sig/openai/models/live/decision_question.rbs +164 -0
  222. data/sig/openai/models/live/decision_stored_assistant_message.rbs +131 -0
  223. data/sig/openai/models/live/decision_stored_developer_message.rbs +64 -0
  224. data/sig/openai/models/live/decision_stored_system_message.rbs +64 -0
  225. data/sig/openai/models/live/decision_stored_user_message.rbs +177 -0
  226. data/sig/openai/models/live/decision_system_message.rbs +67 -0
  227. data/sig/openai/models/live/decision_trigger.rbs +8 -171
  228. data/sig/openai/models/live/decision_user_message.rbs +180 -0
  229. data/sig/openai/models/live/decisions_delegation_config.rbs +6 -167
  230. data/sig/openai/models/live/decisions_delegation_update_config.rbs +8 -169
  231. data/sig/openai/models/live/fork_session_config.rbs +26 -0
  232. data/sig/openai/models/live/media_session_config.rbs +53 -4
  233. data/sig/openai/models/live/media_session_fork_config.rbs +26 -0
  234. data/sig/openai/models/live/session_accept_params.rbs +53 -4
  235. data/sig/openai/models/live/session_config.rbs +53 -4
  236. data/sig/openai/models/live/session_resource.rbs +53 -4
  237. data/sig/openai/models/live/session_update_config.rbs +52 -0
  238. data/sig/openai/models/realtime/conversation_item_input_audio_transcription_delta_event.rbs +10 -12
  239. data/sig/openai/models/responses/response_input_file.rbs +34 -3
  240. data/sig/openai/models/responses/response_input_file_content.rbs +34 -3
  241. data/sig/openai/models/responses/response_input_image.rbs +34 -3
  242. data/sig/openai/models/responses/response_input_image_content.rbs +34 -3
  243. data/sig/openai/models/responses/response_input_text.rbs +34 -3
  244. data/sig/openai/models/responses/response_input_text_content.rbs +34 -3
  245. data/sig/openai/models/responses/response_tool_search_output_item_param.rbs +24 -15
  246. data/sig/openai/models/responses/tool.rbs +24 -15
  247. data/sig/openai/models.rbs +9 -1
  248. data/sig/openai/resources/beta/responses.rbs +2 -1
  249. data/sig/openai/resources/live/forks.rbs +2 -1
  250. data/sig/openai/resources/live/sideband.rbs +2 -1
  251. data/sig/openai/resources/live.rbs +2 -1
  252. data/sig/openai/resources/realtime/translations.rbs +2 -1
  253. data/sig/openai/resources/realtime.rbs +2 -1
  254. data/sig/openai/resources/responses.rbs +2 -1
  255. metadata +49 -1
@@ -4,7 +4,7 @@ module OpenAI
4
4
  type decision_item_created_event =
5
5
  {
6
6
  event_id: String,
7
- item: OpenAI::Live::DecisionItemCreatedEvent::Item,
7
+ item: OpenAI::Models::Live::DecisionItemCreatedEvent::item,
8
8
  ?type: :"decision.item.created",
9
9
  ?client_event_id: String
10
10
  }
@@ -13,7 +13,7 @@ module OpenAI
13
13
  # The unique ID of the Live server event.
14
14
  attr_accessor event_id: String
15
15
 
16
- attr_accessor item: OpenAI::Live::DecisionItemCreatedEvent::Item
16
+ attr_accessor item: OpenAI::Models::Live::DecisionItemCreatedEvent::item
17
17
 
18
18
  attr_accessor type: :"decision.item.created"
19
19
 
@@ -32,163 +32,433 @@ module OpenAI
32
32
  # supplied.
33
33
  def initialize: (
34
34
  event_id: String,
35
- item: OpenAI::Live::DecisionItemCreatedEvent::Item,
35
+ item: OpenAI::Models::Live::DecisionItemCreatedEvent::item,
36
36
  ?client_event_id: String,
37
37
  ?type: :"decision.item.created"
38
38
  ) -> void
39
39
 
40
40
  def to_hash: -> {
41
41
  event_id: String,
42
- item: OpenAI::Live::DecisionItemCreatedEvent::Item,
42
+ item: OpenAI::Models::Live::DecisionItemCreatedEvent::item,
43
43
  ?type: :"decision.item.created",
44
44
  ?client_event_id: String
45
45
  }
46
46
 
47
47
  type item =
48
- {
49
- id: String,
50
- content: OpenAI::Models::Live::DecisionItemCreatedEvent::Item::content,
51
- ?role: :user,
52
- ?type: OpenAI::Models::Live::DecisionItemCreatedEvent::Item::type_
53
- }
54
-
55
- class Item < OpenAI::Internal::Type::BaseModel
56
- # The ID of the stored Decision input item.
57
- attr_accessor id: String
58
-
59
- # The text input to the model.
60
- attr_accessor content: OpenAI::Models::Live::DecisionItemCreatedEvent::Item::content
61
-
62
- # The message role. Always `user`.
63
- attr_accessor role: :user
64
-
65
- attr_reader type: OpenAI::Models::Live::DecisionItemCreatedEvent::Item::type_?
66
-
67
- def type=: (
68
- OpenAI::Models::Live::DecisionItemCreatedEvent::Item::type_
69
- ) -> OpenAI::Models::Live::DecisionItemCreatedEvent::Item::type_
70
-
71
- # @param id
72
- # The ID of the stored Decision input item.
73
- # @param content
74
- # The text input to the model.
75
- # @param role
76
- # The message role. Always `user`.
77
- def initialize: (
78
- id: String,
79
- content: OpenAI::Models::Live::DecisionItemCreatedEvent::Item::content,
80
- ?type: OpenAI::Models::Live::DecisionItemCreatedEvent::Item::type_,
81
- ?role: :user
82
- ) -> void
83
-
84
- def to_hash: -> {
85
- id: String,
86
- content: OpenAI::Models::Live::DecisionItemCreatedEvent::Item::content,
87
- ?role: :user,
88
- ?type: OpenAI::Models::Live::DecisionItemCreatedEvent::Item::type_
89
- }
90
-
91
- type content =
92
- String
93
- | ::Array[OpenAI::Models::Live::DecisionItemCreatedEvent::Item::Content::part]
94
-
95
- module Content
96
- extend OpenAI::Internal::Type::Union
97
-
98
- type part =
99
- OpenAI::Live::DecisionItemCreatedEvent::Item::Content::Part::InputText
100
- | OpenAI::Live::DecisionItemCreatedEvent::Item::Content::Part::InputImage
101
-
102
- module Part
48
+ OpenAI::Live::DecisionStoredUserMessage
49
+ | OpenAI::Live::DecisionStoredDeveloperMessage
50
+ | OpenAI::Live::DecisionStoredSystemMessage
51
+ | OpenAI::Live::DecisionStoredAssistantMessage
52
+ | OpenAI::Live::DecisionItemCreatedEvent::ItemUnion::FunctionCall
53
+ | OpenAI::Live::DecisionItemCreatedEvent::ItemUnion::FunctionCallOutput
54
+ | OpenAI::Live::DecisionItemCreatedEvent::ItemUnion::CustomToolCall
55
+ | OpenAI::Live::DecisionItemCreatedEvent::ItemUnion::CustomToolCallOutput
56
+
57
+ module ItemUnion
58
+ extend OpenAI::Internal::Type::Union
59
+
60
+ type function_call =
61
+ {
62
+ id: String,
63
+ arguments: String,
64
+ call_id: String,
65
+ name: String,
66
+ ?type: :function_call,
67
+ ?namespace: String?,
68
+ ?status: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::FunctionCall::status?
69
+ }
70
+
71
+ class FunctionCall < OpenAI::Internal::Type::BaseModel
72
+ attr_accessor id: String
73
+
74
+ # The function arguments as a JSON string.
75
+ attr_accessor arguments: String
76
+
77
+ # The unique ID of the function tool call generated by the model.
78
+ attr_accessor call_id: String
79
+
80
+ attr_accessor name: String
81
+
82
+ # The item type. Always `function_call`.
83
+ attr_accessor type: :function_call
84
+
85
+ # The namespace of the function to call.
86
+ attr_accessor namespace: String?
87
+
88
+ attr_accessor status: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::FunctionCall::status?
89
+
90
+ # @param arguments
91
+ # The function arguments as a JSON string.
92
+ # @param call_id
93
+ # The unique ID of the function tool call generated by the model.
94
+ # @param namespace
95
+ # The namespace of the function to call.
96
+ # @param type
97
+ # The item type. Always `function_call`.
98
+ def initialize: (
99
+ id: String,
100
+ arguments: String,
101
+ call_id: String,
102
+ name: String,
103
+ ?namespace: String?,
104
+ ?status: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::FunctionCall::status?,
105
+ ?type: :function_call
106
+ ) -> void
107
+
108
+ def to_hash: -> {
109
+ id: String,
110
+ arguments: String,
111
+ call_id: String,
112
+ name: String,
113
+ ?type: :function_call,
114
+ ?namespace: String?,
115
+ ?status: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::FunctionCall::status?
116
+ }
117
+
118
+ type status = :in_progress | :completed | :incomplete
119
+
120
+ module Status
121
+ extend OpenAI::Internal::Type::Enum
122
+
123
+ IN_PROGRESS: :in_progress
124
+ COMPLETED: :completed
125
+ INCOMPLETE: :incomplete
126
+
127
+ def self?.values: -> ::Array[OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::FunctionCall::status]
128
+ end
129
+ end
130
+
131
+ type function_call_output =
132
+ {
133
+ id: String,
134
+ call_id: String,
135
+ output: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::FunctionCallOutput::output,
136
+ ?type: :function_call_output,
137
+ ?status: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::FunctionCallOutput::status?
138
+ }
139
+
140
+ class FunctionCallOutput < OpenAI::Internal::Type::BaseModel
141
+ attr_accessor id: String
142
+
143
+ # The unique ID of the function tool call generated by the model.
144
+ attr_accessor call_id: String
145
+
146
+ # The text input to the model.
147
+ attr_accessor output: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::FunctionCallOutput::output
148
+
149
+ # The type of the function tool call output. Always `function_call_output`.
150
+ attr_accessor type: :function_call_output
151
+
152
+ attr_accessor status: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::FunctionCallOutput::status?
153
+
154
+ # @param call_id
155
+ # The unique ID of the function tool call generated by the model.
156
+ # @param output
157
+ # The text input to the model.
158
+ # @param type
159
+ # The type of the function tool call output. Always `function_call_output`.
160
+ def initialize: (
161
+ id: String,
162
+ call_id: String,
163
+ output: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::FunctionCallOutput::output,
164
+ ?status: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::FunctionCallOutput::status?,
165
+ ?type: :function_call_output
166
+ ) -> void
167
+
168
+ def to_hash: -> {
169
+ id: String,
170
+ call_id: String,
171
+ output: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::FunctionCallOutput::output,
172
+ ?type: :function_call_output,
173
+ ?status: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::FunctionCallOutput::status?
174
+ }
175
+
176
+ type output =
177
+ String
178
+ | ::Array[OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::FunctionCallOutput::Output::part]
179
+
180
+ module Output
103
181
  extend OpenAI::Internal::Type::Union
104
182
 
105
- type input_text = { text: String, ?type: :input_text }
183
+ type part =
184
+ OpenAI::Live::DecisionInputText
185
+ | OpenAI::Live::DecisionItemCreatedEvent::ItemUnion::FunctionCallOutput::Output::Part::InputImage
186
+
187
+ module Part
188
+ extend OpenAI::Internal::Type::Union
189
+
190
+ type input_image =
191
+ {
192
+ image_url: String,
193
+ ?type: :input_image,
194
+ ?detail: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::FunctionCallOutput::Output::Part::InputImage::detail?
195
+ }
196
+
197
+ class InputImage < OpenAI::Internal::Type::BaseModel
198
+ # A base64-encoded image data URL or a publicly accessible HTTP(S) image URL.
199
+ attr_accessor image_url: String
200
+
201
+ attr_accessor type: :input_image
202
+
203
+ # The detail level of the image to be sent to the model. One of `high`, `low`,
204
+ # `auto`, or `original`. Defaults to `auto`.
205
+ attr_accessor detail: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::FunctionCallOutput::Output::Part::InputImage::detail?
206
+
207
+ # @param image_url
208
+ # A base64-encoded image data URL or a publicly accessible HTTP(S) image URL.
209
+ # @param detail
210
+ # The detail level of the image to be sent to the model. One of `high`, `low`,
211
+ # `auto`, or `original`. Defaults to `auto`.
212
+ def initialize: (
213
+ image_url: String,
214
+ ?detail: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::FunctionCallOutput::Output::Part::InputImage::detail?,
215
+ ?type: :input_image
216
+ ) -> void
217
+
218
+ def to_hash: -> {
219
+ image_url: String,
220
+ ?type: :input_image,
221
+ ?detail: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::FunctionCallOutput::Output::Part::InputImage::detail?
222
+ }
223
+
224
+ type detail = :low | :high | :auto | :original
225
+
226
+ module Detail
227
+ extend OpenAI::Internal::Type::Enum
228
+
229
+ LOW: :low
230
+ HIGH: :high
231
+ AUTO: :auto
232
+ ORIGINAL: :original
233
+
234
+ def self?.values: -> ::Array[OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::FunctionCallOutput::Output::Part::InputImage::detail]
235
+ end
236
+ end
106
237
 
107
- class InputText < OpenAI::Internal::Type::BaseModel
108
- # The text input to the model.
109
- attr_accessor text: String
238
+ def self?.variants: -> ::Array[OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::FunctionCallOutput::Output::part]
239
+ end
110
240
 
111
- # The type of the input item. Always `input_text`.
112
- attr_accessor type: :input_text
241
+ def self?.variants: -> ::Array[OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::FunctionCallOutput::output]
113
242
 
114
- # @param text
115
- # The text input to the model.
116
- # @param type
117
- # The type of the input item. Always `input_text`.
118
- def initialize: (text: String, ?type: :input_text) -> void
243
+ PartsArray: OpenAI::Internal::Type::Converter
244
+ end
119
245
 
120
- def to_hash: -> { text: String, ?type: :input_text }
121
- end
246
+ type status = :in_progress | :completed | :incomplete
122
247
 
123
- type input_image =
124
- {
125
- image_url: String,
126
- ?type: :input_image,
127
- ?detail: OpenAI::Models::Live::DecisionItemCreatedEvent::Item::Content::Part::InputImage::detail?
128
- }
129
-
130
- class InputImage < OpenAI::Internal::Type::BaseModel
131
- # An inline image encoded as a data URL.
132
- attr_accessor image_url: String
133
-
134
- # The type of the input item. Always `input_image`.
135
- attr_accessor type: :input_image
136
-
137
- # The detail level of the image to be sent to the model. One of `high`, `low`,
138
- # `auto`, or `original`. Defaults to `auto`.
139
- attr_accessor detail: OpenAI::Models::Live::DecisionItemCreatedEvent::Item::Content::Part::InputImage::detail?
140
-
141
- # @param image_url
142
- # An inline image encoded as a data URL.
143
- # @param detail
144
- # The detail level of the image to be sent to the model. One of `high`, `low`,
145
- # `auto`, or `original`. Defaults to `auto`.
146
- # @param type
147
- # The type of the input item. Always `input_image`.
148
- def initialize: (
149
- image_url: String,
150
- ?detail: OpenAI::Models::Live::DecisionItemCreatedEvent::Item::Content::Part::InputImage::detail?,
151
- ?type: :input_image
152
- ) -> void
153
-
154
- def to_hash: -> {
155
- image_url: String,
156
- ?type: :input_image,
157
- ?detail: OpenAI::Models::Live::DecisionItemCreatedEvent::Item::Content::Part::InputImage::detail?
158
- }
159
-
160
- type detail = :low | :high | :auto | :original
161
-
162
- module Detail
163
- extend OpenAI::Internal::Type::Enum
164
-
165
- LOW: :low
166
- HIGH: :high
167
- AUTO: :auto
168
- ORIGINAL: :original
169
-
170
- def self?.values: -> ::Array[OpenAI::Models::Live::DecisionItemCreatedEvent::Item::Content::Part::InputImage::detail]
171
- end
172
- end
248
+ module Status
249
+ extend OpenAI::Internal::Type::Enum
173
250
 
174
- def self?.variants: -> ::Array[OpenAI::Models::Live::DecisionItemCreatedEvent::Item::Content::part]
175
- end
251
+ IN_PROGRESS: :in_progress
252
+ COMPLETED: :completed
253
+ INCOMPLETE: :incomplete
176
254
 
177
- def self?.variants: -> ::Array[OpenAI::Models::Live::DecisionItemCreatedEvent::Item::content]
255
+ def self?.values: -> ::Array[OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::FunctionCallOutput::status]
256
+ end
257
+ end
178
258
 
179
- PartsArray: OpenAI::Internal::Type::Converter
259
+ type custom_tool_call =
260
+ {
261
+ id: String,
262
+ call_id: String,
263
+ input: String,
264
+ name: String,
265
+ ?type: :custom_tool_call,
266
+ ?namespace: String?,
267
+ ?status: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::CustomToolCall::status?
268
+ }
269
+
270
+ class CustomToolCall < OpenAI::Internal::Type::BaseModel
271
+ attr_accessor id: String
272
+
273
+ # The unique ID of the function tool call generated by the model.
274
+ attr_accessor call_id: String
275
+
276
+ # The input to the custom tool call.
277
+ attr_accessor input: String
278
+
279
+ # The name of the custom tool to call.
280
+ attr_accessor name: String
281
+
282
+ # The item type. Always `custom_tool_call`.
283
+ attr_accessor type: :custom_tool_call
284
+
285
+ # The namespace of the function to call.
286
+ attr_accessor namespace: String?
287
+
288
+ attr_accessor status: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::CustomToolCall::status?
289
+
290
+ # @param call_id
291
+ # The unique ID of the function tool call generated by the model.
292
+ # @param input
293
+ # The input to the custom tool call.
294
+ # @param name
295
+ # The name of the custom tool to call.
296
+ # @param namespace
297
+ # The namespace of the function to call.
298
+ # @param type
299
+ # The item type. Always `custom_tool_call`.
300
+ def initialize: (
301
+ id: String,
302
+ call_id: String,
303
+ input: String,
304
+ name: String,
305
+ ?namespace: String?,
306
+ ?status: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::CustomToolCall::status?,
307
+ ?type: :custom_tool_call
308
+ ) -> void
309
+
310
+ def to_hash: -> {
311
+ id: String,
312
+ call_id: String,
313
+ input: String,
314
+ name: String,
315
+ ?type: :custom_tool_call,
316
+ ?namespace: String?,
317
+ ?status: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::CustomToolCall::status?
318
+ }
319
+
320
+ type status = :in_progress | :completed | :incomplete
321
+
322
+ module Status
323
+ extend OpenAI::Internal::Type::Enum
324
+
325
+ IN_PROGRESS: :in_progress
326
+ COMPLETED: :completed
327
+ INCOMPLETE: :incomplete
328
+
329
+ def self?.values: -> ::Array[OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::CustomToolCall::status]
330
+ end
180
331
  end
181
332
 
182
- type type_ = :message
333
+ type custom_tool_call_output =
334
+ {
335
+ id: String,
336
+ call_id: String,
337
+ output: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::CustomToolCallOutput::output,
338
+ ?type: :custom_tool_call_output,
339
+ ?status: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::CustomToolCallOutput::status?
340
+ }
341
+
342
+ class CustomToolCallOutput < OpenAI::Internal::Type::BaseModel
343
+ attr_accessor id: String
344
+
345
+ # The unique ID of the function tool call generated by the model.
346
+ attr_accessor call_id: String
347
+
348
+ # The text input to the model.
349
+ attr_accessor output: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::CustomToolCallOutput::output
350
+
351
+ attr_accessor type: :custom_tool_call_output
352
+
353
+ attr_accessor status: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::CustomToolCallOutput::status?
354
+
355
+ # @param call_id
356
+ # The unique ID of the function tool call generated by the model.
357
+ # @param output
358
+ # The text input to the model.
359
+ def initialize: (
360
+ id: String,
361
+ call_id: String,
362
+ output: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::CustomToolCallOutput::output,
363
+ ?status: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::CustomToolCallOutput::status?,
364
+ ?type: :custom_tool_call_output
365
+ ) -> void
366
+
367
+ def to_hash: -> {
368
+ id: String,
369
+ call_id: String,
370
+ output: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::CustomToolCallOutput::output,
371
+ ?type: :custom_tool_call_output,
372
+ ?status: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::CustomToolCallOutput::status?
373
+ }
374
+
375
+ type output =
376
+ String
377
+ | ::Array[OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::CustomToolCallOutput::Output::part]
378
+
379
+ module Output
380
+ extend OpenAI::Internal::Type::Union
381
+
382
+ type part =
383
+ OpenAI::Live::DecisionInputText
384
+ | OpenAI::Live::DecisionItemCreatedEvent::ItemUnion::CustomToolCallOutput::Output::Part::InputImage
385
+
386
+ module Part
387
+ extend OpenAI::Internal::Type::Union
388
+
389
+ type input_image =
390
+ {
391
+ image_url: String,
392
+ ?type: :input_image,
393
+ ?detail: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::CustomToolCallOutput::Output::Part::InputImage::detail?
394
+ }
395
+
396
+ class InputImage < OpenAI::Internal::Type::BaseModel
397
+ # A base64-encoded image data URL or a publicly accessible HTTP(S) image URL.
398
+ attr_accessor image_url: String
399
+
400
+ attr_accessor type: :input_image
401
+
402
+ # The detail level of the image to be sent to the model. One of `high`, `low`,
403
+ # `auto`, or `original`. Defaults to `auto`.
404
+ attr_accessor detail: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::CustomToolCallOutput::Output::Part::InputImage::detail?
405
+
406
+ # @param image_url
407
+ # A base64-encoded image data URL or a publicly accessible HTTP(S) image URL.
408
+ # @param detail
409
+ # The detail level of the image to be sent to the model. One of `high`, `low`,
410
+ # `auto`, or `original`. Defaults to `auto`.
411
+ def initialize: (
412
+ image_url: String,
413
+ ?detail: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::CustomToolCallOutput::Output::Part::InputImage::detail?,
414
+ ?type: :input_image
415
+ ) -> void
416
+
417
+ def to_hash: -> {
418
+ image_url: String,
419
+ ?type: :input_image,
420
+ ?detail: OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::CustomToolCallOutput::Output::Part::InputImage::detail?
421
+ }
422
+
423
+ type detail = :low | :high | :auto | :original
424
+
425
+ module Detail
426
+ extend OpenAI::Internal::Type::Enum
427
+
428
+ LOW: :low
429
+ HIGH: :high
430
+ AUTO: :auto
431
+ ORIGINAL: :original
432
+
433
+ def self?.values: -> ::Array[OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::CustomToolCallOutput::Output::Part::InputImage::detail]
434
+ end
435
+ end
436
+
437
+ def self?.variants: -> ::Array[OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::CustomToolCallOutput::Output::part]
438
+ end
439
+
440
+ def self?.variants: -> ::Array[OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::CustomToolCallOutput::output]
183
441
 
184
- module Type
185
- extend OpenAI::Internal::Type::Enum
442
+ PartsArray: OpenAI::Internal::Type::Converter
443
+ end
444
+
445
+ type status = :in_progress | :completed | :incomplete
446
+
447
+ module Status
448
+ extend OpenAI::Internal::Type::Enum
186
449
 
187
- MESSAGE: :message
450
+ IN_PROGRESS: :in_progress
451
+ COMPLETED: :completed
452
+ INCOMPLETE: :incomplete
188
453
 
189
- def self?.values: -> ::Array[OpenAI::Models::Live::DecisionItemCreatedEvent::Item::type_]
454
+ def self?.values: -> ::Array[OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::CustomToolCallOutput::status]
455
+ end
190
456
  end
457
+
458
+ def self?.variants: -> ::Array[OpenAI::Models::Live::DecisionItemCreatedEvent::item]
191
459
  end
460
+
461
+ class Item = ::OpenAI::Models::Live::DecisionStoredUserMessage
192
462
  end
193
463
  end
194
464
  end
@@ -0,0 +1,9 @@
1
+ module OpenAI
2
+ module Models
3
+ module Live
4
+ type decision_json_object = ::Hash[Symbol, top]
5
+
6
+ DecisionJSONObject: OpenAI::Internal::Type::Converter
7
+ end
8
+ end
9
+ end