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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/README.md +1 -1
- data/lib/openai/models/beta/agent.rb +2 -2
- data/lib/openai/models/beta/agent_create_params.rb +2 -2
- data/lib/openai/models/beta/agent_session.rb +2 -2
- data/lib/openai/models/beta/agent_tool.rb +18 -1
- data/lib/openai/models/beta/agent_tool_param.rb +18 -1
- data/lib/openai/models/beta/agent_update_params.rb +2 -2
- data/lib/openai/models/beta/agents/session_create_params.rb +2 -2
- data/lib/openai/models/beta/beta_response_input_file.rb +23 -1
- data/lib/openai/models/beta/beta_response_input_file_content.rb +23 -1
- data/lib/openai/models/beta/beta_response_input_image.rb +23 -1
- data/lib/openai/models/beta/beta_response_input_image_content.rb +23 -1
- data/lib/openai/models/beta/beta_response_input_text.rb +23 -1
- data/lib/openai/models/beta/beta_response_input_text_content.rb +23 -1
- data/lib/openai/models/beta/beta_response_item.rb +28 -1
- data/lib/openai/models/beta/beta_response_output_item.rb +28 -1
- data/lib/openai/models/beta/beta_response_tool_search_output_item_param.rb +26 -15
- data/lib/openai/models/beta/beta_tool.rb +26 -15
- data/lib/openai/models/beta/persisted_agent_tool.rb +18 -1
- data/lib/openai/models/beta/persisted_agent_tool_param.rb +18 -1
- data/lib/openai/models/chat/chat_completion_content_part.rb +23 -1
- data/lib/openai/models/chat/chat_completion_content_part_image.rb +23 -1
- data/lib/openai/models/chat/chat_completion_content_part_input_audio.rb +23 -1
- data/lib/openai/models/chat/chat_completion_content_part_text.rb +23 -1
- data/lib/openai/models/conversations/computer_screenshot_content.rb +23 -1
- data/lib/openai/models/decision_create_params.rb +802 -28
- data/lib/openai/models/decision_input_json.rb +45 -0
- data/lib/openai/models/decision_input_message.rb +304 -48
- data/lib/openai/models/decision_input_part.rb +4 -1
- data/lib/openai/models/decision_question_input_image.rb +54 -0
- data/lib/openai/models/decision_question_input_part.rb +23 -0
- data/lib/openai/models/decision_question_input_text.rb +21 -0
- data/lib/openai/models/image_edit_params.rb +20 -4
- data/lib/openai/models/image_generate_params.rb +23 -7
- data/lib/openai/models/image_model.rb +2 -0
- data/lib/openai/models/live/client_delegation.rb +20 -1
- data/lib/openai/models/live/client_event.rb +4 -4
- data/lib/openai/models/live/commentary_append_event.rb +1 -1
- data/lib/openai/models/live/decision_assistant_message.rb +154 -0
- data/lib/openai/models/live/decision_choice_option.rb +35 -0
- data/lib/openai/models/live/decision_developer_message.rb +70 -0
- data/lib/openai/models/live/decision_input_text.rb +26 -0
- data/lib/openai/models/live/decision_item_create_event.rb +490 -131
- data/lib/openai/models/live/decision_item_created_event.rb +486 -131
- data/lib/openai/models/live/decision_json_object.rb +10 -0
- data/lib/openai/models/live/decision_question.rb +172 -0
- data/lib/openai/models/live/decision_stored_assistant_message.rb +152 -0
- data/lib/openai/models/live/decision_stored_developer_message.rb +68 -0
- data/lib/openai/models/live/decision_stored_system_message.rb +68 -0
- data/lib/openai/models/live/decision_stored_user_message.rb +195 -0
- data/lib/openai/models/live/decision_system_message.rb +70 -0
- data/lib/openai/models/live/decision_trigger.rb +6 -185
- data/lib/openai/models/live/decision_user_message.rb +193 -0
- data/lib/openai/models/live/decisions_delegation_config.rb +5 -177
- data/lib/openai/models/live/decisions_delegation_update_config.rb +5 -184
- data/lib/openai/models/live/fork_client_event.rb +4 -4
- data/lib/openai/models/live/fork_server_event.rb +2 -2
- data/lib/openai/models/live/fork_session_config.rb +20 -1
- data/lib/openai/models/live/input_audio_muted_event.rb +3 -2
- data/lib/openai/models/live/input_audio_unmute_event.rb +2 -1
- data/lib/openai/models/live/input_audio_unmuted_event.rb +3 -2
- data/lib/openai/models/live/instructions_append_event.rb +5 -2
- data/lib/openai/models/live/media_session_config.rb +39 -2
- data/lib/openai/models/live/media_session_fork_config.rb +20 -1
- data/lib/openai/models/live/server_event.rb +2 -2
- data/lib/openai/models/live/session_accept_params.rb +39 -2
- data/lib/openai/models/live/session_config.rb +39 -2
- data/lib/openai/models/live/session_resource.rb +39 -2
- data/lib/openai/models/live/session_update_config.rb +41 -2
- data/lib/openai/models/live/sideband_client_event.rb +4 -4
- data/lib/openai/models/live/sideband_server_event.rb +2 -2
- data/lib/openai/models/live/thinking_append_event.rb +1 -1
- data/lib/openai/models/realtime/conversation_item_input_audio_transcription_delta_event.rb +10 -12
- data/lib/openai/models/realtime/realtime_error_event.rb +1 -1
- data/lib/openai/models/realtime/realtime_server_event.rb +1 -1
- data/lib/openai/models/realtime/realtime_translation_server_event.rb +1 -1
- data/lib/openai/models/responses/response_input_file.rb +23 -1
- data/lib/openai/models/responses/response_input_file_content.rb +23 -1
- data/lib/openai/models/responses/response_input_image.rb +23 -1
- data/lib/openai/models/responses/response_input_image_content.rb +23 -1
- data/lib/openai/models/responses/response_input_text.rb +23 -1
- data/lib/openai/models/responses/response_input_text_content.rb +23 -1
- data/lib/openai/models/responses/response_tool_search_output_item_param.rb +26 -15
- data/lib/openai/models/responses/tool.rb +26 -15
- data/lib/openai/models.rb +8 -0
- data/lib/openai/resources/beta/agents.rb +2 -2
- data/lib/openai/resources/beta/responses.rb +2 -2
- data/lib/openai/resources/decisions.rb +5 -6
- data/lib/openai/resources/images.rb +18 -6
- data/lib/openai/resources/live/forks.rb +2 -2
- data/lib/openai/resources/live/sideband.rb +2 -2
- data/lib/openai/resources/live.rb +2 -2
- data/lib/openai/resources/realtime/translations.rb +2 -2
- data/lib/openai/resources/realtime.rb +2 -2
- data/lib/openai/resources/responses.rb +2 -2
- data/lib/openai/version.rb +1 -1
- data/lib/openai.rb +16 -0
- data/rbi/openai/models/beta/agent.rbi +2 -1
- data/rbi/openai/models/beta/agent_create_params.rbi +6 -3
- data/rbi/openai/models/beta/agent_session.rbi +2 -1
- data/rbi/openai/models/beta/agent_tool.rbi +40 -1
- data/rbi/openai/models/beta/agent_tool_param.rbi +40 -1
- data/rbi/openai/models/beta/agent_update_params.rbi +6 -3
- data/rbi/openai/models/beta/agents/session_create_params.rbi +6 -3
- data/rbi/openai/models/beta/beta_response_input_file.rbi +31 -1
- data/rbi/openai/models/beta/beta_response_input_file_content.rbi +39 -1
- data/rbi/openai/models/beta/beta_response_input_image.rbi +31 -1
- data/rbi/openai/models/beta/beta_response_input_image_content.rbi +39 -1
- data/rbi/openai/models/beta/beta_response_input_text.rbi +31 -1
- data/rbi/openai/models/beta/beta_response_input_text_content.rbi +39 -1
- data/rbi/openai/models/beta/beta_response_item.rbi +58 -1
- data/rbi/openai/models/beta/beta_response_output_item.rbi +58 -1
- data/rbi/openai/models/beta/beta_response_tool_search_output_item_param.rbi +24 -15
- data/rbi/openai/models/beta/beta_tool.rbi +24 -15
- data/rbi/openai/models/beta/persisted_agent_tool.rbi +40 -1
- data/rbi/openai/models/beta/persisted_agent_tool_param.rbi +40 -1
- data/rbi/openai/models/chat/chat_completion_content_part.rbi +43 -1
- data/rbi/openai/models/chat/chat_completion_content_part_image.rbi +41 -1
- data/rbi/openai/models/chat/chat_completion_content_part_input_audio.rbi +46 -1
- data/rbi/openai/models/chat/chat_completion_content_part_text.rbi +39 -1
- data/rbi/openai/models/conversations/computer_screenshot_content.rbi +48 -1
- data/rbi/openai/models/decision_create_params.rbi +1273 -26
- data/rbi/openai/models/decision_input_json.rbi +75 -0
- data/rbi/openai/models/decision_input_message.rbi +455 -52
- data/rbi/openai/models/decision_input_part.rbi +2 -1
- data/rbi/openai/models/decision_question_input_image.rbi +82 -0
- data/rbi/openai/models/decision_question_input_part.rbi +25 -0
- data/rbi/openai/models/decision_question_input_text.rbi +49 -0
- data/rbi/openai/models/image_edit_params.rbi +12 -3
- data/rbi/openai/models/image_generate_params.rbi +15 -6
- data/rbi/openai/models/live/client_delegation.rbi +23 -1
- data/rbi/openai/models/live/commentary_append_event.rbi +1 -1
- data/rbi/openai/models/live/decision_assistant_message.rbi +247 -0
- data/rbi/openai/models/live/decision_choice_option.rbi +67 -0
- data/rbi/openai/models/live/decision_developer_message.rbi +109 -0
- data/rbi/openai/models/live/decision_input_text.rbi +55 -0
- data/rbi/openai/models/live/decision_item_create_event.rbi +765 -184
- data/rbi/openai/models/live/decision_item_created_event.rbi +737 -184
- data/rbi/openai/models/live/decision_json_object.rbi +16 -0
- data/rbi/openai/models/live/decision_question.rbi +300 -0
- data/rbi/openai/models/live/decision_stored_assistant_message.rbi +245 -0
- data/rbi/openai/models/live/decision_stored_developer_message.rbi +107 -0
- data/rbi/openai/models/live/decision_stored_system_message.rbi +107 -0
- data/rbi/openai/models/live/decision_stored_user_message.rbi +333 -0
- data/rbi/openai/models/live/decision_system_message.rbi +109 -0
- data/rbi/openai/models/live/decision_trigger.rbi +11 -320
- data/rbi/openai/models/live/decision_user_message.rbi +320 -0
- data/rbi/openai/models/live/decisions_delegation_config.rbi +10 -321
- data/rbi/openai/models/live/decisions_delegation_update_config.rbi +13 -324
- data/rbi/openai/models/live/fork_session_config.rbi +27 -1
- data/rbi/openai/models/live/input_audio_muted_event.rbi +3 -2
- data/rbi/openai/models/live/input_audio_unmute_event.rbi +2 -1
- data/rbi/openai/models/live/input_audio_unmuted_event.rbi +3 -2
- data/rbi/openai/models/live/instructions_append_event.rbi +5 -2
- data/rbi/openai/models/live/media_session_config.rbi +44 -2
- data/rbi/openai/models/live/media_session_fork_config.rbi +27 -1
- data/rbi/openai/models/live/session_accept_params.rbi +44 -2
- data/rbi/openai/models/live/session_config.rbi +44 -2
- data/rbi/openai/models/live/session_resource.rbi +44 -2
- data/rbi/openai/models/live/session_update_config.rbi +54 -2
- data/rbi/openai/models/live/thinking_append_event.rbi +1 -1
- data/rbi/openai/models/realtime/conversation_item_input_audio_transcription_delta_event.rbi +10 -12
- data/rbi/openai/models/realtime/realtime_error_event.rbi +1 -1
- data/rbi/openai/models/responses/response_input_file.rbi +31 -1
- data/rbi/openai/models/responses/response_input_file_content.rbi +39 -1
- data/rbi/openai/models/responses/response_input_image.rbi +33 -1
- data/rbi/openai/models/responses/response_input_image_content.rbi +41 -1
- data/rbi/openai/models/responses/response_input_text.rbi +31 -1
- data/rbi/openai/models/responses/response_input_text_content.rbi +39 -1
- data/rbi/openai/models/responses/response_tool_search_output_item_param.rbi +24 -15
- data/rbi/openai/models/responses/tool.rbi +24 -15
- data/rbi/openai/models.rbi +8 -0
- data/rbi/openai/resources/beta/agents.rbi +4 -2
- data/rbi/openai/resources/beta/responses.rbi +8 -1
- data/rbi/openai/resources/decisions.rbi +4 -5
- data/rbi/openai/resources/images.rbi +18 -6
- data/rbi/openai/resources/live/forks.rbi +8 -1
- data/rbi/openai/resources/live/sideband.rbi +8 -1
- data/rbi/openai/resources/live.rbi +8 -1
- data/rbi/openai/resources/realtime/translations.rbi +8 -1
- data/rbi/openai/resources/realtime.rbi +8 -1
- data/rbi/openai/resources/responses.rbi +8 -1
- data/sig/openai/models/beta/agent_tool.rbs +14 -0
- data/sig/openai/models/beta/agent_tool_param.rbs +14 -0
- data/sig/openai/models/beta/beta_response_input_file.rbs +34 -3
- data/sig/openai/models/beta/beta_response_input_file_content.rbs +34 -3
- data/sig/openai/models/beta/beta_response_input_image.rbs +34 -3
- data/sig/openai/models/beta/beta_response_input_image_content.rbs +34 -3
- data/sig/openai/models/beta/beta_response_input_text.rbs +34 -3
- data/sig/openai/models/beta/beta_response_input_text_content.rbs +34 -3
- data/sig/openai/models/beta/beta_response_item.rbs +34 -3
- data/sig/openai/models/beta/beta_response_output_item.rbs +34 -3
- data/sig/openai/models/beta/beta_response_tool_search_output_item_param.rbs +24 -15
- data/sig/openai/models/beta/beta_tool.rbs +24 -15
- data/sig/openai/models/beta/persisted_agent_tool.rbs +14 -0
- data/sig/openai/models/beta/persisted_agent_tool_param.rbs +14 -0
- data/sig/openai/models/chat/chat_completion_content_part.rbs +34 -3
- data/sig/openai/models/chat/chat_completion_content_part_image.rbs +34 -3
- data/sig/openai/models/chat/chat_completion_content_part_input_audio.rbs +34 -3
- data/sig/openai/models/chat/chat_completion_content_part_text.rbs +34 -3
- data/sig/openai/models/conversations/computer_screenshot_content.rbs +34 -3
- data/sig/openai/models/decision_create_params.rbs +610 -24
- data/sig/openai/models/decision_input_json.rbs +34 -0
- data/sig/openai/models/decision_input_message.rbs +264 -35
- data/sig/openai/models/decision_input_part.rbs +3 -1
- data/sig/openai/models/decision_question_input_image.rbs +51 -0
- data/sig/openai/models/decision_question_input_part.rbs +14 -0
- data/sig/openai/models/decision_question_input_text.rbs +15 -0
- data/sig/openai/models/image_edit_params.rbs +8 -2
- data/sig/openai/models/image_generate_params.rbs +10 -4
- data/sig/openai/models/live/client_delegation.rbs +30 -3
- data/sig/openai/models/live/decision_assistant_message.rbs +134 -0
- data/sig/openai/models/live/decision_choice_option.rbs +37 -0
- data/sig/openai/models/live/decision_developer_message.rbs +67 -0
- data/sig/openai/models/live/decision_input_text.rbs +20 -0
- data/sig/openai/models/live/decision_item_create_event.rbs +413 -131
- data/sig/openai/models/live/decision_item_created_event.rbs +401 -131
- data/sig/openai/models/live/decision_json_object.rbs +9 -0
- data/sig/openai/models/live/decision_question.rbs +164 -0
- data/sig/openai/models/live/decision_stored_assistant_message.rbs +131 -0
- data/sig/openai/models/live/decision_stored_developer_message.rbs +64 -0
- data/sig/openai/models/live/decision_stored_system_message.rbs +64 -0
- data/sig/openai/models/live/decision_stored_user_message.rbs +177 -0
- data/sig/openai/models/live/decision_system_message.rbs +67 -0
- data/sig/openai/models/live/decision_trigger.rbs +8 -171
- data/sig/openai/models/live/decision_user_message.rbs +180 -0
- data/sig/openai/models/live/decisions_delegation_config.rbs +6 -167
- data/sig/openai/models/live/decisions_delegation_update_config.rbs +8 -169
- data/sig/openai/models/live/fork_session_config.rbs +26 -0
- data/sig/openai/models/live/media_session_config.rbs +53 -4
- data/sig/openai/models/live/media_session_fork_config.rbs +26 -0
- data/sig/openai/models/live/session_accept_params.rbs +53 -4
- data/sig/openai/models/live/session_config.rbs +53 -4
- data/sig/openai/models/live/session_resource.rbs +53 -4
- data/sig/openai/models/live/session_update_config.rbs +52 -0
- data/sig/openai/models/realtime/conversation_item_input_audio_transcription_delta_event.rbs +10 -12
- data/sig/openai/models/responses/response_input_file.rbs +34 -3
- data/sig/openai/models/responses/response_input_file_content.rbs +34 -3
- data/sig/openai/models/responses/response_input_image.rbs +34 -3
- data/sig/openai/models/responses/response_input_image_content.rbs +34 -3
- data/sig/openai/models/responses/response_input_text.rbs +34 -3
- data/sig/openai/models/responses/response_input_text_content.rbs +34 -3
- data/sig/openai/models/responses/response_tool_search_output_item_param.rbs +24 -15
- data/sig/openai/models/responses/tool.rbs +24 -15
- data/sig/openai/models.rbs +9 -1
- data/sig/openai/resources/beta/responses.rbs +2 -1
- data/sig/openai/resources/live/forks.rbs +2 -1
- data/sig/openai/resources/live/sideband.rbs +2 -1
- data/sig/openai/resources/live.rbs +2 -1
- data/sig/openai/resources/realtime/translations.rbs +2 -1
- data/sig/openai/resources/realtime.rbs +2 -1
- data/sig/openai/resources/responses.rbs +2 -1
- 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::
|
|
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::
|
|
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::
|
|
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::
|
|
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
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
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
|
|
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
|
-
|
|
108
|
-
|
|
109
|
-
attr_accessor text: String
|
|
238
|
+
def self?.variants: -> ::Array[OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::FunctionCallOutput::Output::part]
|
|
239
|
+
end
|
|
110
240
|
|
|
111
|
-
|
|
112
|
-
attr_accessor type: :input_text
|
|
241
|
+
def self?.variants: -> ::Array[OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::FunctionCallOutput::output]
|
|
113
242
|
|
|
114
|
-
|
|
115
|
-
|
|
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
|
-
|
|
121
|
-
end
|
|
246
|
+
type status = :in_progress | :completed | :incomplete
|
|
122
247
|
|
|
123
|
-
|
|
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
|
-
|
|
175
|
-
|
|
251
|
+
IN_PROGRESS: :in_progress
|
|
252
|
+
COMPLETED: :completed
|
|
253
|
+
INCOMPLETE: :incomplete
|
|
176
254
|
|
|
177
|
-
|
|
255
|
+
def self?.values: -> ::Array[OpenAI::Models::Live::DecisionItemCreatedEvent::ItemUnion::FunctionCallOutput::status]
|
|
256
|
+
end
|
|
257
|
+
end
|
|
178
258
|
|
|
179
|
-
|
|
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
|
|
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
|
-
|
|
185
|
-
|
|
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
|
-
|
|
450
|
+
IN_PROGRESS: :in_progress
|
|
451
|
+
COMPLETED: :completed
|
|
452
|
+
INCOMPLETE: :incomplete
|
|
188
453
|
|
|
189
|
-
|
|
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
|