openai 0.68.0 → 0.69.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 +23 -0
- data/README.md +7 -7
- data/lib/openai/internal/type/enum.rb +6 -6
- data/lib/openai/internal/util.rb +14 -2
- data/lib/openai/models/beta/assistant_create_params.rb +7 -14
- data/lib/openai/models/beta/assistant_update_params.rb +7 -14
- data/lib/openai/models/beta/beta_apply_patch_tool.rb +44 -0
- data/lib/openai/models/beta/beta_compacted_response.rb +58 -0
- data/lib/openai/models/beta/beta_computer_action.rb +398 -0
- data/lib/openai/models/beta/beta_computer_action_list.rb +13 -0
- data/lib/openai/models/beta/beta_computer_tool.rb +23 -0
- data/lib/openai/models/beta/beta_computer_use_preview_tool.rb +63 -0
- data/lib/openai/models/beta/beta_container_auto.rb +96 -0
- data/lib/openai/models/beta/beta_container_network_policy_allowlist.rb +37 -0
- data/lib/openai/models/beta/beta_container_network_policy_disabled.rb +20 -0
- data/lib/openai/models/beta/beta_container_network_policy_domain_secret.rb +36 -0
- data/lib/openai/models/beta/beta_container_reference.rb +28 -0
- data/lib/openai/models/beta/beta_custom_tool.rb +148 -0
- data/lib/openai/models/beta/beta_easy_input_message.rb +120 -0
- data/lib/openai/models/beta/beta_file_search_tool.rb +424 -0
- data/lib/openai/models/beta/beta_function_shell_tool.rb +67 -0
- data/lib/openai/models/beta/beta_function_tool.rb +97 -0
- data/lib/openai/models/beta/beta_inline_skill.rb +44 -0
- data/lib/openai/models/beta/beta_inline_skill_source.rb +38 -0
- data/lib/openai/models/beta/beta_local_environment.rb +28 -0
- data/lib/openai/models/beta/beta_local_skill.rb +36 -0
- data/lib/openai/models/beta/beta_namespace_tool.rb +146 -0
- data/lib/openai/models/beta/beta_response.rb +1425 -0
- data/lib/openai/models/beta/beta_response_apply_patch_tool_call.rb +258 -0
- data/lib/openai/models/beta/beta_response_apply_patch_tool_call_output.rb +156 -0
- data/lib/openai/models/beta/beta_response_audio_delta_event.rb +63 -0
- data/lib/openai/models/beta/beta_response_audio_done_event.rb +55 -0
- data/lib/openai/models/beta/beta_response_audio_transcript_delta_event.rb +63 -0
- data/lib/openai/models/beta/beta_response_audio_transcript_done_event.rb +55 -0
- data/lib/openai/models/beta/beta_response_code_interpreter_call_code_delta_event.rb +81 -0
- data/lib/openai/models/beta/beta_response_code_interpreter_call_code_done_event.rb +76 -0
- data/lib/openai/models/beta/beta_response_code_interpreter_call_completed_event.rb +73 -0
- data/lib/openai/models/beta/beta_response_code_interpreter_call_in_progress_event.rb +77 -0
- data/lib/openai/models/beta/beta_response_code_interpreter_call_interpreting_event.rb +77 -0
- data/lib/openai/models/beta/beta_response_code_interpreter_tool_call.rb +168 -0
- data/lib/openai/models/beta/beta_response_compaction_item.rb +69 -0
- data/lib/openai/models/beta/beta_response_compaction_item_param.rb +61 -0
- data/lib/openai/models/beta/beta_response_completed_event.rb +63 -0
- data/lib/openai/models/beta/beta_response_computer_tool_call.rb +156 -0
- data/lib/openai/models/beta/beta_response_computer_tool_call_output_item.rb +141 -0
- data/lib/openai/models/beta/beta_response_computer_tool_call_output_screenshot.rb +43 -0
- data/lib/openai/models/beta/beta_response_container_reference.rb +29 -0
- data/lib/openai/models/beta/beta_response_content.rb +56 -0
- data/lib/openai/models/beta/beta_response_content_part_added_event.rb +129 -0
- data/lib/openai/models/beta/beta_response_content_part_done_event.rb +129 -0
- data/lib/openai/models/beta/beta_response_conversation_param.rb +22 -0
- data/lib/openai/models/beta/beta_response_created_event.rb +63 -0
- data/lib/openai/models/beta/beta_response_custom_tool_call.rb +142 -0
- data/lib/openai/models/beta/beta_response_custom_tool_call_input_delta_event.rb +76 -0
- data/lib/openai/models/beta/beta_response_custom_tool_call_input_done_event.rb +76 -0
- data/lib/openai/models/beta/beta_response_custom_tool_call_item.rb +55 -0
- data/lib/openai/models/beta/beta_response_custom_tool_call_output.rb +171 -0
- data/lib/openai/models/beta/beta_response_custom_tool_call_output_item.rb +55 -0
- data/lib/openai/models/beta/beta_response_error.rb +63 -0
- data/lib/openai/models/beta/beta_response_error_event.rb +79 -0
- data/lib/openai/models/beta/beta_response_failed_event.rb +63 -0
- data/lib/openai/models/beta/beta_response_file_search_call_completed_event.rb +72 -0
- data/lib/openai/models/beta/beta_response_file_search_call_in_progress_event.rb +72 -0
- data/lib/openai/models/beta/beta_response_file_search_call_searching_event.rb +72 -0
- data/lib/openai/models/beta/beta_response_file_search_tool_call.rb +168 -0
- data/lib/openai/models/beta/beta_response_format_text_config.rb +72 -0
- data/lib/openai/models/beta/beta_response_format_text_json_schema_config.rb +66 -0
- data/lib/openai/models/beta/beta_response_function_call_arguments_delta_event.rb +80 -0
- data/lib/openai/models/beta/beta_response_function_call_arguments_done_event.rb +83 -0
- data/lib/openai/models/beta/beta_response_function_call_output_item.rb +28 -0
- data/lib/openai/models/beta/beta_response_function_call_output_item_list.rb +14 -0
- data/lib/openai/models/beta/beta_response_function_shell_call_output_content.rb +90 -0
- data/lib/openai/models/beta/beta_response_function_shell_tool_call.rb +216 -0
- data/lib/openai/models/beta/beta_response_function_shell_tool_call_output.rb +265 -0
- data/lib/openai/models/beta/beta_response_function_tool_call.rb +168 -0
- data/lib/openai/models/beta/beta_response_function_tool_call_item.rb +57 -0
- data/lib/openai/models/beta/beta_response_function_tool_call_output_item.rb +201 -0
- data/lib/openai/models/beta/beta_response_function_web_search.rb +238 -0
- data/lib/openai/models/beta/beta_response_image_gen_call_completed_event.rb +69 -0
- data/lib/openai/models/beta/beta_response_image_gen_call_generating_event.rb +69 -0
- data/lib/openai/models/beta/beta_response_image_gen_call_in_progress_event.rb +68 -0
- data/lib/openai/models/beta/beta_response_image_gen_call_partial_image_event.rb +89 -0
- data/lib/openai/models/beta/beta_response_in_progress_event.rb +63 -0
- data/lib/openai/models/beta/beta_response_includable.rb +45 -0
- data/lib/openai/models/beta/beta_response_incomplete_event.rb +63 -0
- data/lib/openai/models/beta/beta_response_inject_created_event.rb +51 -0
- data/lib/openai/models/beta/beta_response_inject_event.rb +40 -0
- data/lib/openai/models/beta/beta_response_inject_failed_event.rb +103 -0
- data/lib/openai/models/beta/beta_response_input.rb +13 -0
- data/lib/openai/models/beta/beta_response_input_audio.rb +70 -0
- data/lib/openai/models/beta/beta_response_input_content.rb +28 -0
- data/lib/openai/models/beta/beta_response_input_file.rb +113 -0
- data/lib/openai/models/beta/beta_response_input_file_content.rb +115 -0
- data/lib/openai/models/beta/beta_response_input_image.rb +94 -0
- data/lib/openai/models/beta/beta_response_input_image_content.rb +96 -0
- data/lib/openai/models/beta/beta_response_input_item.rb +2819 -0
- data/lib/openai/models/beta/beta_response_input_message_content_list.rb +14 -0
- data/lib/openai/models/beta/beta_response_input_message_item.rb +108 -0
- data/lib/openai/models/beta/beta_response_input_text.rb +59 -0
- data/lib/openai/models/beta/beta_response_input_text_content.rb +61 -0
- data/lib/openai/models/beta/beta_response_item.rb +1438 -0
- data/lib/openai/models/beta/beta_response_local_environment.rb +22 -0
- data/lib/openai/models/beta/beta_response_mcp_call_arguments_delta_event.rb +81 -0
- data/lib/openai/models/beta/beta_response_mcp_call_arguments_done_event.rb +79 -0
- data/lib/openai/models/beta/beta_response_mcp_call_completed_event.rb +68 -0
- data/lib/openai/models/beta/beta_response_mcp_call_failed_event.rb +68 -0
- data/lib/openai/models/beta/beta_response_mcp_call_in_progress_event.rb +68 -0
- data/lib/openai/models/beta/beta_response_mcp_list_tools_completed_event.rb +68 -0
- data/lib/openai/models/beta/beta_response_mcp_list_tools_failed_event.rb +68 -0
- data/lib/openai/models/beta/beta_response_mcp_list_tools_in_progress_event.rb +69 -0
- data/lib/openai/models/beta/beta_response_output_audio.rb +41 -0
- data/lib/openai/models/beta/beta_response_output_item.rb +1444 -0
- data/lib/openai/models/beta/beta_response_output_item_added_event.rb +71 -0
- data/lib/openai/models/beta/beta_response_output_item_done_event.rb +71 -0
- data/lib/openai/models/beta/beta_response_output_message.rb +139 -0
- data/lib/openai/models/beta/beta_response_output_refusal.rb +30 -0
- data/lib/openai/models/beta/beta_response_output_text.rb +292 -0
- data/lib/openai/models/beta/beta_response_output_text_annotation_added_event.rb +92 -0
- data/lib/openai/models/beta/beta_response_prompt.rb +65 -0
- data/lib/openai/models/beta/beta_response_queued_event.rb +60 -0
- data/lib/openai/models/beta/beta_response_reasoning_item.rb +151 -0
- data/lib/openai/models/beta/beta_response_reasoning_summary_part_added_event.rb +110 -0
- data/lib/openai/models/beta/beta_response_reasoning_summary_part_done_event.rb +132 -0
- data/lib/openai/models/beta/beta_response_reasoning_summary_text_delta_event.rb +88 -0
- data/lib/openai/models/beta/beta_response_reasoning_summary_text_done_event.rb +88 -0
- data/lib/openai/models/beta/beta_response_reasoning_text_delta_event.rb +87 -0
- data/lib/openai/models/beta/beta_response_reasoning_text_done_event.rb +87 -0
- data/lib/openai/models/beta/beta_response_refusal_delta_event.rb +87 -0
- data/lib/openai/models/beta/beta_response_refusal_done_event.rb +87 -0
- data/lib/openai/models/beta/beta_response_status.rb +25 -0
- data/lib/openai/models/beta/beta_response_stream_event.rb +203 -0
- data/lib/openai/models/beta/beta_response_text_config.rb +67 -0
- data/lib/openai/models/beta/beta_response_text_delta_event.rb +150 -0
- data/lib/openai/models/beta/beta_response_text_done_event.rb +150 -0
- data/lib/openai/models/beta/beta_response_tool_search_call.rb +117 -0
- data/lib/openai/models/beta/beta_response_tool_search_output_item.rb +117 -0
- data/lib/openai/models/beta/beta_response_tool_search_output_item_param.rb +109 -0
- data/lib/openai/models/beta/beta_response_usage.rb +95 -0
- data/lib/openai/models/beta/beta_response_web_search_call_completed_event.rb +72 -0
- data/lib/openai/models/beta/beta_response_web_search_call_in_progress_event.rb +72 -0
- data/lib/openai/models/beta/beta_response_web_search_call_searching_event.rb +72 -0
- data/lib/openai/models/beta/beta_responses_client_event.rb +1432 -0
- data/lib/openai/models/beta/beta_responses_server_event.rb +212 -0
- data/lib/openai/models/beta/beta_skill_reference.rb +36 -0
- data/lib/openai/models/beta/beta_tool.rb +910 -0
- data/lib/openai/models/beta/beta_tool_choice_allowed.rb +75 -0
- data/lib/openai/models/beta/beta_tool_choice_apply_patch.rb +22 -0
- data/lib/openai/models/beta/beta_tool_choice_custom.rb +30 -0
- data/lib/openai/models/beta/beta_tool_choice_function.rb +30 -0
- data/lib/openai/models/beta/beta_tool_choice_mcp.rb +42 -0
- data/lib/openai/models/beta/beta_tool_choice_options.rb +28 -0
- data/lib/openai/models/beta/beta_tool_choice_shell.rb +22 -0
- data/lib/openai/models/beta/beta_tool_choice_types.rb +67 -0
- data/lib/openai/models/beta/beta_tool_search_tool.rb +59 -0
- data/lib/openai/models/beta/beta_web_search_preview_tool.rb +143 -0
- data/lib/openai/models/beta/beta_web_search_tool.rb +162 -0
- data/lib/openai/models/beta/response_cancel_params.rb +37 -0
- data/lib/openai/models/beta/response_compact_params.rb +549 -0
- data/lib/openai/models/beta/response_create_params.rb +1343 -0
- data/lib/openai/models/beta/response_delete_params.rb +37 -0
- data/lib/openai/models/beta/response_retrieve_params.rb +74 -0
- data/lib/openai/models/beta/responses/beta_response_item_list.rb +54 -0
- data/lib/openai/models/beta/responses/input_item_list_params.rb +96 -0
- data/lib/openai/models/beta/responses/input_token_count_params.rb +542 -0
- data/lib/openai/models/beta/responses/input_token_count_response.rb +26 -0
- data/lib/openai/models/beta/threads/run_create_params.rb +7 -14
- data/lib/openai/models/chat/chat_completion_content_part.rb +31 -1
- data/lib/openai/models/chat/chat_completion_content_part_image.rb +31 -1
- data/lib/openai/models/chat/chat_completion_content_part_input_audio.rb +31 -1
- data/lib/openai/models/chat/chat_completion_content_part_text.rb +31 -1
- data/lib/openai/models/chat/completion_create_params.rb +200 -19
- data/lib/openai/models/chat_model.rb +3 -0
- data/lib/openai/models/completion_usage.rb +9 -1
- data/lib/openai/models/conversations/computer_screenshot_content.rb +28 -1
- data/lib/openai/models/conversations/conversation_create_params.rb +2 -2
- data/lib/openai/models/conversations/conversation_item.rb +106 -3
- data/lib/openai/models/conversations/conversation_item_list.rb +2 -2
- data/lib/openai/models/conversations/item_create_params.rb +2 -2
- data/lib/openai/models/evals/create_eval_completions_run_data_source.rb +7 -14
- data/lib/openai/models/evals/run_cancel_response.rb +16 -30
- data/lib/openai/models/evals/run_create_params.rb +16 -30
- data/lib/openai/models/evals/run_create_response.rb +16 -30
- data/lib/openai/models/evals/run_list_response.rb +16 -30
- data/lib/openai/models/evals/run_retrieve_response.rb +16 -30
- data/lib/openai/models/graders/score_model_grader.rb +7 -14
- data/lib/openai/models/realtime/realtime_response_create_mcp_tool.rb +23 -1
- data/lib/openai/models/realtime/realtime_session_create_request.rb +6 -0
- data/lib/openai/models/realtime/realtime_session_create_response.rb +29 -1
- data/lib/openai/models/realtime/realtime_tools_config_union.rb +23 -1
- data/lib/openai/models/reasoning.rb +47 -15
- data/lib/openai/models/reasoning_effort.rb +7 -13
- data/lib/openai/models/responses/apply_patch_tool.rb +23 -1
- data/lib/openai/models/responses/compacted_response.rb +2 -2
- data/lib/openai/models/responses/custom_tool.rb +21 -1
- data/lib/openai/models/responses/function_shell_tool.rb +23 -1
- data/lib/openai/models/responses/function_tool.rb +32 -3
- data/lib/openai/models/responses/input_token_count_params.rb +21 -8
- data/lib/openai/models/responses/namespace_tool.rb +41 -2
- data/lib/openai/models/responses/response.rb +98 -14
- data/lib/openai/models/responses/response_apply_patch_tool_call.rb +56 -1
- data/lib/openai/models/responses/response_apply_patch_tool_call_output.rb +56 -1
- data/lib/openai/models/responses/response_compact_params.rb +107 -4
- data/lib/openai/models/responses/response_create_params.rb +214 -13
- data/lib/openai/models/responses/response_custom_tool_call.rb +56 -1
- data/lib/openai/models/responses/response_custom_tool_call_output.rb +58 -1
- data/lib/openai/models/responses/response_error.rb +1 -0
- data/lib/openai/models/responses/response_function_shell_tool_call.rb +56 -1
- data/lib/openai/models/responses/response_function_shell_tool_call_output.rb +56 -1
- data/lib/openai/models/responses/response_function_tool_call.rb +56 -1
- data/lib/openai/models/responses/response_function_tool_call_output_item.rb +58 -1
- data/lib/openai/models/responses/response_input_file.rb +39 -8
- data/lib/openai/models/responses/response_input_file_content.rb +41 -8
- data/lib/openai/models/responses/response_input_image.rb +27 -1
- data/lib/openai/models/responses/response_input_image_content.rb +29 -1
- data/lib/openai/models/responses/response_input_item.rb +396 -8
- data/lib/openai/models/responses/response_input_text.rb +30 -1
- data/lib/openai/models/responses/response_input_text_content.rb +32 -1
- data/lib/openai/models/responses/response_item.rb +106 -3
- data/lib/openai/models/responses/response_item_list.rb +2 -2
- data/lib/openai/models/responses/response_output_item.rb +106 -3
- data/lib/openai/models/responses/response_output_item_added_event.rb +2 -2
- data/lib/openai/models/responses/response_output_item_done_event.rb +2 -2
- data/lib/openai/models/responses/response_reasoning_summary_part_done_event.rb +23 -1
- data/lib/openai/models/responses/response_tool_search_output_item.rb +2 -2
- data/lib/openai/models/responses/response_tool_search_output_item_param.rb +2 -2
- data/lib/openai/models/responses/response_usage.rb +9 -1
- data/lib/openai/models/responses/responses_client_event.rb +215 -13
- data/lib/openai/models/responses/tool.rb +58 -3
- data/lib/openai/models/webhooks/safety_identifier_blocked_webhook_event.rb +118 -0
- data/lib/openai/models/webhooks/unwrap_webhook_event.rb +4 -1
- data/lib/openai/resources/beta/assistants.rb +2 -2
- data/lib/openai/resources/beta/responses/input_items.rb +58 -0
- data/lib/openai/resources/beta/responses/input_tokens.rb +73 -0
- data/lib/openai/resources/beta/responses.rb +440 -0
- data/lib/openai/resources/beta/threads/runs.rb +2 -2
- data/lib/openai/resources/beta.rb +4 -0
- data/lib/openai/resources/chat/completions.rb +10 -6
- data/lib/openai/resources/conversations/items.rb +3 -3
- data/lib/openai/resources/conversations.rb +1 -1
- data/lib/openai/resources/responses/input_items.rb +1 -1
- data/lib/openai/resources/responses/input_tokens.rb +3 -3
- data/lib/openai/resources/responses.rb +22 -12
- data/lib/openai/resources/webhooks.rb +1 -1
- data/lib/openai/version.rb +1 -1
- data/lib/openai.rb +163 -0
- data/rbi/openai/models/beta/assistant_create_params.rbi +12 -26
- data/rbi/openai/models/beta/assistant_update_params.rbi +12 -26
- data/rbi/openai/models/beta/beta_apply_patch_tool.rbi +99 -0
- data/rbi/openai/models/beta/beta_compacted_response.rbi +120 -0
- data/rbi/openai/models/beta/beta_computer_action.rbi +593 -0
- data/rbi/openai/models/beta/beta_computer_action_list.rbi +18 -0
- data/rbi/openai/models/beta/beta_computer_tool.rbi +33 -0
- data/rbi/openai/models/beta/beta_computer_use_preview_tool.rbi +126 -0
- data/rbi/openai/models/beta/beta_container_auto.rbi +231 -0
- data/rbi/openai/models/beta/beta_container_network_policy_allowlist.rbi +81 -0
- data/rbi/openai/models/beta/beta_container_network_policy_disabled.rbi +35 -0
- data/rbi/openai/models/beta/beta_container_network_policy_domain_secret.rbi +53 -0
- data/rbi/openai/models/beta/beta_container_reference.rbi +42 -0
- data/rbi/openai/models/beta/beta_custom_tool.rbi +302 -0
- data/rbi/openai/models/beta/beta_easy_input_message.rbi +211 -0
- data/rbi/openai/models/beta/beta_file_search_tool.rbi +863 -0
- data/rbi/openai/models/beta/beta_function_shell_tool.rbi +155 -0
- data/rbi/openai/models/beta/beta_function_tool.rbi +154 -0
- data/rbi/openai/models/beta/beta_inline_skill.rbi +68 -0
- data/rbi/openai/models/beta/beta_inline_skill_source.rbi +53 -0
- data/rbi/openai/models/beta/beta_local_environment.rbi +51 -0
- data/rbi/openai/models/beta/beta_local_skill.rbi +49 -0
- data/rbi/openai/models/beta/beta_namespace_tool.rbi +252 -0
- data/rbi/openai/models/beta/beta_response.rbi +2495 -0
- data/rbi/openai/models/beta/beta_response_apply_patch_tool_call.rbi +431 -0
- data/rbi/openai/models/beta/beta_response_apply_patch_tool_call_output.rbi +277 -0
- data/rbi/openai/models/beta/beta_response_audio_delta_event.rbi +110 -0
- data/rbi/openai/models/beta/beta_response_audio_done_event.rbi +100 -0
- data/rbi/openai/models/beta/beta_response_audio_transcript_delta_event.rbi +118 -0
- data/rbi/openai/models/beta/beta_response_audio_transcript_done_event.rbi +108 -0
- data/rbi/openai/models/beta/beta_response_code_interpreter_call_code_delta_event.rbi +136 -0
- data/rbi/openai/models/beta/beta_response_code_interpreter_call_code_done_event.rbi +134 -0
- data/rbi/openai/models/beta/beta_response_code_interpreter_call_completed_event.rbi +128 -0
- data/rbi/openai/models/beta/beta_response_code_interpreter_call_in_progress_event.rbi +128 -0
- data/rbi/openai/models/beta/beta_response_code_interpreter_call_interpreting_event.rbi +128 -0
- data/rbi/openai/models/beta/beta_response_code_interpreter_tool_call.rbi +315 -0
- data/rbi/openai/models/beta/beta_response_compaction_item.rbi +116 -0
- data/rbi/openai/models/beta/beta_response_compaction_item_param.rbi +114 -0
- data/rbi/openai/models/beta/beta_response_completed_event.rbi +111 -0
- data/rbi/openai/models/beta/beta_response_computer_tool_call.rbi +404 -0
- data/rbi/openai/models/beta/beta_response_computer_tool_call_output_item.rbi +296 -0
- data/rbi/openai/models/beta/beta_response_computer_tool_call_output_screenshot.rbi +62 -0
- data/rbi/openai/models/beta/beta_response_container_reference.rbi +41 -0
- data/rbi/openai/models/beta/beta_response_content.rbi +66 -0
- data/rbi/openai/models/beta/beta_response_content_part_added_event.rbi +205 -0
- data/rbi/openai/models/beta/beta_response_content_part_done_event.rbi +203 -0
- data/rbi/openai/models/beta/beta_response_conversation_param.rbi +35 -0
- data/rbi/openai/models/beta/beta_response_created_event.rbi +109 -0
- data/rbi/openai/models/beta/beta_response_custom_tool_call.rbi +242 -0
- data/rbi/openai/models/beta/beta_response_custom_tool_call_input_delta_event.rbi +134 -0
- data/rbi/openai/models/beta/beta_response_custom_tool_call_input_done_event.rbi +134 -0
- data/rbi/openai/models/beta/beta_response_custom_tool_call_item.rbi +113 -0
- data/rbi/openai/models/beta/beta_response_custom_tool_call_output.rbi +303 -0
- data/rbi/openai/models/beta/beta_response_custom_tool_call_output_item.rbi +114 -0
- data/rbi/openai/models/beta/beta_response_error.rbi +165 -0
- data/rbi/openai/models/beta/beta_response_error_event.rbi +120 -0
- data/rbi/openai/models/beta/beta_response_failed_event.rbi +107 -0
- data/rbi/openai/models/beta/beta_response_file_search_call_completed_event.rbi +126 -0
- data/rbi/openai/models/beta/beta_response_file_search_call_in_progress_event.rbi +126 -0
- data/rbi/openai/models/beta/beta_response_file_search_call_searching_event.rbi +126 -0
- data/rbi/openai/models/beta/beta_response_file_search_tool_call.rbi +328 -0
- data/rbi/openai/models/beta/beta_response_format_text_config.rbi +97 -0
- data/rbi/openai/models/beta/beta_response_format_text_json_schema_config.rbi +97 -0
- data/rbi/openai/models/beta/beta_response_function_call_arguments_delta_event.rbi +134 -0
- data/rbi/openai/models/beta/beta_response_function_call_arguments_done_event.rbi +140 -0
- data/rbi/openai/models/beta/beta_response_function_call_output_item.rbi +32 -0
- data/rbi/openai/models/beta/beta_response_function_call_output_item_list.rbi +21 -0
- data/rbi/openai/models/beta/beta_response_function_shell_call_output_content.rbi +160 -0
- data/rbi/openai/models/beta/beta_response_function_shell_tool_call.rbi +389 -0
- data/rbi/openai/models/beta/beta_response_function_shell_tool_call_output.rbi +470 -0
- data/rbi/openai/models/beta/beta_response_function_tool_call.rbi +310 -0
- data/rbi/openai/models/beta/beta_response_function_tool_call_item.rbi +115 -0
- data/rbi/openai/models/beta/beta_response_function_tool_call_output_item.rbi +364 -0
- data/rbi/openai/models/beta/beta_response_function_web_search.rbi +416 -0
- data/rbi/openai/models/beta/beta_response_image_gen_call_completed_event.rbi +127 -0
- data/rbi/openai/models/beta/beta_response_image_gen_call_generating_event.rbi +127 -0
- data/rbi/openai/models/beta/beta_response_image_gen_call_in_progress_event.rbi +126 -0
- data/rbi/openai/models/beta/beta_response_image_gen_call_partial_image_event.rbi +144 -0
- data/rbi/openai/models/beta/beta_response_in_progress_event.rbi +113 -0
- data/rbi/openai/models/beta/beta_response_includable.rbi +86 -0
- data/rbi/openai/models/beta/beta_response_incomplete_event.rbi +113 -0
- data/rbi/openai/models/beta/beta_response_inject_created_event.rbi +75 -0
- data/rbi/openai/models/beta/beta_response_inject_event.rbi +183 -0
- data/rbi/openai/models/beta/beta_response_inject_failed_event.rbi +304 -0
- data/rbi/openai/models/beta/beta_response_input.rbi +18 -0
- data/rbi/openai/models/beta/beta_response_input_audio.rbi +144 -0
- data/rbi/openai/models/beta/beta_response_input_content.rbi +31 -0
- data/rbi/openai/models/beta/beta_response_input_file.rbi +210 -0
- data/rbi/openai/models/beta/beta_response_input_file_content.rbi +211 -0
- data/rbi/openai/models/beta/beta_response_input_image.rbi +173 -0
- data/rbi/openai/models/beta/beta_response_input_image_content.rbi +191 -0
- data/rbi/openai/models/beta/beta_response_input_item.rbi +5505 -0
- data/rbi/openai/models/beta/beta_response_input_message_content_list.rbi +21 -0
- data/rbi/openai/models/beta/beta_response_input_message_item.rbi +235 -0
- data/rbi/openai/models/beta/beta_response_input_text.rbi +109 -0
- data/rbi/openai/models/beta/beta_response_input_text_content.rbi +115 -0
- data/rbi/openai/models/beta/beta_response_item.rbi +2592 -0
- data/rbi/openai/models/beta/beta_response_local_environment.rbi +35 -0
- data/rbi/openai/models/beta/beta_response_mcp_call_arguments_delta_event.rbi +137 -0
- data/rbi/openai/models/beta/beta_response_mcp_call_arguments_done_event.rbi +134 -0
- data/rbi/openai/models/beta/beta_response_mcp_call_completed_event.rbi +123 -0
- data/rbi/openai/models/beta/beta_response_mcp_call_failed_event.rbi +121 -0
- data/rbi/openai/models/beta/beta_response_mcp_call_in_progress_event.rbi +124 -0
- data/rbi/openai/models/beta/beta_response_mcp_list_tools_completed_event.rbi +126 -0
- data/rbi/openai/models/beta/beta_response_mcp_list_tools_failed_event.rbi +124 -0
- data/rbi/openai/models/beta/beta_response_mcp_list_tools_in_progress_event.rbi +127 -0
- data/rbi/openai/models/beta/beta_response_output_audio.rbi +53 -0
- data/rbi/openai/models/beta/beta_response_output_item.rbi +2627 -0
- data/rbi/openai/models/beta/beta_response_output_item_added_event.rbi +154 -0
- data/rbi/openai/models/beta/beta_response_output_item_done_event.rbi +154 -0
- data/rbi/openai/models/beta/beta_response_output_message.rbi +267 -0
- data/rbi/openai/models/beta/beta_response_output_refusal.rbi +41 -0
- data/rbi/openai/models/beta/beta_response_output_text.rbi +479 -0
- data/rbi/openai/models/beta/beta_response_output_text_annotation_added_event.rbi +150 -0
- data/rbi/openai/models/beta/beta_response_prompt.rbi +122 -0
- data/rbi/openai/models/beta/beta_response_queued_event.rbi +107 -0
- data/rbi/openai/models/beta/beta_response_reasoning_item.rbi +274 -0
- data/rbi/openai/models/beta/beta_response_reasoning_summary_part_added_event.rbi +188 -0
- data/rbi/openai/models/beta/beta_response_reasoning_summary_part_done_event.rbi +243 -0
- data/rbi/openai/models/beta/beta_response_reasoning_summary_text_delta_event.rbi +142 -0
- data/rbi/openai/models/beta/beta_response_reasoning_summary_text_done_event.rbi +142 -0
- data/rbi/openai/models/beta/beta_response_reasoning_text_delta_event.rbi +140 -0
- data/rbi/openai/models/beta/beta_response_reasoning_text_done_event.rbi +140 -0
- data/rbi/openai/models/beta/beta_response_refusal_delta_event.rbi +135 -0
- data/rbi/openai/models/beta/beta_response_refusal_done_event.rbi +135 -0
- data/rbi/openai/models/beta/beta_response_status.rbi +38 -0
- data/rbi/openai/models/beta/beta_response_stream_event.rbi +81 -0
- data/rbi/openai/models/beta/beta_response_text_config.rbi +166 -0
- data/rbi/openai/models/beta/beta_response_text_delta_event.rbi +263 -0
- data/rbi/openai/models/beta/beta_response_text_done_event.rbi +261 -0
- data/rbi/openai/models/beta/beta_response_tool_search_call.rbi +218 -0
- data/rbi/openai/models/beta/beta_response_tool_search_output_item.rbi +248 -0
- data/rbi/openai/models/beta/beta_response_tool_search_output_item_param.rbi +307 -0
- data/rbi/openai/models/beta/beta_response_usage.rbi +163 -0
- data/rbi/openai/models/beta/beta_response_web_search_call_completed_event.rbi +126 -0
- data/rbi/openai/models/beta/beta_response_web_search_call_in_progress_event.rbi +126 -0
- data/rbi/openai/models/beta/beta_response_web_search_call_searching_event.rbi +126 -0
- data/rbi/openai/models/beta/beta_responses_client_event.rbi +2831 -0
- data/rbi/openai/models/beta/beta_responses_server_event.rbi +83 -0
- data/rbi/openai/models/beta/beta_skill_reference.rbi +52 -0
- data/rbi/openai/models/beta/beta_tool.rbi +1835 -0
- data/rbi/openai/models/beta/beta_tool_choice_allowed.rbi +126 -0
- data/rbi/openai/models/beta/beta_tool_choice_apply_patch.rbi +35 -0
- data/rbi/openai/models/beta/beta_tool_choice_custom.rbi +38 -0
- data/rbi/openai/models/beta/beta_tool_choice_function.rbi +41 -0
- data/rbi/openai/models/beta/beta_tool_choice_mcp.rbi +55 -0
- data/rbi/openai/models/beta/beta_tool_choice_options.rbi +38 -0
- data/rbi/openai/models/beta/beta_tool_choice_shell.rbi +32 -0
- data/rbi/openai/models/beta/beta_tool_choice_types.rbi +134 -0
- data/rbi/openai/models/beta/beta_tool_search_tool.rbi +109 -0
- data/rbi/openai/models/beta/beta_web_search_preview_tool.rbi +311 -0
- data/rbi/openai/models/beta/beta_web_search_tool.rbi +329 -0
- data/rbi/openai/models/beta/response_cancel_params.rbi +83 -0
- data/rbi/openai/models/beta/response_compact_params.rbi +1033 -0
- data/rbi/openai/models/beta/response_create_params.rbi +2739 -0
- data/rbi/openai/models/beta/response_delete_params.rbi +83 -0
- data/rbi/openai/models/beta/response_retrieve_params.rbi +145 -0
- data/rbi/openai/models/beta/responses/beta_response_item_list.rbi +113 -0
- data/rbi/openai/models/beta/responses/input_item_list_params.rbi +223 -0
- data/rbi/openai/models/beta/responses/input_token_count_params.rbi +1248 -0
- data/rbi/openai/models/beta/responses/input_token_count_response.rbi +37 -0
- data/rbi/openai/models/beta/threads/run_create_params.rbi +12 -26
- data/rbi/openai/models/chat/chat_completion_content_part.rbi +57 -1
- data/rbi/openai/models/chat/chat_completion_content_part_image.rbi +57 -1
- data/rbi/openai/models/chat/chat_completion_content_part_input_audio.rbi +57 -1
- data/rbi/openai/models/chat/chat_completion_content_part_text.rbi +70 -2
- data/rbi/openai/models/chat/completion_create_params.rbi +513 -32
- data/rbi/openai/models/chat_model.rbi +3 -0
- data/rbi/openai/models/completion_usage.rbi +21 -4
- data/rbi/openai/models/conversations/computer_screenshot_content.rbi +57 -1
- data/rbi/openai/models/conversations/conversation_create_params.rbi +9 -3
- data/rbi/openai/models/conversations/conversation_item.rbi +178 -0
- data/rbi/openai/models/conversations/conversation_item_list.rbi +2 -0
- data/rbi/openai/models/conversations/item_create_params.rbi +9 -3
- data/rbi/openai/models/evals/create_eval_completions_run_data_source.rbi +12 -26
- data/rbi/openai/models/evals/run_cancel_response.rbi +26 -52
- data/rbi/openai/models/evals/run_create_params.rbi +28 -52
- data/rbi/openai/models/evals/run_create_response.rbi +26 -52
- data/rbi/openai/models/evals/run_list_response.rbi +26 -52
- data/rbi/openai/models/evals/run_retrieve_response.rbi +26 -52
- data/rbi/openai/models/graders/score_model_grader.rbi +12 -26
- data/rbi/openai/models/realtime/realtime_response_create_mcp_tool.rbi +60 -0
- data/rbi/openai/models/realtime/realtime_session_create_request.rbi +10 -0
- data/rbi/openai/models/realtime/realtime_session_create_response.rbi +70 -0
- data/rbi/openai/models/realtime/realtime_tools_config_union.rbi +60 -0
- data/rbi/openai/models/reasoning.rbi +51 -26
- data/rbi/openai/models/reasoning_effort.rbi +7 -13
- data/rbi/openai/models/responses/apply_patch_tool.rbi +69 -2
- data/rbi/openai/models/responses/compacted_response.rbi +2 -0
- data/rbi/openai/models/responses/custom_tool.rbi +53 -0
- data/rbi/openai/models/responses/function_shell_tool.rbi +57 -0
- data/rbi/openai/models/responses/function_tool.rbi +68 -3
- data/rbi/openai/models/responses/input_token_count_params.rbi +32 -0
- data/rbi/openai/models/responses/namespace_tool.rbi +76 -0
- data/rbi/openai/models/responses/response.rbi +192 -3
- data/rbi/openai/models/responses/response_apply_patch_tool_call.rbi +98 -0
- data/rbi/openai/models/responses/response_apply_patch_tool_call_output.rbi +98 -0
- data/rbi/openai/models/responses/response_compact_params.rbi +231 -0
- data/rbi/openai/models/responses/response_create_params.rbi +537 -6
- data/rbi/openai/models/responses/response_custom_tool_call.rbi +104 -0
- data/rbi/openai/models/responses/response_custom_tool_call_output.rbi +111 -1
- data/rbi/openai/models/responses/response_error.rbi +5 -0
- data/rbi/openai/models/responses/response_function_shell_tool_call.rbi +98 -0
- data/rbi/openai/models/responses/response_function_shell_tool_call_output.rbi +98 -0
- data/rbi/openai/models/responses/response_function_tool_call.rbi +104 -0
- data/rbi/openai/models/responses/response_function_tool_call_output_item.rbi +104 -0
- data/rbi/openai/models/responses/response_input_file.rbi +77 -10
- data/rbi/openai/models/responses/response_input_file_content.rbi +83 -10
- data/rbi/openai/models/responses/response_input_image.rbi +57 -1
- data/rbi/openai/models/responses/response_input_image_content.rbi +63 -1
- data/rbi/openai/models/responses/response_input_item.rbi +748 -8
- data/rbi/openai/models/responses/response_input_text.rbi +70 -2
- data/rbi/openai/models/responses/response_input_text_content.rbi +76 -2
- data/rbi/openai/models/responses/response_item.rbi +178 -0
- data/rbi/openai/models/responses/response_item_list.rbi +2 -0
- data/rbi/openai/models/responses/response_output_item.rbi +178 -0
- data/rbi/openai/models/responses/response_output_item_added_event.rbi +2 -0
- data/rbi/openai/models/responses/response_output_item_done_event.rbi +2 -0
- data/rbi/openai/models/responses/response_reasoning_summary_part_done_event.rbi +58 -1
- data/rbi/openai/models/responses/response_tool_search_output_item.rbi +1 -0
- data/rbi/openai/models/responses/response_tool_search_output_item_param.rbi +3 -0
- data/rbi/openai/models/responses/response_usage.rbi +16 -2
- data/rbi/openai/models/responses/responses_client_event.rbi +537 -6
- data/rbi/openai/models/responses/tool.rbi +142 -1
- data/rbi/openai/models/webhooks/safety_identifier_blocked_webhook_event.rbi +209 -0
- data/rbi/openai/models/webhooks/unwrap_webhook_event.rbi +2 -1
- data/rbi/openai/resources/beta/assistants.rbi +12 -26
- data/rbi/openai/resources/beta/responses/input_items.rbi +58 -0
- data/rbi/openai/resources/beta/responses/input_tokens.rbi +154 -0
- data/rbi/openai/resources/beta/responses.rbi +903 -0
- data/rbi/openai/resources/beta/threads/runs.rbi +12 -26
- data/rbi/openai/resources/beta.rbi +3 -0
- data/rbi/openai/resources/chat/completions.rbi +48 -28
- data/rbi/openai/resources/conversations/items.rbi +3 -1
- data/rbi/openai/resources/conversations.rbi +3 -1
- data/rbi/openai/resources/responses/input_tokens.rbi +2 -0
- data/rbi/openai/resources/responses.rbi +54 -2
- data/rbi/openai/resources/webhooks.rbi +2 -1
- data/sig/openai/client.rbs +1 -1
- data/sig/openai/internal/transport/base_client.rbs +2 -2
- data/sig/openai/models/beta/beta_apply_patch_tool.rbs +40 -0
- data/sig/openai/models/beta/beta_compacted_response.rbs +44 -0
- data/sig/openai/models/beta/beta_computer_action.rbs +259 -0
- data/sig/openai/models/beta/beta_computer_action_list.rbs +12 -0
- data/sig/openai/models/beta/beta_computer_tool.rbs +17 -0
- data/sig/openai/models/beta/beta_computer_use_preview_tool.rbs +53 -0
- data/sig/openai/models/beta/beta_container_auto.rbs +86 -0
- data/sig/openai/models/beta/beta_container_network_policy_allowlist.rbs +38 -0
- data/sig/openai/models/beta/beta_container_network_policy_disabled.rbs +17 -0
- data/sig/openai/models/beta/beta_container_network_policy_domain_secret.rbs +22 -0
- data/sig/openai/models/beta/beta_container_reference.rbs +23 -0
- data/sig/openai/models/beta/beta_custom_tool.rbs +126 -0
- data/sig/openai/models/beta/beta_easy_input_message.rbs +87 -0
- data/sig/openai/models/beta/beta_file_search_tool.rbs +298 -0
- data/sig/openai/models/beta/beta_function_shell_tool.rbs +56 -0
- data/sig/openai/models/beta/beta_function_tool.rbs +72 -0
- data/sig/openai/models/beta/beta_inline_skill.rbs +39 -0
- data/sig/openai/models/beta/beta_inline_skill_source.rbs +30 -0
- data/sig/openai/models/beta/beta_local_environment.rbs +30 -0
- data/sig/openai/models/beta/beta_local_skill.rbs +26 -0
- data/sig/openai/models/beta/beta_namespace_tool.rbs +114 -0
- data/sig/openai/models/beta/beta_response.rbs +860 -0
- data/sig/openai/models/beta/beta_response_apply_patch_tool_call.rbs +177 -0
- data/sig/openai/models/beta/beta_response_apply_patch_tool_call_output.rbs +118 -0
- data/sig/openai/models/beta/beta_response_audio_delta_event.rbs +49 -0
- data/sig/openai/models/beta/beta_response_audio_done_event.rbs +44 -0
- data/sig/openai/models/beta/beta_response_audio_transcript_delta_event.rbs +49 -0
- data/sig/openai/models/beta/beta_response_audio_transcript_done_event.rbs +44 -0
- data/sig/openai/models/beta/beta_response_code_interpreter_call_code_delta_event.rbs +59 -0
- data/sig/openai/models/beta/beta_response_code_interpreter_call_code_done_event.rbs +59 -0
- data/sig/openai/models/beta/beta_response_code_interpreter_call_completed_event.rbs +54 -0
- data/sig/openai/models/beta/beta_response_code_interpreter_call_in_progress_event.rbs +54 -0
- data/sig/openai/models/beta/beta_response_code_interpreter_call_interpreting_event.rbs +54 -0
- data/sig/openai/models/beta/beta_response_code_interpreter_tool_call.rbs +113 -0
- data/sig/openai/models/beta/beta_response_compaction_item.rbs +60 -0
- data/sig/openai/models/beta/beta_response_compaction_item_param.rbs +49 -0
- data/sig/openai/models/beta/beta_response_completed_event.rbs +49 -0
- data/sig/openai/models/beta/beta_response_computer_tool_call.rbs +118 -0
- data/sig/openai/models/beta/beta_response_computer_tool_call_output_item.rbs +107 -0
- data/sig/openai/models/beta/beta_response_computer_tool_call_output_screenshot.rbs +34 -0
- data/sig/openai/models/beta/beta_response_container_reference.rbs +23 -0
- data/sig/openai/models/beta/beta_response_content.rbs +33 -0
- data/sig/openai/models/beta/beta_response_content_part_added_event.rbs +87 -0
- data/sig/openai/models/beta/beta_response_content_part_done_event.rbs +87 -0
- data/sig/openai/models/beta/beta_response_conversation_param.rbs +17 -0
- data/sig/openai/models/beta/beta_response_created_event.rbs +49 -0
- data/sig/openai/models/beta/beta_response_custom_tool_call.rbs +105 -0
- data/sig/openai/models/beta/beta_response_custom_tool_call_input_delta_event.rbs +59 -0
- data/sig/openai/models/beta/beta_response_custom_tool_call_input_done_event.rbs +59 -0
- data/sig/openai/models/beta/beta_response_custom_tool_call_item.rbs +54 -0
- data/sig/openai/models/beta/beta_response_custom_tool_call_output.rbs +116 -0
- data/sig/openai/models/beta/beta_response_custom_tool_call_output_item.rbs +54 -0
- data/sig/openai/models/beta/beta_response_error.rbs +73 -0
- data/sig/openai/models/beta/beta_response_error_event.rbs +59 -0
- data/sig/openai/models/beta/beta_response_failed_event.rbs +49 -0
- data/sig/openai/models/beta/beta_response_file_search_call_completed_event.rbs +54 -0
- data/sig/openai/models/beta/beta_response_file_search_call_in_progress_event.rbs +54 -0
- data/sig/openai/models/beta/beta_response_file_search_call_searching_event.rbs +54 -0
- data/sig/openai/models/beta/beta_response_file_search_tool_call.rbs +127 -0
- data/sig/openai/models/beta/beta_response_format_text_config.rbs +38 -0
- data/sig/openai/models/beta/beta_response_format_text_json_schema_config.rbs +46 -0
- data/sig/openai/models/beta/beta_response_function_call_arguments_delta_event.rbs +59 -0
- data/sig/openai/models/beta/beta_response_function_call_arguments_done_event.rbs +64 -0
- data/sig/openai/models/beta/beta_response_function_call_output_item.rbs +18 -0
- data/sig/openai/models/beta/beta_response_function_call_output_item_list.rbs +12 -0
- data/sig/openai/models/beta/beta_response_function_shell_call_output_content.rbs +66 -0
- data/sig/openai/models/beta/beta_response_function_shell_tool_call.rbs +161 -0
- data/sig/openai/models/beta/beta_response_function_shell_tool_call_output.rbs +190 -0
- data/sig/openai/models/beta/beta_response_function_tool_call.rbs +126 -0
- data/sig/openai/models/beta/beta_response_function_tool_call_item.rbs +54 -0
- data/sig/openai/models/beta/beta_response_function_tool_call_output_item.rbs +138 -0
- data/sig/openai/models/beta/beta_response_function_web_search.rbs +165 -0
- data/sig/openai/models/beta/beta_response_image_gen_call_completed_event.rbs +54 -0
- data/sig/openai/models/beta/beta_response_image_gen_call_generating_event.rbs +54 -0
- data/sig/openai/models/beta/beta_response_image_gen_call_in_progress_event.rbs +54 -0
- data/sig/openai/models/beta/beta_response_image_gen_call_partial_image_event.rbs +64 -0
- data/sig/openai/models/beta/beta_response_in_progress_event.rbs +49 -0
- data/sig/openai/models/beta/beta_response_includable.rbs +32 -0
- data/sig/openai/models/beta/beta_response_incomplete_event.rbs +49 -0
- data/sig/openai/models/beta/beta_response_inject_created_event.rbs +41 -0
- data/sig/openai/models/beta/beta_response_inject_event.rbs +34 -0
- data/sig/openai/models/beta/beta_response_inject_failed_event.rbs +84 -0
- data/sig/openai/models/beta/beta_response_input.rbs +12 -0
- data/sig/openai/models/beta/beta_response_input_audio.rbs +62 -0
- data/sig/openai/models/beta/beta_response_input_content.rbs +18 -0
- data/sig/openai/models/beta/beta_response_input_file.rbs +90 -0
- data/sig/openai/models/beta/beta_response_input_file_content.rbs +80 -0
- data/sig/openai/models/beta/beta_response_input_image.rbs +71 -0
- data/sig/openai/models/beta/beta_response_input_image_content.rbs +67 -0
- data/sig/openai/models/beta/beta_response_input_item.rbs +2064 -0
- data/sig/openai/models/beta/beta_response_input_message_content_list.rbs +12 -0
- data/sig/openai/models/beta/beta_response_input_message_item.rbs +87 -0
- data/sig/openai/models/beta/beta_response_input_text.rbs +48 -0
- data/sig/openai/models/beta/beta_response_input_text_content.rbs +44 -0
- data/sig/openai/models/beta/beta_response_item.rbs +1097 -0
- data/sig/openai/models/beta/beta_response_local_environment.rbs +17 -0
- data/sig/openai/models/beta/beta_response_mcp_call_arguments_delta_event.rbs +59 -0
- data/sig/openai/models/beta/beta_response_mcp_call_arguments_done_event.rbs +59 -0
- data/sig/openai/models/beta/beta_response_mcp_call_completed_event.rbs +54 -0
- data/sig/openai/models/beta/beta_response_mcp_call_failed_event.rbs +54 -0
- data/sig/openai/models/beta/beta_response_mcp_call_in_progress_event.rbs +54 -0
- data/sig/openai/models/beta/beta_response_mcp_list_tools_completed_event.rbs +54 -0
- data/sig/openai/models/beta/beta_response_mcp_list_tools_failed_event.rbs +54 -0
- data/sig/openai/models/beta/beta_response_mcp_list_tools_in_progress_event.rbs +54 -0
- data/sig/openai/models/beta/beta_response_output_audio.rbs +30 -0
- data/sig/openai/models/beta/beta_response_output_item.rbs +1096 -0
- data/sig/openai/models/beta/beta_response_output_item_added_event.rbs +54 -0
- data/sig/openai/models/beta/beta_response_output_item_done_event.rbs +54 -0
- data/sig/openai/models/beta/beta_response_output_message.rbs +97 -0
- data/sig/openai/models/beta/beta_response_output_refusal.rbs +19 -0
- data/sig/openai/models/beta/beta_response_output_text.rbs +243 -0
- data/sig/openai/models/beta/beta_response_output_text_annotation_added_event.rbs +69 -0
- data/sig/openai/models/beta/beta_response_prompt.rbs +46 -0
- data/sig/openai/models/beta/beta_response_queued_event.rbs +49 -0
- data/sig/openai/models/beta/beta_response_reasoning_item.rbs +108 -0
- data/sig/openai/models/beta/beta_response_reasoning_summary_part_added_event.rbs +76 -0
- data/sig/openai/models/beta/beta_response_reasoning_summary_part_done_event.rbs +95 -0
- data/sig/openai/models/beta/beta_response_reasoning_summary_text_delta_event.rbs +64 -0
- data/sig/openai/models/beta/beta_response_reasoning_summary_text_done_event.rbs +64 -0
- data/sig/openai/models/beta/beta_response_reasoning_text_delta_event.rbs +64 -0
- data/sig/openai/models/beta/beta_response_reasoning_text_done_event.rbs +64 -0
- data/sig/openai/models/beta/beta_response_refusal_delta_event.rbs +64 -0
- data/sig/openai/models/beta/beta_response_refusal_done_event.rbs +64 -0
- data/sig/openai/models/beta/beta_response_status.rbs +23 -0
- data/sig/openai/models/beta/beta_response_stream_event.rbs +68 -0
- data/sig/openai/models/beta/beta_response_text_config.rbs +45 -0
- data/sig/openai/models/beta/beta_response_text_delta_event.rbs +116 -0
- data/sig/openai/models/beta/beta_response_text_done_event.rbs +116 -0
- data/sig/openai/models/beta/beta_response_tool_search_call.rbs +98 -0
- data/sig/openai/models/beta/beta_response_tool_search_output_item.rbs +98 -0
- data/sig/openai/models/beta/beta_response_tool_search_output_item_param.rbs +91 -0
- data/sig/openai/models/beta/beta_response_usage.rbs +73 -0
- data/sig/openai/models/beta/beta_response_web_search_call_completed_event.rbs +54 -0
- data/sig/openai/models/beta/beta_response_web_search_call_in_progress_event.rbs +54 -0
- data/sig/openai/models/beta/beta_response_web_search_call_searching_event.rbs +54 -0
- data/sig/openai/models/beta/beta_responses_client_event.rbs +804 -0
- data/sig/openai/models/beta/beta_responses_server_event.rbs +70 -0
- data/sig/openai/models/beta/beta_skill_reference.rbs +32 -0
- data/sig/openai/models/beta/beta_tool.rbs +634 -0
- data/sig/openai/models/beta/beta_tool_choice_allowed.rbs +45 -0
- data/sig/openai/models/beta/beta_tool_choice_apply_patch.rbs +17 -0
- data/sig/openai/models/beta/beta_tool_choice_custom.rbs +19 -0
- data/sig/openai/models/beta/beta_tool_choice_function.rbs +19 -0
- data/sig/openai/models/beta/beta_tool_choice_mcp.rbs +26 -0
- data/sig/openai/models/beta/beta_tool_choice_options.rbs +19 -0
- data/sig/openai/models/beta/beta_tool_choice_shell.rbs +17 -0
- data/sig/openai/models/beta/beta_tool_choice_types.rbs +47 -0
- data/sig/openai/models/beta/beta_tool_search_tool.rbs +54 -0
- data/sig/openai/models/beta/beta_web_search_preview_tool.rbs +118 -0
- data/sig/openai/models/beta/beta_web_search_tool.rbs +127 -0
- data/sig/openai/models/beta/response_cancel_params.rbs +47 -0
- data/sig/openai/models/beta/response_compact_params.rbs +368 -0
- data/sig/openai/models/beta/response_create_params.rbs +804 -0
- data/sig/openai/models/beta/response_delete_params.rbs +47 -0
- data/sig/openai/models/beta/response_retrieve_params.rbs +70 -0
- data/sig/openai/models/beta/responses/beta_response_item_list.rbs +44 -0
- data/sig/openai/models/beta/responses/input_item_list_params.rbs +92 -0
- data/sig/openai/models/beta/responses/input_token_count_params.rbs +325 -0
- data/sig/openai/models/beta/responses/input_token_count_response.rbs +26 -0
- data/sig/openai/models/chat/chat_completion_content_part.rbs +21 -2
- data/sig/openai/models/chat/chat_completion_content_part_image.rbs +21 -2
- data/sig/openai/models/chat/chat_completion_content_part_input_audio.rbs +21 -2
- data/sig/openai/models/chat/chat_completion_content_part_text.rbs +32 -3
- data/sig/openai/models/chat/completion_create_params.rbs +153 -3
- data/sig/openai/models/chat_model.rbs +7 -1
- data/sig/openai/models/completion_usage.rbs +15 -2
- data/sig/openai/models/conversations/computer_screenshot_content.rbs +21 -2
- data/sig/openai/models/conversations/conversation_item.rbs +87 -0
- data/sig/openai/models/realtime/realtime_response_create_mcp_tool.rbs +16 -0
- data/sig/openai/models/realtime/realtime_session_create_request.rbs +4 -0
- data/sig/openai/models/realtime/realtime_session_create_response.rbs +20 -0
- data/sig/openai/models/realtime/realtime_tools_config_union.rbs +16 -0
- data/sig/openai/models/reasoning.rbs +20 -0
- data/sig/openai/models/reasoning_effort.rbs +3 -1
- data/sig/openai/models/responses/apply_patch_tool.rbs +26 -3
- data/sig/openai/models/responses/custom_tool.rbs +16 -0
- data/sig/openai/models/responses/function_shell_tool.rbs +16 -0
- data/sig/openai/models/responses/function_tool.rbs +23 -2
- data/sig/openai/models/responses/input_token_count_params.rbs +12 -0
- data/sig/openai/models/responses/namespace_tool.rbs +21 -0
- data/sig/openai/models/responses/response.rbs +64 -0
- data/sig/openai/models/responses/response_apply_patch_tool_call.rbs +37 -0
- data/sig/openai/models/responses/response_apply_patch_tool_call_output.rbs +37 -0
- data/sig/openai/models/responses/response_compact_params.rbs +63 -1
- data/sig/openai/models/responses/response_create_params.rbs +165 -3
- data/sig/openai/models/responses/response_custom_tool_call.rbs +37 -0
- data/sig/openai/models/responses/response_custom_tool_call_output.rbs +39 -2
- data/sig/openai/models/responses/response_error.rbs +2 -0
- data/sig/openai/models/responses/response_function_shell_tool_call.rbs +37 -0
- data/sig/openai/models/responses/response_function_shell_tool_call_output.rbs +37 -0
- data/sig/openai/models/responses/response_function_tool_call.rbs +37 -0
- data/sig/openai/models/responses/response_function_tool_call_output_item.rbs +37 -0
- data/sig/openai/models/responses/response_input_file.rbs +23 -3
- data/sig/openai/models/responses/response_input_file_content.rbs +19 -3
- data/sig/openai/models/responses/response_input_image.rbs +21 -2
- data/sig/openai/models/responses/response_input_image_content.rbs +17 -2
- data/sig/openai/models/responses/response_input_item.rbs +274 -2
- data/sig/openai/models/responses/response_input_text.rbs +32 -3
- data/sig/openai/models/responses/response_input_text_content.rbs +28 -3
- data/sig/openai/models/responses/response_item.rbs +87 -0
- data/sig/openai/models/responses/response_output_item.rbs +87 -0
- data/sig/openai/models/responses/response_reasoning_summary_part_done_event.rbs +21 -2
- data/sig/openai/models/responses/response_usage.rbs +12 -3
- data/sig/openai/models/responses/responses_client_event.rbs +165 -3
- data/sig/openai/models/responses/tool.rbs +45 -2
- data/sig/openai/models/webhooks/safety_identifier_blocked_webhook_event.rbs +99 -0
- data/sig/openai/models/webhooks/unwrap_webhook_event.rbs +1 -0
- data/sig/openai/resources/beta/responses/input_items.rbs +21 -0
- data/sig/openai/resources/beta/responses/input_tokens.rbs +28 -0
- data/sig/openai/resources/beta/responses.rbs +128 -0
- data/sig/openai/resources/beta.rbs +2 -0
- data/sig/openai/resources/chat/completions.rbs +2 -0
- data/sig/openai/resources/responses.rbs +3 -0
- data/sig/openai/resources/webhooks.rbs +2 -1
- metadata +491 -2
|
@@ -426,19 +426,12 @@ module OpenAI
|
|
|
426
426
|
sig { returns(T.nilable(String)) }
|
|
427
427
|
attr_accessor :model
|
|
428
428
|
|
|
429
|
-
# Constrains effort on reasoning for
|
|
430
|
-
#
|
|
431
|
-
#
|
|
432
|
-
#
|
|
433
|
-
#
|
|
434
|
-
#
|
|
435
|
-
# - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
436
|
-
# reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
437
|
-
# calls are supported for all reasoning values in gpt-5.1.
|
|
438
|
-
# - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
439
|
-
# support `none`.
|
|
440
|
-
# - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
441
|
-
# - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
429
|
+
# Constrains effort on reasoning for reasoning models. Currently supported values
|
|
430
|
+
# are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
431
|
+
# reasoning effort can result in faster responses and fewer tokens used on
|
|
432
|
+
# reasoning in a response. Not all reasoning models support every value. See the
|
|
433
|
+
# [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
434
|
+
# model-specific support.
|
|
442
435
|
sig { returns(T.nilable(OpenAI::ReasoningEffort::OrSymbol)) }
|
|
443
436
|
attr_accessor :reasoning_effort
|
|
444
437
|
|
|
@@ -491,19 +484,12 @@ module OpenAI
|
|
|
491
484
|
# The name of the model to find responses for. This is a query parameter used to
|
|
492
485
|
# select responses.
|
|
493
486
|
model: nil,
|
|
494
|
-
# Constrains effort on reasoning for
|
|
495
|
-
#
|
|
496
|
-
#
|
|
497
|
-
#
|
|
498
|
-
#
|
|
499
|
-
#
|
|
500
|
-
# - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
501
|
-
# reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
502
|
-
# calls are supported for all reasoning values in gpt-5.1.
|
|
503
|
-
# - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
504
|
-
# support `none`.
|
|
505
|
-
# - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
506
|
-
# - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
487
|
+
# Constrains effort on reasoning for reasoning models. Currently supported values
|
|
488
|
+
# are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
489
|
+
# reasoning effort can result in faster responses and fewer tokens used on
|
|
490
|
+
# reasoning in a response. Not all reasoning models support every value. See the
|
|
491
|
+
# [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
492
|
+
# model-specific support.
|
|
507
493
|
reasoning_effort: nil,
|
|
508
494
|
# Sampling temperature. This is a query parameter used to select responses.
|
|
509
495
|
temperature: nil,
|
|
@@ -1114,19 +1100,12 @@ module OpenAI
|
|
|
1114
1100
|
sig { params(max_completion_tokens: Integer).void }
|
|
1115
1101
|
attr_writer :max_completion_tokens
|
|
1116
1102
|
|
|
1117
|
-
# Constrains effort on reasoning for
|
|
1118
|
-
#
|
|
1119
|
-
#
|
|
1120
|
-
#
|
|
1121
|
-
#
|
|
1122
|
-
#
|
|
1123
|
-
# - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
1124
|
-
# reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
1125
|
-
# calls are supported for all reasoning values in gpt-5.1.
|
|
1126
|
-
# - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
1127
|
-
# support `none`.
|
|
1128
|
-
# - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
1129
|
-
# - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
1103
|
+
# Constrains effort on reasoning for reasoning models. Currently supported values
|
|
1104
|
+
# are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
1105
|
+
# reasoning effort can result in faster responses and fewer tokens used on
|
|
1106
|
+
# reasoning in a response. Not all reasoning models support every value. See the
|
|
1107
|
+
# [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
1108
|
+
# model-specific support.
|
|
1130
1109
|
sig { returns(T.nilable(OpenAI::ReasoningEffort::OrSymbol)) }
|
|
1131
1110
|
attr_accessor :reasoning_effort
|
|
1132
1111
|
|
|
@@ -1191,6 +1170,7 @@ module OpenAI
|
|
|
1191
1170
|
OpenAI::Responses::ComputerUsePreviewTool,
|
|
1192
1171
|
OpenAI::Responses::Tool::Mcp,
|
|
1193
1172
|
OpenAI::Responses::Tool::CodeInterpreter,
|
|
1173
|
+
OpenAI::Responses::Tool::ProgrammaticToolCalling,
|
|
1194
1174
|
OpenAI::Responses::Tool::ImageGeneration,
|
|
1195
1175
|
OpenAI::Responses::Tool::LocalShell,
|
|
1196
1176
|
OpenAI::Responses::FunctionShellTool,
|
|
@@ -1218,6 +1198,7 @@ module OpenAI
|
|
|
1218
1198
|
OpenAI::Responses::ComputerUsePreviewTool::OrHash,
|
|
1219
1199
|
OpenAI::Responses::Tool::Mcp::OrHash,
|
|
1220
1200
|
OpenAI::Responses::Tool::CodeInterpreter::OrHash,
|
|
1201
|
+
OpenAI::Responses::Tool::ProgrammaticToolCalling::OrHash,
|
|
1221
1202
|
OpenAI::Responses::Tool::ImageGeneration::OrHash,
|
|
1222
1203
|
OpenAI::Responses::Tool::LocalShell::OrHash,
|
|
1223
1204
|
OpenAI::Responses::FunctionShellTool::OrHash,
|
|
@@ -1258,6 +1239,7 @@ module OpenAI
|
|
|
1258
1239
|
OpenAI::Responses::ComputerUsePreviewTool::OrHash,
|
|
1259
1240
|
OpenAI::Responses::Tool::Mcp::OrHash,
|
|
1260
1241
|
OpenAI::Responses::Tool::CodeInterpreter::OrHash,
|
|
1242
|
+
OpenAI::Responses::Tool::ProgrammaticToolCalling::OrHash,
|
|
1261
1243
|
OpenAI::Responses::Tool::ImageGeneration::OrHash,
|
|
1262
1244
|
OpenAI::Responses::Tool::LocalShell::OrHash,
|
|
1263
1245
|
OpenAI::Responses::FunctionShellTool::OrHash,
|
|
@@ -1275,19 +1257,12 @@ module OpenAI
|
|
|
1275
1257
|
def self.new(
|
|
1276
1258
|
# The maximum number of tokens in the generated output.
|
|
1277
1259
|
max_completion_tokens: nil,
|
|
1278
|
-
# Constrains effort on reasoning for
|
|
1279
|
-
#
|
|
1280
|
-
#
|
|
1281
|
-
#
|
|
1282
|
-
#
|
|
1283
|
-
#
|
|
1284
|
-
# - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
1285
|
-
# reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
1286
|
-
# calls are supported for all reasoning values in gpt-5.1.
|
|
1287
|
-
# - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
1288
|
-
# support `none`.
|
|
1289
|
-
# - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
1290
|
-
# - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
1260
|
+
# Constrains effort on reasoning for reasoning models. Currently supported values
|
|
1261
|
+
# are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
1262
|
+
# reasoning effort can result in faster responses and fewer tokens used on
|
|
1263
|
+
# reasoning in a response. Not all reasoning models support every value. See the
|
|
1264
|
+
# [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
1265
|
+
# model-specific support.
|
|
1291
1266
|
reasoning_effort: nil,
|
|
1292
1267
|
# A seed value to initialize the randomness, during sampling.
|
|
1293
1268
|
seed: nil,
|
|
@@ -1338,6 +1313,7 @@ module OpenAI
|
|
|
1338
1313
|
OpenAI::Responses::ComputerUsePreviewTool,
|
|
1339
1314
|
OpenAI::Responses::Tool::Mcp,
|
|
1340
1315
|
OpenAI::Responses::Tool::CodeInterpreter,
|
|
1316
|
+
OpenAI::Responses::Tool::ProgrammaticToolCalling,
|
|
1341
1317
|
OpenAI::Responses::Tool::ImageGeneration,
|
|
1342
1318
|
OpenAI::Responses::Tool::LocalShell,
|
|
1343
1319
|
OpenAI::Responses::FunctionShellTool,
|
|
@@ -510,19 +510,12 @@ module OpenAI
|
|
|
510
510
|
sig { returns(T.nilable(String)) }
|
|
511
511
|
attr_accessor :model
|
|
512
512
|
|
|
513
|
-
# Constrains effort on reasoning for
|
|
514
|
-
#
|
|
515
|
-
#
|
|
516
|
-
#
|
|
517
|
-
#
|
|
518
|
-
#
|
|
519
|
-
# - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
520
|
-
# reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
521
|
-
# calls are supported for all reasoning values in gpt-5.1.
|
|
522
|
-
# - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
523
|
-
# support `none`.
|
|
524
|
-
# - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
525
|
-
# - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
513
|
+
# Constrains effort on reasoning for reasoning models. Currently supported values
|
|
514
|
+
# are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
515
|
+
# reasoning effort can result in faster responses and fewer tokens used on
|
|
516
|
+
# reasoning in a response. Not all reasoning models support every value. See the
|
|
517
|
+
# [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
518
|
+
# model-specific support.
|
|
526
519
|
sig do
|
|
527
520
|
returns(T.nilable(OpenAI::ReasoningEffort::TaggedSymbol))
|
|
528
521
|
end
|
|
@@ -577,19 +570,12 @@ module OpenAI
|
|
|
577
570
|
# The name of the model to find responses for. This is a query parameter used to
|
|
578
571
|
# select responses.
|
|
579
572
|
model: nil,
|
|
580
|
-
# Constrains effort on reasoning for
|
|
581
|
-
#
|
|
582
|
-
#
|
|
583
|
-
#
|
|
584
|
-
#
|
|
585
|
-
#
|
|
586
|
-
# - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
587
|
-
# reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
588
|
-
# calls are supported for all reasoning values in gpt-5.1.
|
|
589
|
-
# - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
590
|
-
# support `none`.
|
|
591
|
-
# - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
592
|
-
# - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
573
|
+
# Constrains effort on reasoning for reasoning models. Currently supported values
|
|
574
|
+
# are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
575
|
+
# reasoning effort can result in faster responses and fewer tokens used on
|
|
576
|
+
# reasoning in a response. Not all reasoning models support every value. See the
|
|
577
|
+
# [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
578
|
+
# model-specific support.
|
|
593
579
|
reasoning_effort: nil,
|
|
594
580
|
# Sampling temperature. This is a query parameter used to select responses.
|
|
595
581
|
temperature: nil,
|
|
@@ -1134,19 +1120,12 @@ module OpenAI
|
|
|
1134
1120
|
sig { params(max_completion_tokens: Integer).void }
|
|
1135
1121
|
attr_writer :max_completion_tokens
|
|
1136
1122
|
|
|
1137
|
-
# Constrains effort on reasoning for
|
|
1138
|
-
#
|
|
1139
|
-
#
|
|
1140
|
-
#
|
|
1141
|
-
#
|
|
1142
|
-
#
|
|
1143
|
-
# - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
1144
|
-
# reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
1145
|
-
# calls are supported for all reasoning values in gpt-5.1.
|
|
1146
|
-
# - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
1147
|
-
# support `none`.
|
|
1148
|
-
# - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
1149
|
-
# - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
1123
|
+
# Constrains effort on reasoning for reasoning models. Currently supported values
|
|
1124
|
+
# are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
1125
|
+
# reasoning effort can result in faster responses and fewer tokens used on
|
|
1126
|
+
# reasoning in a response. Not all reasoning models support every value. See the
|
|
1127
|
+
# [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
1128
|
+
# model-specific support.
|
|
1150
1129
|
sig { returns(T.nilable(OpenAI::ReasoningEffort::TaggedSymbol)) }
|
|
1151
1130
|
attr_accessor :reasoning_effort
|
|
1152
1131
|
|
|
@@ -1216,6 +1195,7 @@ module OpenAI
|
|
|
1216
1195
|
OpenAI::Responses::ComputerUsePreviewTool::OrHash,
|
|
1217
1196
|
OpenAI::Responses::Tool::Mcp::OrHash,
|
|
1218
1197
|
OpenAI::Responses::Tool::CodeInterpreter::OrHash,
|
|
1198
|
+
OpenAI::Responses::Tool::ProgrammaticToolCalling::OrHash,
|
|
1219
1199
|
OpenAI::Responses::Tool::ImageGeneration::OrHash,
|
|
1220
1200
|
OpenAI::Responses::Tool::LocalShell::OrHash,
|
|
1221
1201
|
OpenAI::Responses::FunctionShellTool::OrHash,
|
|
@@ -1256,6 +1236,7 @@ module OpenAI
|
|
|
1256
1236
|
OpenAI::Responses::ComputerUsePreviewTool::OrHash,
|
|
1257
1237
|
OpenAI::Responses::Tool::Mcp::OrHash,
|
|
1258
1238
|
OpenAI::Responses::Tool::CodeInterpreter::OrHash,
|
|
1239
|
+
OpenAI::Responses::Tool::ProgrammaticToolCalling::OrHash,
|
|
1259
1240
|
OpenAI::Responses::Tool::ImageGeneration::OrHash,
|
|
1260
1241
|
OpenAI::Responses::Tool::LocalShell::OrHash,
|
|
1261
1242
|
OpenAI::Responses::FunctionShellTool::OrHash,
|
|
@@ -1273,19 +1254,12 @@ module OpenAI
|
|
|
1273
1254
|
def self.new(
|
|
1274
1255
|
# The maximum number of tokens in the generated output.
|
|
1275
1256
|
max_completion_tokens: nil,
|
|
1276
|
-
# Constrains effort on reasoning for
|
|
1277
|
-
#
|
|
1278
|
-
#
|
|
1279
|
-
#
|
|
1280
|
-
#
|
|
1281
|
-
#
|
|
1282
|
-
# - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
1283
|
-
# reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
1284
|
-
# calls are supported for all reasoning values in gpt-5.1.
|
|
1285
|
-
# - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
1286
|
-
# support `none`.
|
|
1287
|
-
# - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
1288
|
-
# - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
1257
|
+
# Constrains effort on reasoning for reasoning models. Currently supported values
|
|
1258
|
+
# are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
1259
|
+
# reasoning effort can result in faster responses and fewer tokens used on
|
|
1260
|
+
# reasoning in a response. Not all reasoning models support every value. See the
|
|
1261
|
+
# [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
1262
|
+
# model-specific support.
|
|
1289
1263
|
reasoning_effort: nil,
|
|
1290
1264
|
# A seed value to initialize the randomness, during sampling.
|
|
1291
1265
|
seed: nil,
|
|
@@ -506,19 +506,12 @@ module OpenAI
|
|
|
506
506
|
sig { returns(T.nilable(String)) }
|
|
507
507
|
attr_accessor :model
|
|
508
508
|
|
|
509
|
-
# Constrains effort on reasoning for
|
|
510
|
-
#
|
|
511
|
-
#
|
|
512
|
-
#
|
|
513
|
-
#
|
|
514
|
-
#
|
|
515
|
-
# - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
516
|
-
# reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
517
|
-
# calls are supported for all reasoning values in gpt-5.1.
|
|
518
|
-
# - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
519
|
-
# support `none`.
|
|
520
|
-
# - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
521
|
-
# - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
509
|
+
# Constrains effort on reasoning for reasoning models. Currently supported values
|
|
510
|
+
# are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
511
|
+
# reasoning effort can result in faster responses and fewer tokens used on
|
|
512
|
+
# reasoning in a response. Not all reasoning models support every value. See the
|
|
513
|
+
# [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
514
|
+
# model-specific support.
|
|
522
515
|
sig do
|
|
523
516
|
returns(T.nilable(OpenAI::ReasoningEffort::TaggedSymbol))
|
|
524
517
|
end
|
|
@@ -573,19 +566,12 @@ module OpenAI
|
|
|
573
566
|
# The name of the model to find responses for. This is a query parameter used to
|
|
574
567
|
# select responses.
|
|
575
568
|
model: nil,
|
|
576
|
-
# Constrains effort on reasoning for
|
|
577
|
-
#
|
|
578
|
-
#
|
|
579
|
-
#
|
|
580
|
-
#
|
|
581
|
-
#
|
|
582
|
-
# - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
583
|
-
# reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
584
|
-
# calls are supported for all reasoning values in gpt-5.1.
|
|
585
|
-
# - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
586
|
-
# support `none`.
|
|
587
|
-
# - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
588
|
-
# - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
569
|
+
# Constrains effort on reasoning for reasoning models. Currently supported values
|
|
570
|
+
# are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
571
|
+
# reasoning effort can result in faster responses and fewer tokens used on
|
|
572
|
+
# reasoning in a response. Not all reasoning models support every value. See the
|
|
573
|
+
# [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
574
|
+
# model-specific support.
|
|
589
575
|
reasoning_effort: nil,
|
|
590
576
|
# Sampling temperature. This is a query parameter used to select responses.
|
|
591
577
|
temperature: nil,
|
|
@@ -1130,19 +1116,12 @@ module OpenAI
|
|
|
1130
1116
|
sig { params(max_completion_tokens: Integer).void }
|
|
1131
1117
|
attr_writer :max_completion_tokens
|
|
1132
1118
|
|
|
1133
|
-
# Constrains effort on reasoning for
|
|
1134
|
-
#
|
|
1135
|
-
#
|
|
1136
|
-
#
|
|
1137
|
-
#
|
|
1138
|
-
#
|
|
1139
|
-
# - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
1140
|
-
# reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
1141
|
-
# calls are supported for all reasoning values in gpt-5.1.
|
|
1142
|
-
# - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
1143
|
-
# support `none`.
|
|
1144
|
-
# - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
1145
|
-
# - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
1119
|
+
# Constrains effort on reasoning for reasoning models. Currently supported values
|
|
1120
|
+
# are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
1121
|
+
# reasoning effort can result in faster responses and fewer tokens used on
|
|
1122
|
+
# reasoning in a response. Not all reasoning models support every value. See the
|
|
1123
|
+
# [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
1124
|
+
# model-specific support.
|
|
1146
1125
|
sig { returns(T.nilable(OpenAI::ReasoningEffort::TaggedSymbol)) }
|
|
1147
1126
|
attr_accessor :reasoning_effort
|
|
1148
1127
|
|
|
@@ -1212,6 +1191,7 @@ module OpenAI
|
|
|
1212
1191
|
OpenAI::Responses::ComputerUsePreviewTool::OrHash,
|
|
1213
1192
|
OpenAI::Responses::Tool::Mcp::OrHash,
|
|
1214
1193
|
OpenAI::Responses::Tool::CodeInterpreter::OrHash,
|
|
1194
|
+
OpenAI::Responses::Tool::ProgrammaticToolCalling::OrHash,
|
|
1215
1195
|
OpenAI::Responses::Tool::ImageGeneration::OrHash,
|
|
1216
1196
|
OpenAI::Responses::Tool::LocalShell::OrHash,
|
|
1217
1197
|
OpenAI::Responses::FunctionShellTool::OrHash,
|
|
@@ -1252,6 +1232,7 @@ module OpenAI
|
|
|
1252
1232
|
OpenAI::Responses::ComputerUsePreviewTool::OrHash,
|
|
1253
1233
|
OpenAI::Responses::Tool::Mcp::OrHash,
|
|
1254
1234
|
OpenAI::Responses::Tool::CodeInterpreter::OrHash,
|
|
1235
|
+
OpenAI::Responses::Tool::ProgrammaticToolCalling::OrHash,
|
|
1255
1236
|
OpenAI::Responses::Tool::ImageGeneration::OrHash,
|
|
1256
1237
|
OpenAI::Responses::Tool::LocalShell::OrHash,
|
|
1257
1238
|
OpenAI::Responses::FunctionShellTool::OrHash,
|
|
@@ -1269,19 +1250,12 @@ module OpenAI
|
|
|
1269
1250
|
def self.new(
|
|
1270
1251
|
# The maximum number of tokens in the generated output.
|
|
1271
1252
|
max_completion_tokens: nil,
|
|
1272
|
-
# Constrains effort on reasoning for
|
|
1273
|
-
#
|
|
1274
|
-
#
|
|
1275
|
-
#
|
|
1276
|
-
#
|
|
1277
|
-
#
|
|
1278
|
-
# - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
1279
|
-
# reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
1280
|
-
# calls are supported for all reasoning values in gpt-5.1.
|
|
1281
|
-
# - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
1282
|
-
# support `none`.
|
|
1283
|
-
# - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
1284
|
-
# - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
1253
|
+
# Constrains effort on reasoning for reasoning models. Currently supported values
|
|
1254
|
+
# are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
1255
|
+
# reasoning effort can result in faster responses and fewer tokens used on
|
|
1256
|
+
# reasoning in a response. Not all reasoning models support every value. See the
|
|
1257
|
+
# [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
1258
|
+
# model-specific support.
|
|
1285
1259
|
reasoning_effort: nil,
|
|
1286
1260
|
# A seed value to initialize the randomness, during sampling.
|
|
1287
1261
|
seed: nil,
|
|
@@ -512,19 +512,12 @@ module OpenAI
|
|
|
512
512
|
sig { returns(T.nilable(String)) }
|
|
513
513
|
attr_accessor :model
|
|
514
514
|
|
|
515
|
-
# Constrains effort on reasoning for
|
|
516
|
-
#
|
|
517
|
-
#
|
|
518
|
-
#
|
|
519
|
-
#
|
|
520
|
-
#
|
|
521
|
-
# - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
522
|
-
# reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
523
|
-
# calls are supported for all reasoning values in gpt-5.1.
|
|
524
|
-
# - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
525
|
-
# support `none`.
|
|
526
|
-
# - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
527
|
-
# - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
515
|
+
# Constrains effort on reasoning for reasoning models. Currently supported values
|
|
516
|
+
# are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
517
|
+
# reasoning effort can result in faster responses and fewer tokens used on
|
|
518
|
+
# reasoning in a response. Not all reasoning models support every value. See the
|
|
519
|
+
# [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
520
|
+
# model-specific support.
|
|
528
521
|
sig do
|
|
529
522
|
returns(T.nilable(OpenAI::ReasoningEffort::TaggedSymbol))
|
|
530
523
|
end
|
|
@@ -579,19 +572,12 @@ module OpenAI
|
|
|
579
572
|
# The name of the model to find responses for. This is a query parameter used to
|
|
580
573
|
# select responses.
|
|
581
574
|
model: nil,
|
|
582
|
-
# Constrains effort on reasoning for
|
|
583
|
-
#
|
|
584
|
-
#
|
|
585
|
-
#
|
|
586
|
-
#
|
|
587
|
-
#
|
|
588
|
-
# - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
589
|
-
# reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
590
|
-
# calls are supported for all reasoning values in gpt-5.1.
|
|
591
|
-
# - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
592
|
-
# support `none`.
|
|
593
|
-
# - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
594
|
-
# - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
575
|
+
# Constrains effort on reasoning for reasoning models. Currently supported values
|
|
576
|
+
# are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
577
|
+
# reasoning effort can result in faster responses and fewer tokens used on
|
|
578
|
+
# reasoning in a response. Not all reasoning models support every value. See the
|
|
579
|
+
# [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
580
|
+
# model-specific support.
|
|
595
581
|
reasoning_effort: nil,
|
|
596
582
|
# Sampling temperature. This is a query parameter used to select responses.
|
|
597
583
|
temperature: nil,
|
|
@@ -1136,19 +1122,12 @@ module OpenAI
|
|
|
1136
1122
|
sig { params(max_completion_tokens: Integer).void }
|
|
1137
1123
|
attr_writer :max_completion_tokens
|
|
1138
1124
|
|
|
1139
|
-
# Constrains effort on reasoning for
|
|
1140
|
-
#
|
|
1141
|
-
#
|
|
1142
|
-
#
|
|
1143
|
-
#
|
|
1144
|
-
#
|
|
1145
|
-
# - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
1146
|
-
# reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
1147
|
-
# calls are supported for all reasoning values in gpt-5.1.
|
|
1148
|
-
# - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
1149
|
-
# support `none`.
|
|
1150
|
-
# - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
1151
|
-
# - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
1125
|
+
# Constrains effort on reasoning for reasoning models. Currently supported values
|
|
1126
|
+
# are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
1127
|
+
# reasoning effort can result in faster responses and fewer tokens used on
|
|
1128
|
+
# reasoning in a response. Not all reasoning models support every value. See the
|
|
1129
|
+
# [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
1130
|
+
# model-specific support.
|
|
1152
1131
|
sig { returns(T.nilable(OpenAI::ReasoningEffort::TaggedSymbol)) }
|
|
1153
1132
|
attr_accessor :reasoning_effort
|
|
1154
1133
|
|
|
@@ -1218,6 +1197,7 @@ module OpenAI
|
|
|
1218
1197
|
OpenAI::Responses::ComputerUsePreviewTool::OrHash,
|
|
1219
1198
|
OpenAI::Responses::Tool::Mcp::OrHash,
|
|
1220
1199
|
OpenAI::Responses::Tool::CodeInterpreter::OrHash,
|
|
1200
|
+
OpenAI::Responses::Tool::ProgrammaticToolCalling::OrHash,
|
|
1221
1201
|
OpenAI::Responses::Tool::ImageGeneration::OrHash,
|
|
1222
1202
|
OpenAI::Responses::Tool::LocalShell::OrHash,
|
|
1223
1203
|
OpenAI::Responses::FunctionShellTool::OrHash,
|
|
@@ -1258,6 +1238,7 @@ module OpenAI
|
|
|
1258
1238
|
OpenAI::Responses::ComputerUsePreviewTool::OrHash,
|
|
1259
1239
|
OpenAI::Responses::Tool::Mcp::OrHash,
|
|
1260
1240
|
OpenAI::Responses::Tool::CodeInterpreter::OrHash,
|
|
1241
|
+
OpenAI::Responses::Tool::ProgrammaticToolCalling::OrHash,
|
|
1261
1242
|
OpenAI::Responses::Tool::ImageGeneration::OrHash,
|
|
1262
1243
|
OpenAI::Responses::Tool::LocalShell::OrHash,
|
|
1263
1244
|
OpenAI::Responses::FunctionShellTool::OrHash,
|
|
@@ -1275,19 +1256,12 @@ module OpenAI
|
|
|
1275
1256
|
def self.new(
|
|
1276
1257
|
# The maximum number of tokens in the generated output.
|
|
1277
1258
|
max_completion_tokens: nil,
|
|
1278
|
-
# Constrains effort on reasoning for
|
|
1279
|
-
#
|
|
1280
|
-
#
|
|
1281
|
-
#
|
|
1282
|
-
#
|
|
1283
|
-
#
|
|
1284
|
-
# - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
1285
|
-
# reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
1286
|
-
# calls are supported for all reasoning values in gpt-5.1.
|
|
1287
|
-
# - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
1288
|
-
# support `none`.
|
|
1289
|
-
# - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
1290
|
-
# - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
1259
|
+
# Constrains effort on reasoning for reasoning models. Currently supported values
|
|
1260
|
+
# are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
1261
|
+
# reasoning effort can result in faster responses and fewer tokens used on
|
|
1262
|
+
# reasoning in a response. Not all reasoning models support every value. See the
|
|
1263
|
+
# [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
1264
|
+
# model-specific support.
|
|
1291
1265
|
reasoning_effort: nil,
|
|
1292
1266
|
# A seed value to initialize the randomness, during sampling.
|
|
1293
1267
|
seed: nil,
|
|
@@ -415,19 +415,12 @@ module OpenAI
|
|
|
415
415
|
sig { returns(T.nilable(Integer)) }
|
|
416
416
|
attr_accessor :max_completions_tokens
|
|
417
417
|
|
|
418
|
-
# Constrains effort on reasoning for
|
|
419
|
-
#
|
|
420
|
-
#
|
|
421
|
-
#
|
|
422
|
-
#
|
|
423
|
-
#
|
|
424
|
-
# - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
425
|
-
# reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
426
|
-
# calls are supported for all reasoning values in gpt-5.1.
|
|
427
|
-
# - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
428
|
-
# support `none`.
|
|
429
|
-
# - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
430
|
-
# - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
418
|
+
# Constrains effort on reasoning for reasoning models. Currently supported values
|
|
419
|
+
# are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
420
|
+
# reasoning effort can result in faster responses and fewer tokens used on
|
|
421
|
+
# reasoning in a response. Not all reasoning models support every value. See the
|
|
422
|
+
# [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
423
|
+
# model-specific support.
|
|
431
424
|
sig { returns(T.nilable(OpenAI::ReasoningEffort::OrSymbol)) }
|
|
432
425
|
attr_accessor :reasoning_effort
|
|
433
426
|
|
|
@@ -456,19 +449,12 @@ module OpenAI
|
|
|
456
449
|
def self.new(
|
|
457
450
|
# The maximum number of tokens the grader model may generate in its response.
|
|
458
451
|
max_completions_tokens: nil,
|
|
459
|
-
# Constrains effort on reasoning for
|
|
460
|
-
#
|
|
461
|
-
#
|
|
462
|
-
#
|
|
463
|
-
#
|
|
464
|
-
#
|
|
465
|
-
# - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
466
|
-
# reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
467
|
-
# calls are supported for all reasoning values in gpt-5.1.
|
|
468
|
-
# - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
469
|
-
# support `none`.
|
|
470
|
-
# - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
471
|
-
# - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
452
|
+
# Constrains effort on reasoning for reasoning models. Currently supported values
|
|
453
|
+
# are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
454
|
+
# reasoning effort can result in faster responses and fewer tokens used on
|
|
455
|
+
# reasoning in a response. Not all reasoning models support every value. See the
|
|
456
|
+
# [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
457
|
+
# model-specific support.
|
|
472
458
|
reasoning_effort: nil,
|
|
473
459
|
# A seed value to initialize the randomness, during sampling.
|
|
474
460
|
seed: nil,
|