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
|
@@ -654,11 +654,14 @@ module OpenAI
|
|
|
654
654
|
optional :input_image_mask, -> { OpenAI::Beta::BetaTool::ImageGeneration::InputImageMask }
|
|
655
655
|
|
|
656
656
|
# @!attribute model
|
|
657
|
-
# The image generation model to use. One of `gpt-image-1`, `gpt-image-1
|
|
658
|
-
# `gpt-image-
|
|
659
|
-
# `gpt-image-2.5-sunburst`, `gpt-image-2.5-
|
|
660
|
-
# `gpt-image-2.5-flare
|
|
661
|
-
# `
|
|
657
|
+
# The image generation model to use. One of `gpt-image-1-mini`, `gpt-image-1.5`,
|
|
658
|
+
# `gpt-image-2`, `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
|
|
659
|
+
# `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
|
|
660
|
+
# `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:
|
|
661
|
+
# `gpt-image-2`.
|
|
662
|
+
#
|
|
663
|
+
# `gpt-image-1` was shut down on October 23, 2026. Use `gpt-image-2.5-sunburst` or
|
|
664
|
+
# `gpt-image-2.5-flare` instead.
|
|
662
665
|
#
|
|
663
666
|
# @return [String, Symbol, OpenAI::Models::Beta::BetaTool::ImageGeneration::Model, nil]
|
|
664
667
|
optional :model, union: -> { OpenAI::Beta::BetaTool::ImageGeneration::Model }
|
|
@@ -741,11 +744,14 @@ module OpenAI
|
|
|
741
744
|
# `file_id` (string, optional).
|
|
742
745
|
#
|
|
743
746
|
# @param model [String, Symbol, OpenAI::Models::Beta::BetaTool::ImageGeneration::Model]
|
|
744
|
-
# The image generation model to use. One of `gpt-image-1`, `gpt-image-1
|
|
745
|
-
# `gpt-image-
|
|
746
|
-
# `gpt-image-2.5-sunburst`, `gpt-image-2.5-
|
|
747
|
-
# `gpt-image-2.5-flare
|
|
748
|
-
# `
|
|
747
|
+
# The image generation model to use. One of `gpt-image-1-mini`, `gpt-image-1.5`,
|
|
748
|
+
# `gpt-image-2`, `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
|
|
749
|
+
# `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
|
|
750
|
+
# `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:
|
|
751
|
+
# `gpt-image-2`.
|
|
752
|
+
#
|
|
753
|
+
# `gpt-image-1` was shut down on October 23, 2026. Use `gpt-image-2.5-sunburst` or
|
|
754
|
+
# `gpt-image-2.5-flare` instead.
|
|
749
755
|
#
|
|
750
756
|
# @param moderation [Symbol, OpenAI::Models::Beta::BetaTool::ImageGeneration::Moderation]
|
|
751
757
|
# Moderation level for the generated image. Default: `auto`.
|
|
@@ -859,11 +865,14 @@ module OpenAI
|
|
|
859
865
|
# Base64-encoded mask image.
|
|
860
866
|
end
|
|
861
867
|
|
|
862
|
-
# The image generation model to use. One of `gpt-image-1`, `gpt-image-1
|
|
863
|
-
# `gpt-image-
|
|
864
|
-
# `gpt-image-2.5-sunburst`, `gpt-image-2.5-
|
|
865
|
-
# `gpt-image-2.5-flare
|
|
866
|
-
# `
|
|
868
|
+
# The image generation model to use. One of `gpt-image-1-mini`, `gpt-image-1.5`,
|
|
869
|
+
# `gpt-image-2`, `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
|
|
870
|
+
# `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
|
|
871
|
+
# `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:
|
|
872
|
+
# `gpt-image-2`.
|
|
873
|
+
#
|
|
874
|
+
# `gpt-image-1` was shut down on October 23, 2026. Use `gpt-image-2.5-sunburst` or
|
|
875
|
+
# `gpt-image-2.5-flare` instead.
|
|
867
876
|
#
|
|
868
877
|
# @see OpenAI::Models::Beta::BetaTool::ImageGeneration#model
|
|
869
878
|
module Model
|
|
@@ -904,6 +913,8 @@ module OpenAI
|
|
|
904
913
|
|
|
905
914
|
# @!group
|
|
906
915
|
|
|
916
|
+
# @deprecated GPT Image 1 was shut down on October 23, 2026. Use gpt-image-2.5-sunburst or
|
|
917
|
+
# gpt-image-2.5-flare instead.
|
|
907
918
|
GPT_IMAGE_1 = :"gpt-image-1"
|
|
908
919
|
GPT_IMAGE_1_MINI = :"gpt-image-1-mini"
|
|
909
920
|
GPT_IMAGE_2 = :"gpt-image-2"
|
|
@@ -27,6 +27,9 @@ module OpenAI
|
|
|
27
27
|
# Browser use in an OpenAI-hosted session.
|
|
28
28
|
variant :computer_use, -> { OpenAI::Beta::PersistedAgentTool::ComputerUse }
|
|
29
29
|
|
|
30
|
+
# Lets the agent manage its own scheduled wakeups.
|
|
31
|
+
variant :automations, -> { OpenAI::Beta::PersistedAgentTool::Automations }
|
|
32
|
+
|
|
30
33
|
class Function < OpenAI::Internal::Type::BaseModel
|
|
31
34
|
# @!attribute defer_loading
|
|
32
35
|
# Whether the function is deferred and discovered through tool search.
|
|
@@ -347,8 +350,22 @@ module OpenAI
|
|
|
347
350
|
# The type of the object. Always `computer_use`.
|
|
348
351
|
end
|
|
349
352
|
|
|
353
|
+
class Automations < OpenAI::Internal::Type::BaseModel
|
|
354
|
+
# @!attribute type
|
|
355
|
+
# The type of the object. Always `automations`.
|
|
356
|
+
#
|
|
357
|
+
# @return [Symbol, :automations]
|
|
358
|
+
required :type, const: :automations
|
|
359
|
+
|
|
360
|
+
# @!method initialize(type: :automations)
|
|
361
|
+
# Lets the agent manage its own scheduled wakeups.
|
|
362
|
+
#
|
|
363
|
+
# @param type [Symbol, :automations]
|
|
364
|
+
# The type of the object. Always `automations`.
|
|
365
|
+
end
|
|
366
|
+
|
|
350
367
|
# @!method self.variants
|
|
351
|
-
# @return [Array(OpenAI::Models::Beta::PersistedAgentTool::Function, OpenAI::Models::Beta::PersistedAgentTool::ToolSearch, OpenAI::Models::Beta::PersistedAgentTool::ProgrammaticToolCalling, OpenAI::Models::Beta::PersistedAgentTool::Mcp, OpenAI::Models::Beta::PersistedAgentTool::WebSearch, OpenAI::Models::Beta::PersistedAgentTool::ComputerUse)]
|
|
368
|
+
# @return [Array(OpenAI::Models::Beta::PersistedAgentTool::Function, OpenAI::Models::Beta::PersistedAgentTool::ToolSearch, OpenAI::Models::Beta::PersistedAgentTool::ProgrammaticToolCalling, OpenAI::Models::Beta::PersistedAgentTool::Mcp, OpenAI::Models::Beta::PersistedAgentTool::WebSearch, OpenAI::Models::Beta::PersistedAgentTool::ComputerUse, OpenAI::Models::Beta::PersistedAgentTool::Automations)]
|
|
352
369
|
end
|
|
353
370
|
end
|
|
354
371
|
end
|
|
@@ -27,6 +27,9 @@ module OpenAI
|
|
|
27
27
|
# Browser use in an OpenAI-hosted session.
|
|
28
28
|
variant :computer_use, -> { OpenAI::Beta::PersistedAgentToolParam::ComputerUse }
|
|
29
29
|
|
|
30
|
+
# Lets the agent manage its own scheduled wakeups.
|
|
31
|
+
variant :automations, -> { OpenAI::Beta::PersistedAgentToolParam::Automations }
|
|
32
|
+
|
|
30
33
|
class Function < OpenAI::Internal::Type::BaseModel
|
|
31
34
|
# @!attribute description
|
|
32
35
|
# A description of what the function does.
|
|
@@ -373,8 +376,22 @@ module OpenAI
|
|
|
373
376
|
# The type of the object. Always `computer_use`.
|
|
374
377
|
end
|
|
375
378
|
|
|
379
|
+
class Automations < OpenAI::Internal::Type::BaseModel
|
|
380
|
+
# @!attribute type
|
|
381
|
+
# The type of the object. Always `automations`.
|
|
382
|
+
#
|
|
383
|
+
# @return [Symbol, :automations]
|
|
384
|
+
required :type, const: :automations
|
|
385
|
+
|
|
386
|
+
# @!method initialize(type: :automations)
|
|
387
|
+
# Lets the agent manage its own scheduled wakeups.
|
|
388
|
+
#
|
|
389
|
+
# @param type [Symbol, :automations]
|
|
390
|
+
# The type of the object. Always `automations`.
|
|
391
|
+
end
|
|
392
|
+
|
|
376
393
|
# @!method self.variants
|
|
377
|
-
# @return [Array(OpenAI::Models::Beta::PersistedAgentToolParam::Function, OpenAI::Models::Beta::PersistedAgentToolParam::ToolSearch, OpenAI::Models::Beta::PersistedAgentToolParam::ProgrammaticToolCalling, OpenAI::Models::Beta::PersistedAgentToolParam::Mcp, OpenAI::Models::Beta::PersistedAgentToolParam::WebSearch, OpenAI::Models::Beta::PersistedAgentToolParam::ComputerUse)]
|
|
394
|
+
# @return [Array(OpenAI::Models::Beta::PersistedAgentToolParam::Function, OpenAI::Models::Beta::PersistedAgentToolParam::ToolSearch, OpenAI::Models::Beta::PersistedAgentToolParam::ProgrammaticToolCalling, OpenAI::Models::Beta::PersistedAgentToolParam::Mcp, OpenAI::Models::Beta::PersistedAgentToolParam::WebSearch, OpenAI::Models::Beta::PersistedAgentToolParam::ComputerUse, OpenAI::Models::Beta::PersistedAgentToolParam::Automations)]
|
|
378
395
|
end
|
|
379
396
|
end
|
|
380
397
|
end
|
|
@@ -99,13 +99,35 @@ module OpenAI
|
|
|
99
99
|
# @return [Symbol, :explicit]
|
|
100
100
|
required :mode, const: :explicit
|
|
101
101
|
|
|
102
|
-
# @!
|
|
102
|
+
# @!attribute ttl
|
|
103
|
+
# The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
|
|
104
|
+
#
|
|
105
|
+
# @return [Symbol, OpenAI::Models::Chat::ChatCompletionContentPart::File::PromptCacheBreakpoint::Ttl, nil]
|
|
106
|
+
optional :ttl, enum: -> { OpenAI::Chat::ChatCompletionContentPart::File::PromptCacheBreakpoint::Ttl }
|
|
107
|
+
|
|
108
|
+
# @!method initialize(ttl: nil, mode: :explicit)
|
|
103
109
|
# Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
|
|
104
110
|
# from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
|
|
105
111
|
# token block.
|
|
106
112
|
#
|
|
113
|
+
# @param ttl [Symbol, OpenAI::Models::Chat::ChatCompletionContentPart::File::PromptCacheBreakpoint::Ttl]
|
|
114
|
+
# The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
|
|
115
|
+
#
|
|
107
116
|
# @param mode [Symbol, :explicit]
|
|
108
117
|
# The breakpoint mode. Always `explicit`.
|
|
118
|
+
|
|
119
|
+
# The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
|
|
120
|
+
#
|
|
121
|
+
# @see OpenAI::Models::Chat::ChatCompletionContentPart::File::PromptCacheBreakpoint#ttl
|
|
122
|
+
module Ttl
|
|
123
|
+
extend OpenAI::Internal::Type::Enum
|
|
124
|
+
|
|
125
|
+
TTL_30M = :"30m"
|
|
126
|
+
TTL_12H = :"12h"
|
|
127
|
+
|
|
128
|
+
# @!method self.values
|
|
129
|
+
# @return [Array<Symbol>]
|
|
130
|
+
end
|
|
109
131
|
end
|
|
110
132
|
end
|
|
111
133
|
|
|
@@ -88,13 +88,35 @@ module OpenAI
|
|
|
88
88
|
# @return [Symbol, :explicit]
|
|
89
89
|
required :mode, const: :explicit
|
|
90
90
|
|
|
91
|
-
# @!
|
|
91
|
+
# @!attribute ttl
|
|
92
|
+
# The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
|
|
93
|
+
#
|
|
94
|
+
# @return [Symbol, OpenAI::Models::Chat::ChatCompletionContentPartImage::PromptCacheBreakpoint::Ttl, nil]
|
|
95
|
+
optional :ttl, enum: -> { OpenAI::Chat::ChatCompletionContentPartImage::PromptCacheBreakpoint::Ttl }
|
|
96
|
+
|
|
97
|
+
# @!method initialize(ttl: nil, mode: :explicit)
|
|
92
98
|
# Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
|
|
93
99
|
# from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
|
|
94
100
|
# token block.
|
|
95
101
|
#
|
|
102
|
+
# @param ttl [Symbol, OpenAI::Models::Chat::ChatCompletionContentPartImage::PromptCacheBreakpoint::Ttl]
|
|
103
|
+
# The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
|
|
104
|
+
#
|
|
96
105
|
# @param mode [Symbol, :explicit]
|
|
97
106
|
# The breakpoint mode. Always `explicit`.
|
|
107
|
+
|
|
108
|
+
# The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
|
|
109
|
+
#
|
|
110
|
+
# @see OpenAI::Models::Chat::ChatCompletionContentPartImage::PromptCacheBreakpoint#ttl
|
|
111
|
+
module Ttl
|
|
112
|
+
extend OpenAI::Internal::Type::Enum
|
|
113
|
+
|
|
114
|
+
TTL_30M = :"30m"
|
|
115
|
+
TTL_12H = :"12h"
|
|
116
|
+
|
|
117
|
+
# @!method self.values
|
|
118
|
+
# @return [Array<Symbol>]
|
|
119
|
+
end
|
|
98
120
|
end
|
|
99
121
|
end
|
|
100
122
|
end
|
|
@@ -86,13 +86,35 @@ module OpenAI
|
|
|
86
86
|
# @return [Symbol, :explicit]
|
|
87
87
|
required :mode, const: :explicit
|
|
88
88
|
|
|
89
|
-
# @!
|
|
89
|
+
# @!attribute ttl
|
|
90
|
+
# The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
|
|
91
|
+
#
|
|
92
|
+
# @return [Symbol, OpenAI::Models::Chat::ChatCompletionContentPartInputAudio::PromptCacheBreakpoint::Ttl, nil]
|
|
93
|
+
optional :ttl, enum: -> { OpenAI::Chat::ChatCompletionContentPartInputAudio::PromptCacheBreakpoint::Ttl }
|
|
94
|
+
|
|
95
|
+
# @!method initialize(ttl: nil, mode: :explicit)
|
|
90
96
|
# Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
|
|
91
97
|
# from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
|
|
92
98
|
# token block.
|
|
93
99
|
#
|
|
100
|
+
# @param ttl [Symbol, OpenAI::Models::Chat::ChatCompletionContentPartInputAudio::PromptCacheBreakpoint::Ttl]
|
|
101
|
+
# The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
|
|
102
|
+
#
|
|
94
103
|
# @param mode [Symbol, :explicit]
|
|
95
104
|
# The breakpoint mode. Always `explicit`.
|
|
105
|
+
|
|
106
|
+
# The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
|
|
107
|
+
#
|
|
108
|
+
# @see OpenAI::Models::Chat::ChatCompletionContentPartInputAudio::PromptCacheBreakpoint#ttl
|
|
109
|
+
module Ttl
|
|
110
|
+
extend OpenAI::Internal::Type::Enum
|
|
111
|
+
|
|
112
|
+
TTL_30M = :"30m"
|
|
113
|
+
TTL_12H = :"12h"
|
|
114
|
+
|
|
115
|
+
# @!method self.values
|
|
116
|
+
# @return [Array<Symbol>]
|
|
117
|
+
end
|
|
96
118
|
end
|
|
97
119
|
end
|
|
98
120
|
end
|
|
@@ -49,13 +49,35 @@ module OpenAI
|
|
|
49
49
|
# @return [Symbol, :explicit]
|
|
50
50
|
required :mode, const: :explicit
|
|
51
51
|
|
|
52
|
-
# @!
|
|
52
|
+
# @!attribute ttl
|
|
53
|
+
# The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
|
|
54
|
+
#
|
|
55
|
+
# @return [Symbol, OpenAI::Models::Chat::ChatCompletionContentPartText::PromptCacheBreakpoint::Ttl, nil]
|
|
56
|
+
optional :ttl, enum: -> { OpenAI::Chat::ChatCompletionContentPartText::PromptCacheBreakpoint::Ttl }
|
|
57
|
+
|
|
58
|
+
# @!method initialize(ttl: nil, mode: :explicit)
|
|
53
59
|
# Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
|
|
54
60
|
# from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
|
|
55
61
|
# token block.
|
|
56
62
|
#
|
|
63
|
+
# @param ttl [Symbol, OpenAI::Models::Chat::ChatCompletionContentPartText::PromptCacheBreakpoint::Ttl]
|
|
64
|
+
# The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
|
|
65
|
+
#
|
|
57
66
|
# @param mode [Symbol, :explicit]
|
|
58
67
|
# The breakpoint mode. Always `explicit`.
|
|
68
|
+
|
|
69
|
+
# The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
|
|
70
|
+
#
|
|
71
|
+
# @see OpenAI::Models::Chat::ChatCompletionContentPartText::PromptCacheBreakpoint#ttl
|
|
72
|
+
module Ttl
|
|
73
|
+
extend OpenAI::Internal::Type::Enum
|
|
74
|
+
|
|
75
|
+
TTL_30M = :"30m"
|
|
76
|
+
TTL_12H = :"12h"
|
|
77
|
+
|
|
78
|
+
# @!method self.values
|
|
79
|
+
# @return [Array<Symbol>]
|
|
80
|
+
end
|
|
59
81
|
end
|
|
60
82
|
end
|
|
61
83
|
end
|
|
@@ -87,13 +87,35 @@ module OpenAI
|
|
|
87
87
|
# @return [Symbol, :explicit]
|
|
88
88
|
required :mode, const: :explicit
|
|
89
89
|
|
|
90
|
-
# @!
|
|
90
|
+
# @!attribute ttl
|
|
91
|
+
# The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
|
|
92
|
+
#
|
|
93
|
+
# @return [Symbol, OpenAI::Models::Conversations::ComputerScreenshotContent::PromptCacheBreakpoint::Ttl, nil]
|
|
94
|
+
optional :ttl, enum: -> { OpenAI::Conversations::ComputerScreenshotContent::PromptCacheBreakpoint::Ttl }
|
|
95
|
+
|
|
96
|
+
# @!method initialize(ttl: nil, mode: :explicit)
|
|
91
97
|
# Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
|
|
92
98
|
# from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
|
|
93
99
|
# token block.
|
|
94
100
|
#
|
|
101
|
+
# @param ttl [Symbol, OpenAI::Models::Conversations::ComputerScreenshotContent::PromptCacheBreakpoint::Ttl]
|
|
102
|
+
# The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
|
|
103
|
+
#
|
|
95
104
|
# @param mode [Symbol, :explicit]
|
|
96
105
|
# The breakpoint mode. Always `explicit`.
|
|
106
|
+
|
|
107
|
+
# The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
|
|
108
|
+
#
|
|
109
|
+
# @see OpenAI::Models::Conversations::ComputerScreenshotContent::PromptCacheBreakpoint#ttl
|
|
110
|
+
module Ttl
|
|
111
|
+
extend OpenAI::Internal::Type::Enum
|
|
112
|
+
|
|
113
|
+
TTL_30M = :"30m"
|
|
114
|
+
TTL_12H = :"12h"
|
|
115
|
+
|
|
116
|
+
# @!method self.values
|
|
117
|
+
# @return [Array<Symbol>]
|
|
118
|
+
end
|
|
97
119
|
end
|
|
98
120
|
end
|
|
99
121
|
end
|