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,34 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
type run_status =
|
|
6
|
-
:queued
|
|
7
|
-
| :in_progress
|
|
8
|
-
| :requires_action
|
|
9
|
-
| :cancelling
|
|
10
|
-
| :cancelled
|
|
11
|
-
| :failed
|
|
12
|
-
| :completed
|
|
13
|
-
| :incomplete
|
|
14
|
-
| :expired
|
|
15
|
-
|
|
16
|
-
module RunStatus
|
|
17
|
-
extend OpenAI::Internal::Type::Enum
|
|
18
|
-
|
|
19
|
-
QUEUED: :queued
|
|
20
|
-
IN_PROGRESS: :in_progress
|
|
21
|
-
REQUIRES_ACTION: :requires_action
|
|
22
|
-
CANCELLING: :cancelling
|
|
23
|
-
CANCELLED: :cancelled
|
|
24
|
-
FAILED: :failed
|
|
25
|
-
COMPLETED: :completed
|
|
26
|
-
INCOMPLETE: :incomplete
|
|
27
|
-
EXPIRED: :expired
|
|
28
|
-
|
|
29
|
-
def self?.values: -> ::Array[OpenAI::Models::Beta::Threads::run_status]
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
type run_submit_tool_outputs_params =
|
|
6
|
-
{
|
|
7
|
-
thread_id: String,
|
|
8
|
-
run_id: String,
|
|
9
|
-
tool_outputs: ::Array[OpenAI::Beta::Threads::RunSubmitToolOutputsParams::ToolOutput],
|
|
10
|
-
?request_options: OpenAI::request_opts
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
class RunSubmitToolOutputsParams < OpenAI::Internal::Type::BaseModel
|
|
14
|
-
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
15
|
-
include OpenAI::Internal::Type::RequestParameters
|
|
16
|
-
|
|
17
|
-
attr_accessor thread_id: String
|
|
18
|
-
|
|
19
|
-
attr_accessor run_id: String
|
|
20
|
-
|
|
21
|
-
# A list of tools for which the outputs are being submitted.
|
|
22
|
-
attr_accessor tool_outputs: ::Array[OpenAI::Beta::Threads::RunSubmitToolOutputsParams::ToolOutput]
|
|
23
|
-
|
|
24
|
-
# @param tool_outputs
|
|
25
|
-
# A list of tools for which the outputs are being submitted.
|
|
26
|
-
def initialize: (
|
|
27
|
-
thread_id: String,
|
|
28
|
-
run_id: String,
|
|
29
|
-
tool_outputs: ::Array[OpenAI::Beta::Threads::RunSubmitToolOutputsParams::ToolOutput],
|
|
30
|
-
?request_options: OpenAI::request_opts
|
|
31
|
-
) -> void
|
|
32
|
-
|
|
33
|
-
def to_hash: -> {
|
|
34
|
-
thread_id: String,
|
|
35
|
-
run_id: String,
|
|
36
|
-
tool_outputs: ::Array[OpenAI::Beta::Threads::RunSubmitToolOutputsParams::ToolOutput],
|
|
37
|
-
?request_options: OpenAI::RequestOptions
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
type tool_output = { ?output: String, ?tool_call_id: String }
|
|
41
|
-
|
|
42
|
-
class ToolOutput < OpenAI::Internal::Type::BaseModel
|
|
43
|
-
# The output of the tool call to be submitted to continue the run.
|
|
44
|
-
attr_reader output: String?
|
|
45
|
-
|
|
46
|
-
# The output of the tool call to be submitted to continue the run.
|
|
47
|
-
def output=: (String) -> String
|
|
48
|
-
|
|
49
|
-
# The ID of the tool call in the `required_action` object within the run object
|
|
50
|
-
# the output is being submitted for.
|
|
51
|
-
attr_reader tool_call_id: String?
|
|
52
|
-
|
|
53
|
-
# The ID of the tool call in the `required_action` object within the run object
|
|
54
|
-
# the output is being submitted for.
|
|
55
|
-
def tool_call_id=: (String) -> String
|
|
56
|
-
|
|
57
|
-
# @param output
|
|
58
|
-
# The output of the tool call to be submitted to continue the run.
|
|
59
|
-
# @param tool_call_id
|
|
60
|
-
# The ID of the tool call in the `required_action` object within the run object
|
|
61
|
-
# the output is being submitted for.
|
|
62
|
-
def initialize: (?output: String, ?tool_call_id: String) -> void
|
|
63
|
-
|
|
64
|
-
def to_hash: -> { ?output: String, ?tool_call_id: String }
|
|
65
|
-
end
|
|
66
|
-
end
|
|
67
|
-
end
|
|
68
|
-
end
|
|
69
|
-
end
|
|
70
|
-
end
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
type run_update_params =
|
|
6
|
-
{
|
|
7
|
-
thread_id: String,
|
|
8
|
-
run_id: String,
|
|
9
|
-
?metadata: OpenAI::Models::metadata?,
|
|
10
|
-
?request_options: OpenAI::request_opts
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
class RunUpdateParams < OpenAI::Internal::Type::BaseModel
|
|
14
|
-
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
15
|
-
include OpenAI::Internal::Type::RequestParameters
|
|
16
|
-
|
|
17
|
-
attr_accessor thread_id: String
|
|
18
|
-
|
|
19
|
-
attr_accessor run_id: String
|
|
20
|
-
|
|
21
|
-
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
22
|
-
# for storing additional information about the object in a structured format, and
|
|
23
|
-
# querying for objects via API or the dashboard.
|
|
24
|
-
#
|
|
25
|
-
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
26
|
-
# a maximum length of 512 characters.
|
|
27
|
-
attr_accessor metadata: OpenAI::Models::metadata?
|
|
28
|
-
|
|
29
|
-
# @param metadata
|
|
30
|
-
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
31
|
-
# for storing additional information about the object in a structured format, and
|
|
32
|
-
# querying for objects via API or the dashboard.
|
|
33
|
-
#
|
|
34
|
-
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
35
|
-
# a maximum length of 512 characters.
|
|
36
|
-
def initialize: (
|
|
37
|
-
thread_id: String,
|
|
38
|
-
run_id: String,
|
|
39
|
-
?metadata: OpenAI::Models::metadata?,
|
|
40
|
-
?request_options: OpenAI::request_opts
|
|
41
|
-
) -> void
|
|
42
|
-
|
|
43
|
-
def to_hash: -> {
|
|
44
|
-
thread_id: String,
|
|
45
|
-
run_id: String,
|
|
46
|
-
?metadata: OpenAI::Models::metadata?,
|
|
47
|
-
?request_options: OpenAI::RequestOptions
|
|
48
|
-
}
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
end
|
|
52
|
-
end
|
|
53
|
-
end
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
module Runs
|
|
6
|
-
type code_interpreter_logs =
|
|
7
|
-
{ index: Integer, ?type: :logs, ?logs: String }
|
|
8
|
-
|
|
9
|
-
class CodeInterpreterLogs < OpenAI::Internal::Type::BaseModel
|
|
10
|
-
# The index of the output in the outputs array.
|
|
11
|
-
attr_accessor index: Integer
|
|
12
|
-
|
|
13
|
-
# Always `logs`.
|
|
14
|
-
attr_accessor type: :logs
|
|
15
|
-
|
|
16
|
-
# The text output from the Code Interpreter tool call.
|
|
17
|
-
attr_reader logs: String?
|
|
18
|
-
|
|
19
|
-
# The text output from the Code Interpreter tool call.
|
|
20
|
-
def logs=: (String) -> String
|
|
21
|
-
|
|
22
|
-
# @param index
|
|
23
|
-
# The index of the output in the outputs array.
|
|
24
|
-
# @param logs
|
|
25
|
-
# The text output from the Code Interpreter tool call.
|
|
26
|
-
# @param type
|
|
27
|
-
# Always `logs`.
|
|
28
|
-
def initialize: (
|
|
29
|
-
index: Integer,
|
|
30
|
-
?logs: String,
|
|
31
|
-
?type: :logs
|
|
32
|
-
) -> void
|
|
33
|
-
|
|
34
|
-
def to_hash: -> { index: Integer, ?type: :logs, ?logs: String }
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
end
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
module Runs
|
|
6
|
-
type code_interpreter_output_image =
|
|
7
|
-
{
|
|
8
|
-
index: Integer,
|
|
9
|
-
?type: :image,
|
|
10
|
-
?image: OpenAI::Beta::Threads::Runs::CodeInterpreterOutputImage::Image
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
class CodeInterpreterOutputImage < OpenAI::Internal::Type::BaseModel
|
|
14
|
-
# The index of the output in the outputs array.
|
|
15
|
-
attr_accessor index: Integer
|
|
16
|
-
|
|
17
|
-
# Always `image`.
|
|
18
|
-
attr_accessor type: :image
|
|
19
|
-
|
|
20
|
-
attr_reader image: OpenAI::Beta::Threads::Runs::CodeInterpreterOutputImage::Image?
|
|
21
|
-
|
|
22
|
-
def image=: (
|
|
23
|
-
OpenAI::Beta::Threads::Runs::CodeInterpreterOutputImage::Image
|
|
24
|
-
) -> OpenAI::Beta::Threads::Runs::CodeInterpreterOutputImage::Image
|
|
25
|
-
|
|
26
|
-
# @param index
|
|
27
|
-
# The index of the output in the outputs array.
|
|
28
|
-
# @param type
|
|
29
|
-
# Always `image`.
|
|
30
|
-
def initialize: (
|
|
31
|
-
index: Integer,
|
|
32
|
-
?image: OpenAI::Beta::Threads::Runs::CodeInterpreterOutputImage::Image,
|
|
33
|
-
?type: :image
|
|
34
|
-
) -> void
|
|
35
|
-
|
|
36
|
-
def to_hash: -> {
|
|
37
|
-
index: Integer,
|
|
38
|
-
?type: :image,
|
|
39
|
-
?image: OpenAI::Beta::Threads::Runs::CodeInterpreterOutputImage::Image
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
type image = { ?file_id: String }
|
|
43
|
-
|
|
44
|
-
class Image < OpenAI::Internal::Type::BaseModel
|
|
45
|
-
# The [file](https://developers.openai.com/api/reference/resources/files) ID of
|
|
46
|
-
# the image.
|
|
47
|
-
attr_reader file_id: String?
|
|
48
|
-
|
|
49
|
-
# The [file](https://developers.openai.com/api/reference/resources/files) ID of
|
|
50
|
-
# the image.
|
|
51
|
-
def file_id=: (String) -> String
|
|
52
|
-
|
|
53
|
-
# @param file_id
|
|
54
|
-
# The [file](https://developers.openai.com/api/reference/resources/files) ID of
|
|
55
|
-
# the image.
|
|
56
|
-
def initialize: (?file_id: String) -> void
|
|
57
|
-
|
|
58
|
-
def to_hash: -> { ?file_id: String }
|
|
59
|
-
end
|
|
60
|
-
end
|
|
61
|
-
end
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
end
|
|
65
|
-
end
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
module Runs
|
|
6
|
-
type code_interpreter_tool_call =
|
|
7
|
-
{
|
|
8
|
-
id: String,
|
|
9
|
-
code_interpreter: OpenAI::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter,
|
|
10
|
-
?type: :code_interpreter
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
class CodeInterpreterToolCall < OpenAI::Internal::Type::BaseModel
|
|
14
|
-
# The ID of the tool call.
|
|
15
|
-
attr_accessor id: String
|
|
16
|
-
|
|
17
|
-
# The Code Interpreter tool call definition.
|
|
18
|
-
attr_accessor code_interpreter: OpenAI::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter
|
|
19
|
-
|
|
20
|
-
# The type of tool call. This is always going to be `code_interpreter` for this
|
|
21
|
-
# type of tool call.
|
|
22
|
-
attr_accessor type: :code_interpreter
|
|
23
|
-
|
|
24
|
-
# @param id
|
|
25
|
-
# The ID of the tool call.
|
|
26
|
-
# @param code_interpreter
|
|
27
|
-
# The Code Interpreter tool call definition.
|
|
28
|
-
# @param type
|
|
29
|
-
# The type of tool call. This is always going to be `code_interpreter` for this
|
|
30
|
-
# type of tool call.
|
|
31
|
-
def initialize: (
|
|
32
|
-
id: String,
|
|
33
|
-
code_interpreter: OpenAI::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter,
|
|
34
|
-
?type: :code_interpreter
|
|
35
|
-
) -> void
|
|
36
|
-
|
|
37
|
-
def to_hash: -> {
|
|
38
|
-
id: String,
|
|
39
|
-
code_interpreter: OpenAI::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter,
|
|
40
|
-
?type: :code_interpreter
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
type code_interpreter =
|
|
44
|
-
{
|
|
45
|
-
input: String,
|
|
46
|
-
outputs: ::Array[OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter::output]
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
class CodeInterpreter < OpenAI::Internal::Type::BaseModel
|
|
50
|
-
# The input to the Code Interpreter tool call.
|
|
51
|
-
attr_accessor input: String
|
|
52
|
-
|
|
53
|
-
# The outputs from the Code Interpreter tool call. Code Interpreter can output one
|
|
54
|
-
# or more items, including text (`logs`) or images (`image`). Each of these are
|
|
55
|
-
# represented by a different object type.
|
|
56
|
-
attr_accessor outputs: ::Array[OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter::output]
|
|
57
|
-
|
|
58
|
-
# @param input
|
|
59
|
-
# The input to the Code Interpreter tool call.
|
|
60
|
-
# @param outputs
|
|
61
|
-
# The outputs from the Code Interpreter tool call. Code Interpreter can output one
|
|
62
|
-
# or more items, including text (`logs`) or images (`image`). Each of these are
|
|
63
|
-
# represented by a different object type.
|
|
64
|
-
def initialize: (
|
|
65
|
-
input: String,
|
|
66
|
-
outputs: ::Array[OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter::output]
|
|
67
|
-
) -> void
|
|
68
|
-
|
|
69
|
-
def to_hash: -> {
|
|
70
|
-
input: String,
|
|
71
|
-
outputs: ::Array[OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter::output]
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
type output =
|
|
75
|
-
OpenAI::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter::Output::Logs
|
|
76
|
-
| OpenAI::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter::Output::Image
|
|
77
|
-
|
|
78
|
-
module Output
|
|
79
|
-
extend OpenAI::Internal::Type::Union
|
|
80
|
-
|
|
81
|
-
type logs = { logs: String, ?type: :logs }
|
|
82
|
-
|
|
83
|
-
class Logs < OpenAI::Internal::Type::BaseModel
|
|
84
|
-
# The text output from the Code Interpreter tool call.
|
|
85
|
-
attr_accessor logs: String
|
|
86
|
-
|
|
87
|
-
# Always `logs`.
|
|
88
|
-
attr_accessor type: :logs
|
|
89
|
-
|
|
90
|
-
# @param logs
|
|
91
|
-
# The text output from the Code Interpreter tool call.
|
|
92
|
-
# @param type
|
|
93
|
-
# Always `logs`.
|
|
94
|
-
def initialize: (logs: String, ?type: :logs) -> void
|
|
95
|
-
|
|
96
|
-
def to_hash: -> { logs: String, ?type: :logs }
|
|
97
|
-
end
|
|
98
|
-
|
|
99
|
-
type image =
|
|
100
|
-
{
|
|
101
|
-
image: OpenAI::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter::Output::Image::Image,
|
|
102
|
-
?type: :image
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
class Image < OpenAI::Internal::Type::BaseModel
|
|
106
|
-
attr_accessor image: OpenAI::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter::Output::Image::Image
|
|
107
|
-
|
|
108
|
-
# Always `image`.
|
|
109
|
-
attr_accessor type: :image
|
|
110
|
-
|
|
111
|
-
# @param type
|
|
112
|
-
# Always `image`.
|
|
113
|
-
def initialize: (
|
|
114
|
-
image: OpenAI::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter::Output::Image::Image,
|
|
115
|
-
?type: :image
|
|
116
|
-
) -> void
|
|
117
|
-
|
|
118
|
-
def to_hash: -> {
|
|
119
|
-
image: OpenAI::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter::Output::Image::Image,
|
|
120
|
-
?type: :image
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
type image = { file_id: String }
|
|
124
|
-
|
|
125
|
-
class Image < OpenAI::Internal::Type::BaseModel
|
|
126
|
-
# The [file](https://developers.openai.com/api/reference/resources/files) ID of
|
|
127
|
-
# the image.
|
|
128
|
-
attr_accessor file_id: String
|
|
129
|
-
|
|
130
|
-
# @param file_id
|
|
131
|
-
# The [file](https://developers.openai.com/api/reference/resources/files) ID of
|
|
132
|
-
# the image.
|
|
133
|
-
def initialize: (file_id: String) -> void
|
|
134
|
-
|
|
135
|
-
def to_hash: -> { file_id: String }
|
|
136
|
-
end
|
|
137
|
-
end
|
|
138
|
-
|
|
139
|
-
def self?.variants: -> ::Array[OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter::output]
|
|
140
|
-
end
|
|
141
|
-
end
|
|
142
|
-
end
|
|
143
|
-
end
|
|
144
|
-
end
|
|
145
|
-
end
|
|
146
|
-
end
|
|
147
|
-
end
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
module Runs
|
|
6
|
-
type code_interpreter_tool_call_delta =
|
|
7
|
-
{
|
|
8
|
-
index: Integer,
|
|
9
|
-
?type: :code_interpreter,
|
|
10
|
-
?id: String,
|
|
11
|
-
?code_interpreter: OpenAI::Beta::Threads::Runs::CodeInterpreterToolCallDelta::CodeInterpreter
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
class CodeInterpreterToolCallDelta < OpenAI::Internal::Type::BaseModel
|
|
15
|
-
# The index of the tool call in the tool calls array.
|
|
16
|
-
attr_accessor index: Integer
|
|
17
|
-
|
|
18
|
-
# The type of tool call. This is always going to be `code_interpreter` for this
|
|
19
|
-
# type of tool call.
|
|
20
|
-
attr_accessor type: :code_interpreter
|
|
21
|
-
|
|
22
|
-
# The ID of the tool call.
|
|
23
|
-
attr_reader id: String?
|
|
24
|
-
|
|
25
|
-
# The ID of the tool call.
|
|
26
|
-
def id=: (String) -> String
|
|
27
|
-
|
|
28
|
-
# The Code Interpreter tool call definition.
|
|
29
|
-
attr_reader code_interpreter: OpenAI::Beta::Threads::Runs::CodeInterpreterToolCallDelta::CodeInterpreter?
|
|
30
|
-
|
|
31
|
-
# The Code Interpreter tool call definition.
|
|
32
|
-
def code_interpreter=: (
|
|
33
|
-
OpenAI::Beta::Threads::Runs::CodeInterpreterToolCallDelta::CodeInterpreter
|
|
34
|
-
) -> OpenAI::Beta::Threads::Runs::CodeInterpreterToolCallDelta::CodeInterpreter
|
|
35
|
-
|
|
36
|
-
# @param index
|
|
37
|
-
# The index of the tool call in the tool calls array.
|
|
38
|
-
# @param id
|
|
39
|
-
# The ID of the tool call.
|
|
40
|
-
# @param code_interpreter
|
|
41
|
-
# The Code Interpreter tool call definition.
|
|
42
|
-
# @param type
|
|
43
|
-
# The type of tool call. This is always going to be `code_interpreter` for this
|
|
44
|
-
# type of tool call.
|
|
45
|
-
def initialize: (
|
|
46
|
-
index: Integer,
|
|
47
|
-
?id: String,
|
|
48
|
-
?code_interpreter: OpenAI::Beta::Threads::Runs::CodeInterpreterToolCallDelta::CodeInterpreter,
|
|
49
|
-
?type: :code_interpreter
|
|
50
|
-
) -> void
|
|
51
|
-
|
|
52
|
-
def to_hash: -> {
|
|
53
|
-
index: Integer,
|
|
54
|
-
?type: :code_interpreter,
|
|
55
|
-
?id: String,
|
|
56
|
-
?code_interpreter: OpenAI::Beta::Threads::Runs::CodeInterpreterToolCallDelta::CodeInterpreter
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
type code_interpreter =
|
|
60
|
-
{
|
|
61
|
-
?input: String,
|
|
62
|
-
?outputs: ::Array[OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCallDelta::CodeInterpreter::output]
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
class CodeInterpreter < OpenAI::Internal::Type::BaseModel
|
|
66
|
-
# The input to the Code Interpreter tool call.
|
|
67
|
-
attr_reader input: String?
|
|
68
|
-
|
|
69
|
-
# The input to the Code Interpreter tool call.
|
|
70
|
-
def input=: (String) -> String
|
|
71
|
-
|
|
72
|
-
# The outputs from the Code Interpreter tool call. Code Interpreter can output one
|
|
73
|
-
# or more items, including text (`logs`) or images (`image`). Each of these are
|
|
74
|
-
# represented by a different object type.
|
|
75
|
-
attr_reader outputs: ::Array[OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCallDelta::CodeInterpreter::output]?
|
|
76
|
-
|
|
77
|
-
# The outputs from the Code Interpreter tool call. Code Interpreter can output one
|
|
78
|
-
# or more items, including text (`logs`) or images (`image`). Each of these are
|
|
79
|
-
# represented by a different object type.
|
|
80
|
-
def outputs=: (
|
|
81
|
-
::Array[OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCallDelta::CodeInterpreter::output]
|
|
82
|
-
) -> ::Array[OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCallDelta::CodeInterpreter::output]
|
|
83
|
-
|
|
84
|
-
# @param input
|
|
85
|
-
# The input to the Code Interpreter tool call.
|
|
86
|
-
# @param outputs
|
|
87
|
-
# The outputs from the Code Interpreter tool call. Code Interpreter can output one
|
|
88
|
-
# or more items, including text (`logs`) or images (`image`). Each of these are
|
|
89
|
-
# represented by a different object type.
|
|
90
|
-
def initialize: (
|
|
91
|
-
?input: String,
|
|
92
|
-
?outputs: ::Array[OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCallDelta::CodeInterpreter::output]
|
|
93
|
-
) -> void
|
|
94
|
-
|
|
95
|
-
def to_hash: -> {
|
|
96
|
-
?input: String,
|
|
97
|
-
?outputs: ::Array[OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCallDelta::CodeInterpreter::output]
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
type output =
|
|
101
|
-
OpenAI::Beta::Threads::Runs::CodeInterpreterLogs
|
|
102
|
-
| OpenAI::Beta::Threads::Runs::CodeInterpreterOutputImage
|
|
103
|
-
|
|
104
|
-
module Output
|
|
105
|
-
extend OpenAI::Internal::Type::Union
|
|
106
|
-
|
|
107
|
-
def self?.variants: -> ::Array[OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCallDelta::CodeInterpreter::output]
|
|
108
|
-
end
|
|
109
|
-
end
|
|
110
|
-
end
|
|
111
|
-
end
|
|
112
|
-
end
|
|
113
|
-
end
|
|
114
|
-
end
|
|
115
|
-
end
|