openai 0.130.0 → 1.0.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 +36 -0
- data/README.md +39 -3
- data/lib/openai/client.rb +0 -4
- data/lib/openai/internal/type/union.rb +5 -1
- data/lib/openai/models/batch_create_params.rb +6 -19
- data/lib/openai/models/beta/beta_compacted_response.rb +3 -3
- data/lib/openai/models/beta/beta_response.rb +0 -18
- data/lib/openai/models/beta/beta_responses_client_event.rb +0 -26
- data/lib/openai/models/beta/response_compact_params.rb +0 -18
- data/lib/openai/models/beta/response_create_params.rb +0 -18
- data/lib/openai/models/chat/completion_create_params.rb +8 -6
- data/lib/openai/models/chat_model.rb +0 -12
- data/lib/openai/models/completion_create_params.rb +4 -2
- data/lib/openai/models/graders/multi_grader.rb +11 -15
- data/lib/openai/models/image_edit_completed_event.rb +9 -17
- data/lib/openai/models/image_edit_partial_image_event.rb +9 -17
- data/lib/openai/models/image_gen_completed_event.rb +9 -17
- data/lib/openai/models/image_gen_partial_image_event.rb +9 -17
- data/lib/openai/models/images_response.rb +8 -14
- data/lib/openai/models/live/responses_delegation_config.rb +47 -21
- data/lib/openai/models/live/responses_delegation_update_config.rb +47 -21
- data/lib/openai/models/responses/compacted_response.rb +3 -3
- data/lib/openai/models/responses/response_compact_params.rb +0 -18
- data/lib/openai/models.rb +0 -32
- data/lib/openai/providers/vertex.rb +9 -6
- data/lib/openai/resources/batches.rb +2 -6
- data/lib/openai/resources/beta.rb +0 -10
- data/lib/openai/resources/chat/completions.rb +8 -6
- data/lib/openai/resources/completions.rb +4 -2
- data/lib/openai/version.rb +1 -1
- data/lib/openai.rb +0 -114
- data/rbi/openai/client.rbi +0 -3
- data/rbi/openai/models/batch_create_params.rbi +6 -19
- data/rbi/openai/models/beta/beta_compacted_response.rbi +22 -20
- data/rbi/openai/models/beta/beta_response.rbi +0 -3
- data/rbi/openai/models/beta/beta_responses_client_event.rbi +0 -12
- data/rbi/openai/models/beta/response_compact_params.rbi +0 -9
- data/rbi/openai/models/beta/response_create_params.rbi +0 -6
- data/rbi/openai/models/chat/completion_create_params.rbi +8 -6
- data/rbi/openai/models/chat_model.rbi +0 -3
- data/rbi/openai/models/completion_create_params.rbi +4 -2
- data/rbi/openai/models/graders/multi_grader.rbi +32 -27
- data/rbi/openai/models/image_edit_completed_event.rbi +11 -8
- data/rbi/openai/models/image_edit_partial_image_event.rbi +11 -8
- data/rbi/openai/models/image_gen_completed_event.rbi +11 -8
- data/rbi/openai/models/image_gen_partial_image_event.rbi +11 -8
- data/rbi/openai/models/images_response.rbi +6 -6
- data/rbi/openai/models/live/responses_delegation_config.rbi +54 -30
- data/rbi/openai/models/live/responses_delegation_update_config.rbi +54 -30
- data/rbi/openai/models/responses/compacted_response.rbi +19 -17
- data/rbi/openai/models/responses/response_compact_params.rbi +0 -12
- data/rbi/openai/models.rbi +0 -32
- data/rbi/openai/resources/batches.rbi +2 -6
- data/rbi/openai/resources/beta.rbi +0 -8
- data/rbi/openai/resources/chat/completions.rbi +8 -6
- data/rbi/openai/resources/completions.rbi +4 -2
- data/sig/openai/client.rbs +0 -2
- data/sig/openai/models/batch_create_params.rbs +4 -14
- data/sig/openai/models/beta/beta_compacted_response.rbs +4 -4
- data/sig/openai/models/beta/beta_response.rbs +0 -6
- data/sig/openai/models/beta/beta_responses_client_event.rbs +0 -6
- data/sig/openai/models/beta/response_compact_params.rbs +0 -6
- data/sig/openai/models/beta/response_create_params.rbs +0 -6
- data/sig/openai/models/chat/completion_create_params.rbs +8 -6
- data/sig/openai/models/chat_model.rbs +0 -6
- data/sig/openai/models/completion_create_params.rbs +4 -2
- data/sig/openai/models/graders/multi_grader.rbs +7 -12
- data/sig/openai/models/image_edit_completed_event.rbs +11 -9
- data/sig/openai/models/image_edit_partial_image_event.rbs +11 -9
- data/sig/openai/models/image_gen_completed_event.rbs +11 -9
- data/sig/openai/models/image_gen_partial_image_event.rbs +11 -9
- data/sig/openai/models/images_response.rbs +5 -7
- data/sig/openai/models/live/responses_delegation_config.rbs +50 -18
- data/sig/openai/models/live/responses_delegation_update_config.rbs +50 -18
- data/sig/openai/models/responses/compacted_response.rbs +4 -4
- data/sig/openai/models/responses/response_compact_params.rbs +0 -6
- data/sig/openai/models.rbs +0 -32
- data/sig/openai/resources/beta.rbs +0 -4
- metadata +1 -343
- data/lib/openai/models/beta/assistant.rb +0 -270
- data/lib/openai/models/beta/assistant_create_params.rb +0 -448
- data/lib/openai/models/beta/assistant_delete_params.rb +0 -22
- data/lib/openai/models/beta/assistant_deleted.rb +0 -30
- data/lib/openai/models/beta/assistant_list_params.rb +0 -80
- data/lib/openai/models/beta/assistant_response_format_option.rb +0 -50
- data/lib/openai/models/beta/assistant_retrieve_params.rb +0 -22
- data/lib/openai/models/beta/assistant_stream_event.rb +0 -688
- data/lib/openai/models/beta/assistant_tool.rb +0 -22
- data/lib/openai/models/beta/assistant_tool_choice.rb +0 -43
- data/lib/openai/models/beta/assistant_tool_choice_function.rb +0 -19
- data/lib/openai/models/beta/assistant_tool_choice_option.rb +0 -42
- data/lib/openai/models/beta/assistant_update_params.rb +0 -450
- data/lib/openai/models/beta/code_interpreter_tool.rb +0 -19
- data/lib/openai/models/beta/file_search_tool.rb +0 -123
- data/lib/openai/models/beta/function_tool.rb +0 -26
- data/lib/openai/models/beta/message_stream_event.rb +0 -159
- data/lib/openai/models/beta/run_step_stream_event.rb +0 -201
- data/lib/openai/models/beta/run_stream_event.rb +0 -288
- data/lib/openai/models/beta/thread.rb +0 -133
- data/lib/openai/models/beta/thread_create_and_run_params.rb +0 -857
- data/lib/openai/models/beta/thread_create_params.rb +0 -443
- data/lib/openai/models/beta/thread_delete_params.rb +0 -22
- data/lib/openai/models/beta/thread_deleted.rb +0 -30
- data/lib/openai/models/beta/thread_retrieve_params.rb +0 -22
- data/lib/openai/models/beta/thread_stream_event.rb +0 -41
- data/lib/openai/models/beta/thread_update_params.rb +0 -114
- data/lib/openai/models/beta/threads/annotation.rb +0 -27
- data/lib/openai/models/beta/threads/annotation_delta.rb +0 -27
- data/lib/openai/models/beta/threads/file_citation_annotation.rb +0 -68
- data/lib/openai/models/beta/threads/file_citation_delta_annotation.rb +0 -86
- data/lib/openai/models/beta/threads/file_path_annotation.rb +0 -67
- data/lib/openai/models/beta/threads/file_path_delta_annotation.rb +0 -76
- data/lib/openai/models/beta/threads/image_file.rb +0 -51
- data/lib/openai/models/beta/threads/image_file_content_block.rb +0 -32
- data/lib/openai/models/beta/threads/image_file_delta.rb +0 -51
- data/lib/openai/models/beta/threads/image_file_delta_block.rb +0 -41
- data/lib/openai/models/beta/threads/image_url.rb +0 -49
- data/lib/openai/models/beta/threads/image_url_content_block.rb +0 -30
- data/lib/openai/models/beta/threads/image_url_delta.rb +0 -49
- data/lib/openai/models/beta/threads/image_url_delta_block.rb +0 -39
- data/lib/openai/models/beta/threads/message.rb +0 -272
- data/lib/openai/models/beta/threads/message_content.rb +0 -33
- data/lib/openai/models/beta/threads/message_content_delta.rb +0 -33
- data/lib/openai/models/beta/threads/message_content_part_param.rb +0 -30
- data/lib/openai/models/beta/threads/message_create_params.rb +0 -172
- data/lib/openai/models/beta/threads/message_delete_params.rb +0 -30
- data/lib/openai/models/beta/threads/message_deleted.rb +0 -32
- data/lib/openai/models/beta/threads/message_delta.rb +0 -48
- data/lib/openai/models/beta/threads/message_delta_event.rb +0 -42
- data/lib/openai/models/beta/threads/message_list_params.rb +0 -98
- data/lib/openai/models/beta/threads/message_retrieve_params.rb +0 -30
- data/lib/openai/models/beta/threads/message_update_params.rb +0 -51
- data/lib/openai/models/beta/threads/refusal_content_block.rb +0 -30
- data/lib/openai/models/beta/threads/refusal_delta_block.rb +0 -39
- data/lib/openai/models/beta/threads/required_action_function_tool_call.rb +0 -73
- data/lib/openai/models/beta/threads/run.rb +0 -557
- data/lib/openai/models/beta/threads/run_cancel_params.rb +0 -30
- data/lib/openai/models/beta/threads/run_create_params.rb +0 -565
- data/lib/openai/models/beta/threads/run_list_params.rb +0 -89
- data/lib/openai/models/beta/threads/run_retrieve_params.rb +0 -30
- data/lib/openai/models/beta/threads/run_status.rb +0 -29
- data/lib/openai/models/beta/threads/run_submit_tool_outputs_params.rb +0 -69
- data/lib/openai/models/beta/threads/run_update_params.rb +0 -51
- data/lib/openai/models/beta/threads/runs/code_interpreter_logs.rb +0 -43
- data/lib/openai/models/beta/threads/runs/code_interpreter_output_image.rb +0 -54
- data/lib/openai/models/beta/threads/runs/code_interpreter_tool_call.rb +0 -161
- data/lib/openai/models/beta/threads/runs/code_interpreter_tool_call_delta.rb +0 -107
- data/lib/openai/models/beta/threads/runs/file_search_tool_call.rb +0 -207
- data/lib/openai/models/beta/threads/runs/file_search_tool_call_delta.rb +0 -52
- data/lib/openai/models/beta/threads/runs/function_tool_call.rb +0 -78
- data/lib/openai/models/beta/threads/runs/function_tool_call_delta.rb +0 -87
- data/lib/openai/models/beta/threads/runs/message_creation_step_details.rb +0 -48
- data/lib/openai/models/beta/threads/runs/run_step.rb +0 -311
- data/lib/openai/models/beta/threads/runs/run_step_delta.rb +0 -45
- data/lib/openai/models/beta/threads/runs/run_step_delta_event.rb +0 -46
- data/lib/openai/models/beta/threads/runs/run_step_delta_message_delta.rb +0 -47
- data/lib/openai/models/beta/threads/runs/run_step_include.rb +0 -22
- data/lib/openai/models/beta/threads/runs/step_list_params.rb +0 -122
- data/lib/openai/models/beta/threads/runs/step_retrieve_params.rb +0 -65
- data/lib/openai/models/beta/threads/runs/tool_call.rb +0 -28
- data/lib/openai/models/beta/threads/runs/tool_call_delta.rb +0 -28
- data/lib/openai/models/beta/threads/runs/tool_call_delta_object.rb +0 -41
- data/lib/openai/models/beta/threads/runs/tool_calls_step_details.rb +0 -38
- data/lib/openai/models/beta/threads/text.rb +0 -28
- data/lib/openai/models/beta/threads/text_content_block.rb +0 -30
- data/lib/openai/models/beta/threads/text_content_block_param.rb +0 -32
- data/lib/openai/models/beta/threads/text_delta.rb +0 -31
- data/lib/openai/models/beta/threads/text_delta_block.rb +0 -39
- data/lib/openai/models/image_input_reference_param.rb +0 -24
- data/lib/openai/models/video.rb +0 -161
- data/lib/openai/models/video_create_character_params.rb +0 -40
- data/lib/openai/models/video_create_character_response.rb +0 -36
- data/lib/openai/models/video_create_error.rb +0 -166
- data/lib/openai/models/video_create_params.rb +0 -85
- data/lib/openai/models/video_delete_params.rb +0 -20
- data/lib/openai/models/video_delete_response.rb +0 -38
- data/lib/openai/models/video_download_content_params.rb +0 -42
- data/lib/openai/models/video_edit_params.rb +0 -68
- data/lib/openai/models/video_extend_params.rb +0 -79
- data/lib/openai/models/video_get_character_params.rb +0 -20
- data/lib/openai/models/video_get_character_response.rb +0 -36
- data/lib/openai/models/video_list_params.rb +0 -55
- data/lib/openai/models/video_model.rb +0 -38
- data/lib/openai/models/video_remix_params.rb +0 -30
- data/lib/openai/models/video_retrieve_params.rb +0 -20
- data/lib/openai/models/video_seconds.rb +0 -16
- data/lib/openai/models/video_size.rb +0 -17
- data/lib/openai/resources/beta/assistants.rb +0 -320
- data/lib/openai/resources/beta/threads/messages.rb +0 -236
- data/lib/openai/resources/beta/threads/runs/steps.rb +0 -141
- data/lib/openai/resources/beta/threads/runs.rb +0 -623
- data/lib/openai/resources/beta/threads.rb +0 -444
- data/lib/openai/resources/videos.rb +0 -354
- data/rbi/openai/models/beta/assistant.rbi +0 -411
- data/rbi/openai/models/beta/assistant_create_params.rbi +0 -776
- data/rbi/openai/models/beta/assistant_delete_params.rbi +0 -53
- data/rbi/openai/models/beta/assistant_deleted.rbi +0 -60
- data/rbi/openai/models/beta/assistant_list_params.rbi +0 -132
- data/rbi/openai/models/beta/assistant_response_format_option.rbi +0 -49
- data/rbi/openai/models/beta/assistant_retrieve_params.rbi +0 -53
- data/rbi/openai/models/beta/assistant_stream_event.rbi +0 -1277
- data/rbi/openai/models/beta/assistant_tool.rbi +0 -28
- data/rbi/openai/models/beta/assistant_tool_choice.rbi +0 -79
- data/rbi/openai/models/beta/assistant_tool_choice_function.rbi +0 -49
- data/rbi/openai/models/beta/assistant_tool_choice_option.rbi +0 -53
- data/rbi/openai/models/beta/assistant_update_params.rbi +0 -556
- data/rbi/openai/models/beta/code_interpreter_tool.rbi +0 -49
- data/rbi/openai/models/beta/file_search_tool.rbi +0 -223
- data/rbi/openai/models/beta/function_tool.rbi +0 -59
- data/rbi/openai/models/beta/message_stream_event.rbi +0 -288
- data/rbi/openai/models/beta/run_step_stream_event.rbi +0 -378
- data/rbi/openai/models/beta/run_stream_event.rbi +0 -537
- data/rbi/openai/models/beta/thread.rbi +0 -255
- data/rbi/openai/models/beta/thread_create_and_run_params.rbi +0 -1461
- data/rbi/openai/models/beta/thread_create_params.rbi +0 -823
- data/rbi/openai/models/beta/thread_delete_params.rbi +0 -53
- data/rbi/openai/models/beta/thread_deleted.rbi +0 -60
- data/rbi/openai/models/beta/thread_retrieve_params.rbi +0 -53
- data/rbi/openai/models/beta/thread_stream_event.rbi +0 -75
- data/rbi/openai/models/beta/thread_update_params.rbi +0 -240
- data/rbi/openai/models/beta/threads/annotation.rbi +0 -34
- data/rbi/openai/models/beta/threads/annotation_delta.rbi +0 -34
- data/rbi/openai/models/beta/threads/file_citation_annotation.rbi +0 -132
- data/rbi/openai/models/beta/threads/file_citation_delta_annotation.rbi +0 -166
- data/rbi/openai/models/beta/threads/file_path_annotation.rbi +0 -131
- data/rbi/openai/models/beta/threads/file_path_delta_annotation.rbi +0 -153
- data/rbi/openai/models/beta/threads/image_file.rbi +0 -88
- data/rbi/openai/models/beta/threads/image_file_content_block.rbi +0 -66
- data/rbi/openai/models/beta/threads/image_file_delta.rbi +0 -91
- data/rbi/openai/models/beta/threads/image_file_delta_block.rbi +0 -75
- data/rbi/openai/models/beta/threads/image_url.rbi +0 -86
- data/rbi/openai/models/beta/threads/image_url_content_block.rbi +0 -64
- data/rbi/openai/models/beta/threads/image_url_delta.rbi +0 -89
- data/rbi/openai/models/beta/threads/image_url_delta_block.rbi +0 -73
- data/rbi/openai/models/beta/threads/message.rbi +0 -433
- data/rbi/openai/models/beta/threads/message_content.rbi +0 -36
- data/rbi/openai/models/beta/threads/message_content_delta.rbi +0 -36
- data/rbi/openai/models/beta/threads/message_content_part_param.rbi +0 -35
- data/rbi/openai/models/beta/threads/message_create_params.rbi +0 -299
- data/rbi/openai/models/beta/threads/message_delete_params.rbi +0 -64
- data/rbi/openai/models/beta/threads/message_deleted.rbi +0 -64
- data/rbi/openai/models/beta/threads/message_delta.rbi +0 -106
- data/rbi/openai/models/beta/threads/message_delta_event.rbi +0 -76
- data/rbi/openai/models/beta/threads/message_list_params.rbi +0 -157
- data/rbi/openai/models/beta/threads/message_retrieve_params.rbi +0 -64
- data/rbi/openai/models/beta/threads/message_update_params.rbi +0 -88
- data/rbi/openai/models/beta/threads/refusal_content_block.rbi +0 -61
- data/rbi/openai/models/beta/threads/refusal_delta_block.rbi +0 -73
- data/rbi/openai/models/beta/threads/required_action_function_tool_call.rbi +0 -130
- data/rbi/openai/models/beta/threads/run.rbi +0 -803
- data/rbi/openai/models/beta/threads/run_cancel_params.rbi +0 -64
- data/rbi/openai/models/beta/threads/run_create_params.rbi +0 -825
- data/rbi/openai/models/beta/threads/run_list_params.rbi +0 -144
- data/rbi/openai/models/beta/threads/run_retrieve_params.rbi +0 -64
- data/rbi/openai/models/beta/threads/run_status.rbi +0 -39
- data/rbi/openai/models/beta/threads/run_submit_tool_outputs_params.rbi +0 -132
- data/rbi/openai/models/beta/threads/run_update_params.rbi +0 -88
- data/rbi/openai/models/beta/threads/runs/code_interpreter_logs.rbi +0 -79
- data/rbi/openai/models/beta/threads/runs/code_interpreter_output_image.rbi +0 -118
- data/rbi/openai/models/beta/threads/runs/code_interpreter_tool_call.rbi +0 -315
- data/rbi/openai/models/beta/threads/runs/code_interpreter_tool_call_delta.rbi +0 -210
- data/rbi/openai/models/beta/threads/runs/file_search_tool_call.rbi +0 -409
- data/rbi/openai/models/beta/threads/runs/file_search_tool_call_delta.rbi +0 -89
- data/rbi/openai/models/beta/threads/runs/function_tool_call.rbi +0 -138
- data/rbi/openai/models/beta/threads/runs/function_tool_call_delta.rbi +0 -161
- data/rbi/openai/models/beta/threads/runs/message_creation_step_details.rbi +0 -111
- data/rbi/openai/models/beta/threads/runs/run_step.rbi +0 -422
- data/rbi/openai/models/beta/threads/runs/run_step_delta.rbi +0 -91
- data/rbi/openai/models/beta/threads/runs/run_step_delta_event.rbi +0 -82
- data/rbi/openai/models/beta/threads/runs/run_step_delta_message_delta.rbi +0 -113
- data/rbi/openai/models/beta/threads/runs/run_step_include.rbi +0 -37
- data/rbi/openai/models/beta/threads/runs/step_list_params.rbi +0 -181
- data/rbi/openai/models/beta/threads/runs/step_retrieve_params.rbi +0 -105
- data/rbi/openai/models/beta/threads/runs/tool_call.rbi +0 -37
- data/rbi/openai/models/beta/threads/runs/tool_call_delta.rbi +0 -37
- data/rbi/openai/models/beta/threads/runs/tool_call_delta_object.rbi +0 -91
- data/rbi/openai/models/beta/threads/runs/tool_calls_step_details.rbi +0 -77
- data/rbi/openai/models/beta/threads/text.rbi +0 -65
- data/rbi/openai/models/beta/threads/text_content_block.rbi +0 -64
- data/rbi/openai/models/beta/threads/text_content_block_param.rbi +0 -63
- data/rbi/openai/models/beta/threads/text_delta.rbi +0 -81
- data/rbi/openai/models/beta/threads/text_delta_block.rbi +0 -73
- data/rbi/openai/models/image_input_reference_param.rbi +0 -58
- data/rbi/openai/models/video.rbi +0 -203
- data/rbi/openai/models/video_create_character_params.rbi +0 -68
- data/rbi/openai/models/video_create_character_response.rbi +0 -63
- data/rbi/openai/models/video_create_error.rbi +0 -255
- data/rbi/openai/models/video_create_params.rbi +0 -132
- data/rbi/openai/models/video_delete_params.rbi +0 -49
- data/rbi/openai/models/video_delete_response.rbi +0 -64
- data/rbi/openai/models/video_download_content_params.rbi +0 -81
- data/rbi/openai/models/video_edit_params.rbi +0 -122
- data/rbi/openai/models/video_extend_params.rbi +0 -134
- data/rbi/openai/models/video_get_character_params.rbi +0 -49
- data/rbi/openai/models/video_get_character_response.rbi +0 -63
- data/rbi/openai/models/video_list_params.rbi +0 -101
- data/rbi/openai/models/video_model.rbi +0 -35
- data/rbi/openai/models/video_remix_params.rbi +0 -58
- data/rbi/openai/models/video_retrieve_params.rbi +0 -49
- data/rbi/openai/models/video_seconds.rbi +0 -22
- data/rbi/openai/models/video_size.rbi +0 -23
- data/rbi/openai/resources/beta/assistants.rbi +0 -285
- data/rbi/openai/resources/beta/threads/messages.rbi +0 -161
- data/rbi/openai/resources/beta/threads/runs/steps.rbi +0 -107
- data/rbi/openai/resources/beta/threads/runs.rbi +0 -527
- data/rbi/openai/resources/beta/threads.rbi +0 -391
- data/rbi/openai/resources/videos.rbi +0 -205
- data/sig/openai/models/beta/assistant.rbs +0 -278
- data/sig/openai/models/beta/assistant_create_params.rbs +0 -485
- data/sig/openai/models/beta/assistant_delete_params.rbs +0 -25
- data/sig/openai/models/beta/assistant_deleted.rbs +0 -28
- data/sig/openai/models/beta/assistant_list_params.rbs +0 -104
- data/sig/openai/models/beta/assistant_response_format_option.rbs +0 -17
- data/sig/openai/models/beta/assistant_retrieve_params.rbs +0 -25
- data/sig/openai/models/beta/assistant_stream_event.rbs +0 -645
- data/sig/openai/models/beta/assistant_tool.rbs +0 -16
- data/sig/openai/models/beta/assistant_tool_choice.rbs +0 -46
- data/sig/openai/models/beta/assistant_tool_choice_function.rbs +0 -18
- data/sig/openai/models/beta/assistant_tool_choice_option.rbs +0 -27
- data/sig/openai/models/beta/assistant_update_params.rbs +0 -396
- data/sig/openai/models/beta/code_interpreter_tool.rbs +0 -18
- data/sig/openai/models/beta/file_search_tool.rbs +0 -159
- data/sig/openai/models/beta/function_tool.rbs +0 -27
- data/sig/openai/models/beta/message_stream_event.rbs +0 -153
- data/sig/openai/models/beta/run_step_stream_event.rbs +0 -197
- data/sig/openai/models/beta/run_stream_event.rbs +0 -269
- data/sig/openai/models/beta/thread.rbs +0 -150
- data/sig/openai/models/beta/thread_create_and_run_params.rbs +0 -885
- data/sig/openai/models/beta/thread_create_params.rbs +0 -492
- data/sig/openai/models/beta/thread_delete_params.rbs +0 -25
- data/sig/openai/models/beta/thread_deleted.rbs +0 -28
- data/sig/openai/models/beta/thread_retrieve_params.rbs +0 -25
- data/sig/openai/models/beta/thread_stream_event.rbs +0 -43
- data/sig/openai/models/beta/thread_update_params.rbs +0 -137
- data/sig/openai/models/beta/threads/annotation.rbs +0 -17
- data/sig/openai/models/beta/threads/annotation_delta.rbs +0 -17
- data/sig/openai/models/beta/threads/file_citation_annotation.rbs +0 -63
- data/sig/openai/models/beta/threads/file_citation_delta_annotation.rbs +0 -93
- data/sig/openai/models/beta/threads/file_path_annotation.rbs +0 -63
- data/sig/openai/models/beta/threads/file_path_delta_annotation.rbs +0 -85
- data/sig/openai/models/beta/threads/image_file.rbs +0 -59
- data/sig/openai/models/beta/threads/image_file_content_block.rbs +0 -29
- data/sig/openai/models/beta/threads/image_file_delta.rbs +0 -64
- data/sig/openai/models/beta/threads/image_file_delta_block.rbs +0 -44
- data/sig/openai/models/beta/threads/image_url.rbs +0 -57
- data/sig/openai/models/beta/threads/image_url_content_block.rbs +0 -29
- data/sig/openai/models/beta/threads/image_url_delta.rbs +0 -61
- data/sig/openai/models/beta/threads/image_url_delta_block.rbs +0 -44
- data/sig/openai/models/beta/threads/message.rbs +0 -275
- data/sig/openai/models/beta/threads/message_content.rbs +0 -19
- data/sig/openai/models/beta/threads/message_content_delta.rbs +0 -19
- data/sig/openai/models/beta/threads/message_content_part_param.rbs +0 -18
- data/sig/openai/models/beta/threads/message_create_params.rbs +0 -167
- data/sig/openai/models/beta/threads/message_delete_params.rbs +0 -35
- data/sig/openai/models/beta/threads/message_deleted.rbs +0 -30
- data/sig/openai/models/beta/threads/message_delta.rbs +0 -56
- data/sig/openai/models/beta/threads/message_delta_event.rbs +0 -43
- data/sig/openai/models/beta/threads/message_list_params.rbs +0 -122
- data/sig/openai/models/beta/threads/message_retrieve_params.rbs +0 -35
- data/sig/openai/models/beta/threads/message_update_params.rbs +0 -53
- data/sig/openai/models/beta/threads/refusal_content_block.rbs +0 -22
- data/sig/openai/models/beta/threads/refusal_delta_block.rbs +0 -34
- data/sig/openai/models/beta/threads/required_action_function_tool_call.rbs +0 -69
- data/sig/openai/models/beta/threads/run.rbs +0 -545
- data/sig/openai/models/beta/threads/run_cancel_params.rbs +0 -35
- data/sig/openai/models/beta/threads/run_create_params.rbs +0 -524
- data/sig/openai/models/beta/threads/run_list_params.rbs +0 -111
- data/sig/openai/models/beta/threads/run_retrieve_params.rbs +0 -35
- data/sig/openai/models/beta/threads/run_status.rbs +0 -34
- data/sig/openai/models/beta/threads/run_submit_tool_outputs_params.rbs +0 -70
- data/sig/openai/models/beta/threads/run_update_params.rbs +0 -53
- data/sig/openai/models/beta/threads/runs/code_interpreter_logs.rbs +0 -40
- data/sig/openai/models/beta/threads/runs/code_interpreter_output_image.rbs +0 -65
- data/sig/openai/models/beta/threads/runs/code_interpreter_tool_call.rbs +0 -147
- data/sig/openai/models/beta/threads/runs/code_interpreter_tool_call_delta.rbs +0 -115
- data/sig/openai/models/beta/threads/runs/file_search_tool_call.rbs +0 -228
- data/sig/openai/models/beta/threads/runs/file_search_tool_call_delta.rbs +0 -58
- data/sig/openai/models/beta/threads/runs/function_tool_call.rbs +0 -80
- data/sig/openai/models/beta/threads/runs/function_tool_call_delta.rbs +0 -103
- data/sig/openai/models/beta/threads/runs/message_creation_step_details.rbs +0 -47
- data/sig/openai/models/beta/threads/runs/run_step.rbs +0 -290
- data/sig/openai/models/beta/threads/runs/run_step_delta.rbs +0 -46
- data/sig/openai/models/beta/threads/runs/run_step_delta_event.rbs +0 -47
- data/sig/openai/models/beta/threads/runs/run_step_delta_message_delta.rbs +0 -56
- data/sig/openai/models/beta/threads/runs/run_step_include.rbs +0 -22
- data/sig/openai/models/beta/threads/runs/step_list_params.rbs +0 -149
- data/sig/openai/models/beta/threads/runs/step_retrieve_params.rbs +0 -73
- data/sig/openai/models/beta/threads/runs/tool_call.rbs +0 -20
- data/sig/openai/models/beta/threads/runs/tool_call_delta.rbs +0 -20
- data/sig/openai/models/beta/threads/runs/tool_call_delta_object.rbs +0 -48
- data/sig/openai/models/beta/threads/runs/tool_calls_step_details.rbs +0 -41
- data/sig/openai/models/beta/threads/text.rbs +0 -32
- data/sig/openai/models/beta/threads/text_content_block.rbs +0 -26
- data/sig/openai/models/beta/threads/text_content_block_param.rbs +0 -25
- data/sig/openai/models/beta/threads/text_delta.rbs +0 -39
- data/sig/openai/models/beta/threads/text_delta_block.rbs +0 -44
- data/sig/openai/models/image_input_reference_param.rbs +0 -23
- data/sig/openai/models/video.rbs +0 -142
- data/sig/openai/models/video_create_character_params.rbs +0 -45
- data/sig/openai/models/video_create_character_response.rbs +0 -27
- data/sig/openai/models/video_create_error.rbs +0 -163
- data/sig/openai/models/video_create_params.rbs +0 -104
- data/sig/openai/models/video_delete_params.rbs +0 -23
- data/sig/openai/models/video_delete_response.rbs +0 -31
- data/sig/openai/models/video_download_content_params.rbs +0 -51
- data/sig/openai/models/video_edit_params.rbs +0 -77
- data/sig/openai/models/video_extend_params.rbs +0 -87
- data/sig/openai/models/video_get_character_params.rbs +0 -23
- data/sig/openai/models/video_get_character_response.rbs +0 -27
- data/sig/openai/models/video_list_params.rbs +0 -70
- data/sig/openai/models/video_model.rbs +0 -23
- data/sig/openai/models/video_remix_params.rbs +0 -34
- data/sig/openai/models/video_retrieve_params.rbs +0 -23
- data/sig/openai/models/video_seconds.rbs +0 -15
- data/sig/openai/models/video_size.rbs +0 -16
- data/sig/openai/resources/beta/assistants.rbs +0 -58
- data/sig/openai/resources/beta/threads/messages.rbs +0 -49
- data/sig/openai/resources/beta/threads/runs/steps.rbs +0 -32
- data/sig/openai/resources/beta/threads/runs.rbs +0 -99
- data/sig/openai/resources/beta/threads.rbs +0 -75
- data/sig/openai/resources/videos.rbs +0 -69
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module OpenAI
|
|
4
|
-
module Models
|
|
5
|
-
module Beta
|
|
6
|
-
module Threads
|
|
7
|
-
# @see OpenAI::Resources::Beta::Threads::Runs#retrieve
|
|
8
|
-
class RunRetrieveParams < OpenAI::Internal::Type::BaseModel
|
|
9
|
-
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
10
|
-
include OpenAI::Internal::Type::RequestParameters
|
|
11
|
-
|
|
12
|
-
# @!attribute thread_id
|
|
13
|
-
#
|
|
14
|
-
# @return [String]
|
|
15
|
-
required :thread_id, String
|
|
16
|
-
|
|
17
|
-
# @!attribute run_id
|
|
18
|
-
#
|
|
19
|
-
# @return [String]
|
|
20
|
-
required :run_id, String
|
|
21
|
-
|
|
22
|
-
# @!method initialize(thread_id:, run_id:, request_options: {})
|
|
23
|
-
# @param thread_id [String]
|
|
24
|
-
# @param run_id [String]
|
|
25
|
-
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
|
|
26
|
-
end
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
end
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module OpenAI
|
|
4
|
-
module Models
|
|
5
|
-
module Beta
|
|
6
|
-
module Threads
|
|
7
|
-
# The status of the run, which can be either `queued`, `in_progress`,
|
|
8
|
-
# `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`,
|
|
9
|
-
# `incomplete`, or `expired`.
|
|
10
|
-
module RunStatus
|
|
11
|
-
extend OpenAI::Internal::Type::Enum
|
|
12
|
-
|
|
13
|
-
QUEUED = :queued
|
|
14
|
-
IN_PROGRESS = :in_progress
|
|
15
|
-
REQUIRES_ACTION = :requires_action
|
|
16
|
-
CANCELLING = :cancelling
|
|
17
|
-
CANCELLED = :cancelled
|
|
18
|
-
FAILED = :failed
|
|
19
|
-
COMPLETED = :completed
|
|
20
|
-
INCOMPLETE = :incomplete
|
|
21
|
-
EXPIRED = :expired
|
|
22
|
-
|
|
23
|
-
# @!method self.values
|
|
24
|
-
# @return [Array<Symbol>]
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
end
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module OpenAI
|
|
4
|
-
module Models
|
|
5
|
-
module Beta
|
|
6
|
-
module Threads
|
|
7
|
-
# @see OpenAI::Resources::Beta::Threads::Runs#submit_tool_outputs
|
|
8
|
-
#
|
|
9
|
-
# @see OpenAI::Resources::Beta::Threads::Runs#submit_tool_outputs_stream_raw
|
|
10
|
-
class RunSubmitToolOutputsParams < OpenAI::Internal::Type::BaseModel
|
|
11
|
-
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
12
|
-
include OpenAI::Internal::Type::RequestParameters
|
|
13
|
-
|
|
14
|
-
# @!attribute thread_id
|
|
15
|
-
#
|
|
16
|
-
# @return [String]
|
|
17
|
-
required :thread_id, String
|
|
18
|
-
|
|
19
|
-
# @!attribute run_id
|
|
20
|
-
#
|
|
21
|
-
# @return [String]
|
|
22
|
-
required :run_id, String
|
|
23
|
-
|
|
24
|
-
# @!attribute tool_outputs
|
|
25
|
-
# A list of tools for which the outputs are being submitted.
|
|
26
|
-
#
|
|
27
|
-
# @return [Array<OpenAI::Models::Beta::Threads::RunSubmitToolOutputsParams::ToolOutput>]
|
|
28
|
-
required(
|
|
29
|
-
:tool_outputs,
|
|
30
|
-
-> { OpenAI::Internal::Type::ArrayOf[OpenAI::Beta::Threads::RunSubmitToolOutputsParams::ToolOutput] }
|
|
31
|
-
)
|
|
32
|
-
|
|
33
|
-
# @!method initialize(thread_id:, run_id:, tool_outputs:, request_options: {})
|
|
34
|
-
# @param thread_id [String]
|
|
35
|
-
#
|
|
36
|
-
# @param run_id [String]
|
|
37
|
-
#
|
|
38
|
-
# @param tool_outputs [Array<OpenAI::Models::Beta::Threads::RunSubmitToolOutputsParams::ToolOutput>]
|
|
39
|
-
# A list of tools for which the outputs are being submitted.
|
|
40
|
-
#
|
|
41
|
-
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
|
|
42
|
-
|
|
43
|
-
class ToolOutput < OpenAI::Internal::Type::BaseModel
|
|
44
|
-
# @!attribute output
|
|
45
|
-
# The output of the tool call to be submitted to continue the run.
|
|
46
|
-
#
|
|
47
|
-
# @return [String, nil]
|
|
48
|
-
optional :output, String
|
|
49
|
-
|
|
50
|
-
# @!attribute tool_call_id
|
|
51
|
-
# The ID of the tool call in the `required_action` object within the run object
|
|
52
|
-
# the output is being submitted for.
|
|
53
|
-
#
|
|
54
|
-
# @return [String, nil]
|
|
55
|
-
optional :tool_call_id, String
|
|
56
|
-
|
|
57
|
-
# @!method initialize(output: nil, tool_call_id: nil)
|
|
58
|
-
# @param output [String]
|
|
59
|
-
# The output of the tool call to be submitted to continue the run.
|
|
60
|
-
#
|
|
61
|
-
# @param tool_call_id [String]
|
|
62
|
-
# The ID of the tool call in the `required_action` object within the run object
|
|
63
|
-
# the output is being submitted for.
|
|
64
|
-
end
|
|
65
|
-
end
|
|
66
|
-
end
|
|
67
|
-
end
|
|
68
|
-
end
|
|
69
|
-
end
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module OpenAI
|
|
4
|
-
module Models
|
|
5
|
-
module Beta
|
|
6
|
-
module Threads
|
|
7
|
-
# @see OpenAI::Resources::Beta::Threads::Runs#update
|
|
8
|
-
class RunUpdateParams < OpenAI::Internal::Type::BaseModel
|
|
9
|
-
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
10
|
-
include OpenAI::Internal::Type::RequestParameters
|
|
11
|
-
|
|
12
|
-
# @!attribute thread_id
|
|
13
|
-
#
|
|
14
|
-
# @return [String]
|
|
15
|
-
required :thread_id, String
|
|
16
|
-
|
|
17
|
-
# @!attribute run_id
|
|
18
|
-
#
|
|
19
|
-
# @return [String]
|
|
20
|
-
required :run_id, String
|
|
21
|
-
|
|
22
|
-
# @!attribute metadata
|
|
23
|
-
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
24
|
-
# for storing additional information about the object in a structured format, and
|
|
25
|
-
# querying for objects via API or the dashboard.
|
|
26
|
-
#
|
|
27
|
-
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
28
|
-
# a maximum length of 512 characters.
|
|
29
|
-
#
|
|
30
|
-
# @return [Hash{Symbol=>String}, nil]
|
|
31
|
-
optional :metadata, OpenAI::Internal::Type::HashOf[String], nil?: true
|
|
32
|
-
|
|
33
|
-
# @!method initialize(thread_id:, run_id:, metadata: nil, request_options: {})
|
|
34
|
-
# @param thread_id [String]
|
|
35
|
-
#
|
|
36
|
-
# @param run_id [String]
|
|
37
|
-
#
|
|
38
|
-
# @param metadata [Hash{Symbol=>String}, nil]
|
|
39
|
-
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
40
|
-
# for storing additional information about the object in a structured format, and
|
|
41
|
-
# querying for objects via API or the dashboard.
|
|
42
|
-
#
|
|
43
|
-
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
44
|
-
# a maximum length of 512 characters.
|
|
45
|
-
#
|
|
46
|
-
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
|
|
47
|
-
end
|
|
48
|
-
end
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
end
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module OpenAI
|
|
4
|
-
module Models
|
|
5
|
-
module Beta
|
|
6
|
-
module Threads
|
|
7
|
-
module Runs
|
|
8
|
-
class CodeInterpreterLogs < OpenAI::Internal::Type::BaseModel
|
|
9
|
-
# @!attribute index
|
|
10
|
-
# The index of the output in the outputs array.
|
|
11
|
-
#
|
|
12
|
-
# @return [Integer]
|
|
13
|
-
required :index, Integer
|
|
14
|
-
|
|
15
|
-
# @!attribute type
|
|
16
|
-
# Always `logs`.
|
|
17
|
-
#
|
|
18
|
-
# @return [Symbol, :logs]
|
|
19
|
-
required :type, const: :logs
|
|
20
|
-
|
|
21
|
-
# @!attribute logs
|
|
22
|
-
# The text output from the Code Interpreter tool call.
|
|
23
|
-
#
|
|
24
|
-
# @return [String, nil]
|
|
25
|
-
optional :logs, String
|
|
26
|
-
|
|
27
|
-
# @!method initialize(index:, logs: nil, type: :logs)
|
|
28
|
-
# Text output from the Code Interpreter tool call as part of a run step.
|
|
29
|
-
#
|
|
30
|
-
# @param index [Integer]
|
|
31
|
-
# The index of the output in the outputs array.
|
|
32
|
-
#
|
|
33
|
-
# @param logs [String]
|
|
34
|
-
# The text output from the Code Interpreter tool call.
|
|
35
|
-
#
|
|
36
|
-
# @param type [Symbol, :logs]
|
|
37
|
-
# Always `logs`.
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
end
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module OpenAI
|
|
4
|
-
module Models
|
|
5
|
-
module Beta
|
|
6
|
-
module Threads
|
|
7
|
-
module Runs
|
|
8
|
-
class CodeInterpreterOutputImage < OpenAI::Internal::Type::BaseModel
|
|
9
|
-
# @!attribute index
|
|
10
|
-
# The index of the output in the outputs array.
|
|
11
|
-
#
|
|
12
|
-
# @return [Integer]
|
|
13
|
-
required :index, Integer
|
|
14
|
-
|
|
15
|
-
# @!attribute type
|
|
16
|
-
# Always `image`.
|
|
17
|
-
#
|
|
18
|
-
# @return [Symbol, :image]
|
|
19
|
-
required :type, const: :image
|
|
20
|
-
|
|
21
|
-
# @!attribute image
|
|
22
|
-
#
|
|
23
|
-
# @return [OpenAI::Models::Beta::Threads::Runs::CodeInterpreterOutputImage::Image, nil]
|
|
24
|
-
optional :image, -> { OpenAI::Beta::Threads::Runs::CodeInterpreterOutputImage::Image }
|
|
25
|
-
|
|
26
|
-
# @!method initialize(index:, image: nil, type: :image)
|
|
27
|
-
# @param index [Integer]
|
|
28
|
-
# The index of the output in the outputs array.
|
|
29
|
-
#
|
|
30
|
-
# @param image [OpenAI::Models::Beta::Threads::Runs::CodeInterpreterOutputImage::Image]
|
|
31
|
-
#
|
|
32
|
-
# @param type [Symbol, :image]
|
|
33
|
-
# Always `image`.
|
|
34
|
-
|
|
35
|
-
# @see OpenAI::Models::Beta::Threads::Runs::CodeInterpreterOutputImage#image
|
|
36
|
-
class Image < OpenAI::Internal::Type::BaseModel
|
|
37
|
-
# @!attribute file_id
|
|
38
|
-
# The [file](https://developers.openai.com/api/reference/resources/files) ID of
|
|
39
|
-
# the image.
|
|
40
|
-
#
|
|
41
|
-
# @return [String, nil]
|
|
42
|
-
optional :file_id, String
|
|
43
|
-
|
|
44
|
-
# @!method initialize(file_id: nil)
|
|
45
|
-
# @param file_id [String]
|
|
46
|
-
# The [file](https://developers.openai.com/api/reference/resources/files) ID of
|
|
47
|
-
# the image.
|
|
48
|
-
end
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
end
|
|
52
|
-
end
|
|
53
|
-
end
|
|
54
|
-
end
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module OpenAI
|
|
4
|
-
module Models
|
|
5
|
-
module Beta
|
|
6
|
-
module Threads
|
|
7
|
-
module Runs
|
|
8
|
-
class CodeInterpreterToolCall < OpenAI::Internal::Type::BaseModel
|
|
9
|
-
# @!attribute id
|
|
10
|
-
# The ID of the tool call.
|
|
11
|
-
#
|
|
12
|
-
# @return [String]
|
|
13
|
-
required :id, String
|
|
14
|
-
|
|
15
|
-
# @!attribute code_interpreter
|
|
16
|
-
# The Code Interpreter tool call definition.
|
|
17
|
-
#
|
|
18
|
-
# @return [OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter]
|
|
19
|
-
required :code_interpreter, -> { OpenAI::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter }
|
|
20
|
-
|
|
21
|
-
# @!attribute type
|
|
22
|
-
# The type of tool call. This is always going to be `code_interpreter` for this
|
|
23
|
-
# type of tool call.
|
|
24
|
-
#
|
|
25
|
-
# @return [Symbol, :code_interpreter]
|
|
26
|
-
required :type, const: :code_interpreter
|
|
27
|
-
|
|
28
|
-
# @!method initialize(id:, code_interpreter:, type: :code_interpreter)
|
|
29
|
-
# Details of the Code Interpreter tool call the run step was involved in.
|
|
30
|
-
#
|
|
31
|
-
# @param id [String]
|
|
32
|
-
# The ID of the tool call.
|
|
33
|
-
#
|
|
34
|
-
# @param code_interpreter [OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter]
|
|
35
|
-
# The Code Interpreter tool call definition.
|
|
36
|
-
#
|
|
37
|
-
# @param type [Symbol, :code_interpreter]
|
|
38
|
-
# The type of tool call. This is always going to be `code_interpreter` for this
|
|
39
|
-
# type of tool call.
|
|
40
|
-
|
|
41
|
-
# @see OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCall#code_interpreter
|
|
42
|
-
class CodeInterpreter < OpenAI::Internal::Type::BaseModel
|
|
43
|
-
# @!attribute input
|
|
44
|
-
# The input to the Code Interpreter tool call.
|
|
45
|
-
#
|
|
46
|
-
# @return [String]
|
|
47
|
-
required :input, String
|
|
48
|
-
|
|
49
|
-
# @!attribute outputs
|
|
50
|
-
# The outputs from the Code Interpreter tool call. Code Interpreter can output one
|
|
51
|
-
# or more items, including text (`logs`) or images (`image`). Each of these are
|
|
52
|
-
# represented by a different object type.
|
|
53
|
-
#
|
|
54
|
-
# @return [Array<OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter::Output::Logs, OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter::Output::Image>]
|
|
55
|
-
required(
|
|
56
|
-
:outputs,
|
|
57
|
-
-> {
|
|
58
|
-
OpenAI::Internal::Type::ArrayOf[
|
|
59
|
-
union: OpenAI::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter::Output
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
)
|
|
63
|
-
|
|
64
|
-
# @!method initialize(input:, outputs:)
|
|
65
|
-
# The Code Interpreter tool call definition.
|
|
66
|
-
#
|
|
67
|
-
# @param input [String]
|
|
68
|
-
# The input to the Code Interpreter tool call.
|
|
69
|
-
#
|
|
70
|
-
# @param outputs [Array<OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter::Output::Logs, OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter::Output::Image>]
|
|
71
|
-
# The outputs from the Code Interpreter tool call. Code Interpreter can output one
|
|
72
|
-
# or more items, including text (`logs`) or images (`image`). Each of these are
|
|
73
|
-
# represented by a different object type.
|
|
74
|
-
|
|
75
|
-
# Text output from the Code Interpreter tool call as part of a run step.
|
|
76
|
-
module Output
|
|
77
|
-
extend OpenAI::Internal::Type::Union
|
|
78
|
-
|
|
79
|
-
discriminator :type
|
|
80
|
-
|
|
81
|
-
# Text output from the Code Interpreter tool call as part of a run step.
|
|
82
|
-
variant(
|
|
83
|
-
:logs,
|
|
84
|
-
-> { OpenAI::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter::Output::Logs }
|
|
85
|
-
)
|
|
86
|
-
|
|
87
|
-
variant(
|
|
88
|
-
:image,
|
|
89
|
-
-> { OpenAI::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter::Output::Image }
|
|
90
|
-
)
|
|
91
|
-
|
|
92
|
-
class Logs < OpenAI::Internal::Type::BaseModel
|
|
93
|
-
# @!attribute logs
|
|
94
|
-
# The text output from the Code Interpreter tool call.
|
|
95
|
-
#
|
|
96
|
-
# @return [String]
|
|
97
|
-
required :logs, String
|
|
98
|
-
|
|
99
|
-
# @!attribute type
|
|
100
|
-
# Always `logs`.
|
|
101
|
-
#
|
|
102
|
-
# @return [Symbol, :logs]
|
|
103
|
-
required :type, const: :logs
|
|
104
|
-
|
|
105
|
-
# @!method initialize(logs:, type: :logs)
|
|
106
|
-
# Text output from the Code Interpreter tool call as part of a run step.
|
|
107
|
-
#
|
|
108
|
-
# @param logs [String]
|
|
109
|
-
# The text output from the Code Interpreter tool call.
|
|
110
|
-
#
|
|
111
|
-
# @param type [Symbol, :logs]
|
|
112
|
-
# Always `logs`.
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
class Image < OpenAI::Internal::Type::BaseModel
|
|
116
|
-
# @!attribute image
|
|
117
|
-
#
|
|
118
|
-
# @return [OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter::Output::Image::Image]
|
|
119
|
-
required(
|
|
120
|
-
:image,
|
|
121
|
-
-> { OpenAI::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter::Output::Image::Image }
|
|
122
|
-
)
|
|
123
|
-
|
|
124
|
-
# @!attribute type
|
|
125
|
-
# Always `image`.
|
|
126
|
-
#
|
|
127
|
-
# @return [Symbol, :image]
|
|
128
|
-
required :type, const: :image
|
|
129
|
-
|
|
130
|
-
# @!method initialize(image:, type: :image)
|
|
131
|
-
# @param image [OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter::Output::Image::Image]
|
|
132
|
-
#
|
|
133
|
-
# @param type [Symbol, :image]
|
|
134
|
-
# Always `image`.
|
|
135
|
-
|
|
136
|
-
# @see OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter::Output::Image#image
|
|
137
|
-
class Image < OpenAI::Internal::Type::BaseModel
|
|
138
|
-
# @!attribute file_id
|
|
139
|
-
# The [file](https://developers.openai.com/api/reference/resources/files) ID of
|
|
140
|
-
# the image.
|
|
141
|
-
#
|
|
142
|
-
# @return [String]
|
|
143
|
-
required :file_id, String
|
|
144
|
-
|
|
145
|
-
# @!method initialize(file_id:)
|
|
146
|
-
# @param file_id [String]
|
|
147
|
-
# The [file](https://developers.openai.com/api/reference/resources/files) ID of
|
|
148
|
-
# the image.
|
|
149
|
-
end
|
|
150
|
-
end
|
|
151
|
-
|
|
152
|
-
# @!method self.variants
|
|
153
|
-
# @return [Array(OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter::Output::Logs, OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter::Output::Image)]
|
|
154
|
-
end
|
|
155
|
-
end
|
|
156
|
-
end
|
|
157
|
-
end
|
|
158
|
-
end
|
|
159
|
-
end
|
|
160
|
-
end
|
|
161
|
-
end
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module OpenAI
|
|
4
|
-
module Models
|
|
5
|
-
module Beta
|
|
6
|
-
module Threads
|
|
7
|
-
module Runs
|
|
8
|
-
class CodeInterpreterToolCallDelta < OpenAI::Internal::Type::BaseModel
|
|
9
|
-
# @!attribute index
|
|
10
|
-
# The index of the tool call in the tool calls array.
|
|
11
|
-
#
|
|
12
|
-
# @return [Integer]
|
|
13
|
-
required :index, Integer
|
|
14
|
-
|
|
15
|
-
# @!attribute type
|
|
16
|
-
# The type of tool call. This is always going to be `code_interpreter` for this
|
|
17
|
-
# type of tool call.
|
|
18
|
-
#
|
|
19
|
-
# @return [Symbol, :code_interpreter]
|
|
20
|
-
required :type, const: :code_interpreter
|
|
21
|
-
|
|
22
|
-
# @!attribute id
|
|
23
|
-
# The ID of the tool call.
|
|
24
|
-
#
|
|
25
|
-
# @return [String, nil]
|
|
26
|
-
optional :id, String
|
|
27
|
-
|
|
28
|
-
# @!attribute code_interpreter
|
|
29
|
-
# The Code Interpreter tool call definition.
|
|
30
|
-
#
|
|
31
|
-
# @return [OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCallDelta::CodeInterpreter, nil]
|
|
32
|
-
optional(
|
|
33
|
-
:code_interpreter,
|
|
34
|
-
-> { OpenAI::Beta::Threads::Runs::CodeInterpreterToolCallDelta::CodeInterpreter }
|
|
35
|
-
)
|
|
36
|
-
|
|
37
|
-
# @!method initialize(index:, id: nil, code_interpreter: nil, type: :code_interpreter)
|
|
38
|
-
# Details of the Code Interpreter tool call the run step was involved in.
|
|
39
|
-
#
|
|
40
|
-
# @param index [Integer]
|
|
41
|
-
# The index of the tool call in the tool calls array.
|
|
42
|
-
#
|
|
43
|
-
# @param id [String]
|
|
44
|
-
# The ID of the tool call.
|
|
45
|
-
#
|
|
46
|
-
# @param code_interpreter [OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCallDelta::CodeInterpreter]
|
|
47
|
-
# The Code Interpreter tool call definition.
|
|
48
|
-
#
|
|
49
|
-
# @param type [Symbol, :code_interpreter]
|
|
50
|
-
# The type of tool call. This is always going to be `code_interpreter` for this
|
|
51
|
-
# type of tool call.
|
|
52
|
-
|
|
53
|
-
# @see OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCallDelta#code_interpreter
|
|
54
|
-
class CodeInterpreter < OpenAI::Internal::Type::BaseModel
|
|
55
|
-
# @!attribute input
|
|
56
|
-
# The input to the Code Interpreter tool call.
|
|
57
|
-
#
|
|
58
|
-
# @return [String, nil]
|
|
59
|
-
optional :input, String
|
|
60
|
-
|
|
61
|
-
# @!attribute outputs
|
|
62
|
-
# The outputs from the Code Interpreter tool call. Code Interpreter can output one
|
|
63
|
-
# or more items, including text (`logs`) or images (`image`). Each of these are
|
|
64
|
-
# represented by a different object type.
|
|
65
|
-
#
|
|
66
|
-
# @return [Array<OpenAI::Models::Beta::Threads::Runs::CodeInterpreterLogs, OpenAI::Models::Beta::Threads::Runs::CodeInterpreterOutputImage>, nil]
|
|
67
|
-
optional(
|
|
68
|
-
:outputs,
|
|
69
|
-
-> {
|
|
70
|
-
OpenAI::Internal::Type::ArrayOf[
|
|
71
|
-
union: OpenAI::Beta::Threads::Runs::CodeInterpreterToolCallDelta::CodeInterpreter::Output
|
|
72
|
-
]
|
|
73
|
-
}
|
|
74
|
-
)
|
|
75
|
-
|
|
76
|
-
# @!method initialize(input: nil, outputs: nil)
|
|
77
|
-
# The Code Interpreter tool call definition.
|
|
78
|
-
#
|
|
79
|
-
# @param input [String]
|
|
80
|
-
# The input to the Code Interpreter tool call.
|
|
81
|
-
#
|
|
82
|
-
# @param outputs [Array<OpenAI::Models::Beta::Threads::Runs::CodeInterpreterLogs, OpenAI::Models::Beta::Threads::Runs::CodeInterpreterOutputImage>]
|
|
83
|
-
# The outputs from the Code Interpreter tool call. Code Interpreter can output one
|
|
84
|
-
# or more items, including text (`logs`) or images (`image`). Each of these are
|
|
85
|
-
# represented by a different object type.
|
|
86
|
-
|
|
87
|
-
# Text output from the Code Interpreter tool call as part of a run step.
|
|
88
|
-
module Output
|
|
89
|
-
extend OpenAI::Internal::Type::Union
|
|
90
|
-
|
|
91
|
-
discriminator :type
|
|
92
|
-
|
|
93
|
-
# Text output from the Code Interpreter tool call as part of a run step.
|
|
94
|
-
variant :logs, -> { OpenAI::Beta::Threads::Runs::CodeInterpreterLogs }
|
|
95
|
-
|
|
96
|
-
variant :image, -> { OpenAI::Beta::Threads::Runs::CodeInterpreterOutputImage }
|
|
97
|
-
|
|
98
|
-
# @!method self.variants
|
|
99
|
-
# @return [Array(OpenAI::Models::Beta::Threads::Runs::CodeInterpreterLogs, OpenAI::Models::Beta::Threads::Runs::CodeInterpreterOutputImage)]
|
|
100
|
-
end
|
|
101
|
-
end
|
|
102
|
-
end
|
|
103
|
-
end
|
|
104
|
-
end
|
|
105
|
-
end
|
|
106
|
-
end
|
|
107
|
-
end
|