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,311 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module OpenAI
|
|
4
|
-
module Models
|
|
5
|
-
module Beta
|
|
6
|
-
module Threads
|
|
7
|
-
module Runs
|
|
8
|
-
# @see OpenAI::Resources::Beta::Threads::Runs::Steps#retrieve
|
|
9
|
-
class RunStep < OpenAI::Internal::Type::BaseModel
|
|
10
|
-
# @!attribute id
|
|
11
|
-
# The identifier of the run step, which can be referenced in API endpoints.
|
|
12
|
-
#
|
|
13
|
-
# @return [String]
|
|
14
|
-
required :id, String
|
|
15
|
-
|
|
16
|
-
# @!attribute assistant_id
|
|
17
|
-
# The ID of the
|
|
18
|
-
# [assistant](https://developers.openai.com/api/docs/assistants/migration)
|
|
19
|
-
# associated with the run step.
|
|
20
|
-
#
|
|
21
|
-
# @return [String]
|
|
22
|
-
required :assistant_id, String
|
|
23
|
-
|
|
24
|
-
# @!attribute cancelled_at
|
|
25
|
-
# The Unix timestamp (in seconds) for when the run step was cancelled.
|
|
26
|
-
#
|
|
27
|
-
# @return [Integer, nil]
|
|
28
|
-
required :cancelled_at, Integer, nil?: true
|
|
29
|
-
|
|
30
|
-
# @!attribute completed_at
|
|
31
|
-
# The Unix timestamp (in seconds) for when the run step completed.
|
|
32
|
-
#
|
|
33
|
-
# @return [Integer, nil]
|
|
34
|
-
required :completed_at, Integer, nil?: true
|
|
35
|
-
|
|
36
|
-
# @!attribute created_at
|
|
37
|
-
# The Unix timestamp (in seconds) for when the run step was created.
|
|
38
|
-
#
|
|
39
|
-
# @return [Integer]
|
|
40
|
-
required :created_at, Integer
|
|
41
|
-
|
|
42
|
-
# @!attribute expired_at
|
|
43
|
-
# The Unix timestamp (in seconds) for when the run step expired. A step is
|
|
44
|
-
# considered expired if the parent run is expired.
|
|
45
|
-
#
|
|
46
|
-
# @return [Integer, nil]
|
|
47
|
-
required :expired_at, Integer, nil?: true
|
|
48
|
-
|
|
49
|
-
# @!attribute failed_at
|
|
50
|
-
# The Unix timestamp (in seconds) for when the run step failed.
|
|
51
|
-
#
|
|
52
|
-
# @return [Integer, nil]
|
|
53
|
-
required :failed_at, Integer, nil?: true
|
|
54
|
-
|
|
55
|
-
# @!attribute last_error
|
|
56
|
-
# The last error associated with this run step. Will be `null` if there are no
|
|
57
|
-
# errors.
|
|
58
|
-
#
|
|
59
|
-
# @return [OpenAI::Models::Beta::Threads::Runs::RunStep::LastError, nil]
|
|
60
|
-
required :last_error, -> { OpenAI::Beta::Threads::Runs::RunStep::LastError }, nil?: true
|
|
61
|
-
|
|
62
|
-
# @!attribute metadata
|
|
63
|
-
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
64
|
-
# for storing additional information about the object in a structured format, and
|
|
65
|
-
# querying for objects via API or the dashboard.
|
|
66
|
-
#
|
|
67
|
-
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
68
|
-
# a maximum length of 512 characters.
|
|
69
|
-
#
|
|
70
|
-
# @return [Hash{Symbol=>String}, nil]
|
|
71
|
-
required :metadata, OpenAI::Internal::Type::HashOf[String], nil?: true
|
|
72
|
-
|
|
73
|
-
# @!attribute object
|
|
74
|
-
# The object type, which is always `thread.run.step`.
|
|
75
|
-
#
|
|
76
|
-
# @return [Symbol, :"thread.run.step"]
|
|
77
|
-
required :object, const: :"thread.run.step"
|
|
78
|
-
|
|
79
|
-
# @!attribute run_id
|
|
80
|
-
# The ID of the [run](https://developers.openai.com/api/docs/assistants/migration)
|
|
81
|
-
# that this run step is a part of.
|
|
82
|
-
#
|
|
83
|
-
# @return [String]
|
|
84
|
-
required :run_id, String
|
|
85
|
-
|
|
86
|
-
# @!attribute status
|
|
87
|
-
# The status of the run step, which can be either `in_progress`, `cancelled`,
|
|
88
|
-
# `failed`, `completed`, or `expired`.
|
|
89
|
-
#
|
|
90
|
-
# @return [Symbol, OpenAI::Models::Beta::Threads::Runs::RunStep::Status]
|
|
91
|
-
required :status, enum: -> { OpenAI::Beta::Threads::Runs::RunStep::Status }
|
|
92
|
-
|
|
93
|
-
# @!attribute step_details
|
|
94
|
-
# The details of the run step.
|
|
95
|
-
#
|
|
96
|
-
# @return [OpenAI::Models::Beta::Threads::Runs::MessageCreationStepDetails, OpenAI::Models::Beta::Threads::Runs::ToolCallsStepDetails]
|
|
97
|
-
required :step_details, union: -> { OpenAI::Beta::Threads::Runs::RunStep::StepDetails }
|
|
98
|
-
|
|
99
|
-
# @!attribute thread_id
|
|
100
|
-
# The ID of the
|
|
101
|
-
# [thread](https://developers.openai.com/api/docs/assistants/migration) that was
|
|
102
|
-
# run.
|
|
103
|
-
#
|
|
104
|
-
# @return [String]
|
|
105
|
-
required :thread_id, String
|
|
106
|
-
|
|
107
|
-
# @!attribute type
|
|
108
|
-
# The type of run step, which can be either `message_creation` or `tool_calls`.
|
|
109
|
-
#
|
|
110
|
-
# @return [Symbol, OpenAI::Models::Beta::Threads::Runs::RunStep::Type]
|
|
111
|
-
required :type, enum: -> { OpenAI::Beta::Threads::Runs::RunStep::Type }
|
|
112
|
-
|
|
113
|
-
# @!attribute usage
|
|
114
|
-
# Usage statistics related to the run step. This value will be `null` while the
|
|
115
|
-
# run step's status is `in_progress`.
|
|
116
|
-
#
|
|
117
|
-
# @return [OpenAI::Models::Beta::Threads::Runs::RunStep::Usage, nil]
|
|
118
|
-
required :usage, -> { OpenAI::Beta::Threads::Runs::RunStep::Usage }, nil?: true
|
|
119
|
-
|
|
120
|
-
# @!method initialize(id:, assistant_id:, cancelled_at:, completed_at:, created_at:, expired_at:, failed_at:, last_error:, metadata:, run_id:, status:, step_details:, thread_id:, type:, usage:, object: :"thread.run.step")
|
|
121
|
-
# Represents a step in execution of a run.
|
|
122
|
-
#
|
|
123
|
-
# @param id [String]
|
|
124
|
-
# The identifier of the run step, which can be referenced in API endpoints.
|
|
125
|
-
#
|
|
126
|
-
# @param assistant_id [String]
|
|
127
|
-
# The ID of the
|
|
128
|
-
# [assistant](https://developers.openai.com/api/docs/assistants/migration)
|
|
129
|
-
# associated with the run step.
|
|
130
|
-
#
|
|
131
|
-
# @param cancelled_at [Integer, nil]
|
|
132
|
-
# The Unix timestamp (in seconds) for when the run step was cancelled.
|
|
133
|
-
#
|
|
134
|
-
# @param completed_at [Integer, nil]
|
|
135
|
-
# The Unix timestamp (in seconds) for when the run step completed.
|
|
136
|
-
#
|
|
137
|
-
# @param created_at [Integer]
|
|
138
|
-
# The Unix timestamp (in seconds) for when the run step was created.
|
|
139
|
-
#
|
|
140
|
-
# @param expired_at [Integer, nil]
|
|
141
|
-
# The Unix timestamp (in seconds) for when the run step expired. A step is
|
|
142
|
-
# considered expired if the parent run is expired.
|
|
143
|
-
#
|
|
144
|
-
# @param failed_at [Integer, nil]
|
|
145
|
-
# The Unix timestamp (in seconds) for when the run step failed.
|
|
146
|
-
#
|
|
147
|
-
# @param last_error [OpenAI::Models::Beta::Threads::Runs::RunStep::LastError, nil]
|
|
148
|
-
# The last error associated with this run step. Will be `null` if there are no
|
|
149
|
-
# errors.
|
|
150
|
-
#
|
|
151
|
-
# @param metadata [Hash{Symbol=>String}, nil]
|
|
152
|
-
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
153
|
-
# for storing additional information about the object in a structured format, and
|
|
154
|
-
# querying for objects via API or the dashboard.
|
|
155
|
-
#
|
|
156
|
-
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
157
|
-
# a maximum length of 512 characters.
|
|
158
|
-
#
|
|
159
|
-
# @param run_id [String]
|
|
160
|
-
# The ID of the [run](https://developers.openai.com/api/docs/assistants/migration)
|
|
161
|
-
# that this run step is a part of.
|
|
162
|
-
#
|
|
163
|
-
# @param status [Symbol, OpenAI::Models::Beta::Threads::Runs::RunStep::Status]
|
|
164
|
-
# The status of the run step, which can be either `in_progress`, `cancelled`,
|
|
165
|
-
# `failed`, `completed`, or `expired`.
|
|
166
|
-
#
|
|
167
|
-
# @param step_details [OpenAI::Models::Beta::Threads::Runs::MessageCreationStepDetails, OpenAI::Models::Beta::Threads::Runs::ToolCallsStepDetails]
|
|
168
|
-
# The details of the run step.
|
|
169
|
-
#
|
|
170
|
-
# @param thread_id [String]
|
|
171
|
-
# The ID of the
|
|
172
|
-
# [thread](https://developers.openai.com/api/docs/assistants/migration) that was
|
|
173
|
-
# run.
|
|
174
|
-
#
|
|
175
|
-
# @param type [Symbol, OpenAI::Models::Beta::Threads::Runs::RunStep::Type]
|
|
176
|
-
# The type of run step, which can be either `message_creation` or `tool_calls`.
|
|
177
|
-
#
|
|
178
|
-
# @param usage [OpenAI::Models::Beta::Threads::Runs::RunStep::Usage, nil]
|
|
179
|
-
# Usage statistics related to the run step. This value will be `null` while the
|
|
180
|
-
# run step's status is `in_progress`.
|
|
181
|
-
#
|
|
182
|
-
# @param object [Symbol, :"thread.run.step"]
|
|
183
|
-
# The object type, which is always `thread.run.step`.
|
|
184
|
-
|
|
185
|
-
# @see OpenAI::Models::Beta::Threads::Runs::RunStep#last_error
|
|
186
|
-
class LastError < OpenAI::Internal::Type::BaseModel
|
|
187
|
-
# @!attribute code
|
|
188
|
-
# One of `server_error` or `rate_limit_exceeded`.
|
|
189
|
-
#
|
|
190
|
-
# @return [Symbol, OpenAI::Models::Beta::Threads::Runs::RunStep::LastError::Code]
|
|
191
|
-
required :code, enum: -> { OpenAI::Beta::Threads::Runs::RunStep::LastError::Code }
|
|
192
|
-
|
|
193
|
-
# @!attribute message
|
|
194
|
-
# A human-readable description of the error.
|
|
195
|
-
#
|
|
196
|
-
# @return [String]
|
|
197
|
-
required :message, String
|
|
198
|
-
|
|
199
|
-
# @!method initialize(code:, message:)
|
|
200
|
-
# The last error associated with this run step. Will be `null` if there are no
|
|
201
|
-
# errors.
|
|
202
|
-
#
|
|
203
|
-
# @param code [Symbol, OpenAI::Models::Beta::Threads::Runs::RunStep::LastError::Code]
|
|
204
|
-
# One of `server_error` or `rate_limit_exceeded`.
|
|
205
|
-
#
|
|
206
|
-
# @param message [String]
|
|
207
|
-
# A human-readable description of the error.
|
|
208
|
-
|
|
209
|
-
# One of `server_error` or `rate_limit_exceeded`.
|
|
210
|
-
#
|
|
211
|
-
# @see OpenAI::Models::Beta::Threads::Runs::RunStep::LastError#code
|
|
212
|
-
module Code
|
|
213
|
-
extend OpenAI::Internal::Type::Enum
|
|
214
|
-
|
|
215
|
-
SERVER_ERROR = :server_error
|
|
216
|
-
RATE_LIMIT_EXCEEDED = :rate_limit_exceeded
|
|
217
|
-
|
|
218
|
-
# @!method self.values
|
|
219
|
-
# @return [Array<Symbol>]
|
|
220
|
-
end
|
|
221
|
-
end
|
|
222
|
-
|
|
223
|
-
# The status of the run step, which can be either `in_progress`, `cancelled`,
|
|
224
|
-
# `failed`, `completed`, or `expired`.
|
|
225
|
-
#
|
|
226
|
-
# @see OpenAI::Models::Beta::Threads::Runs::RunStep#status
|
|
227
|
-
module Status
|
|
228
|
-
extend OpenAI::Internal::Type::Enum
|
|
229
|
-
|
|
230
|
-
IN_PROGRESS = :in_progress
|
|
231
|
-
CANCELLED = :cancelled
|
|
232
|
-
FAILED = :failed
|
|
233
|
-
COMPLETED = :completed
|
|
234
|
-
EXPIRED = :expired
|
|
235
|
-
|
|
236
|
-
# @!method self.values
|
|
237
|
-
# @return [Array<Symbol>]
|
|
238
|
-
end
|
|
239
|
-
|
|
240
|
-
# The details of the run step.
|
|
241
|
-
#
|
|
242
|
-
# @see OpenAI::Models::Beta::Threads::Runs::RunStep#step_details
|
|
243
|
-
module StepDetails
|
|
244
|
-
extend OpenAI::Internal::Type::Union
|
|
245
|
-
|
|
246
|
-
discriminator :type
|
|
247
|
-
|
|
248
|
-
# Details of the message creation by the run step.
|
|
249
|
-
variant :message_creation, -> { OpenAI::Beta::Threads::Runs::MessageCreationStepDetails }
|
|
250
|
-
|
|
251
|
-
# Details of the tool call.
|
|
252
|
-
variant :tool_calls, -> { OpenAI::Beta::Threads::Runs::ToolCallsStepDetails }
|
|
253
|
-
|
|
254
|
-
# @!method self.variants
|
|
255
|
-
# @return [Array(OpenAI::Models::Beta::Threads::Runs::MessageCreationStepDetails, OpenAI::Models::Beta::Threads::Runs::ToolCallsStepDetails)]
|
|
256
|
-
end
|
|
257
|
-
|
|
258
|
-
# The type of run step, which can be either `message_creation` or `tool_calls`.
|
|
259
|
-
#
|
|
260
|
-
# @see OpenAI::Models::Beta::Threads::Runs::RunStep#type
|
|
261
|
-
module Type
|
|
262
|
-
extend OpenAI::Internal::Type::Enum
|
|
263
|
-
|
|
264
|
-
MESSAGE_CREATION = :message_creation
|
|
265
|
-
TOOL_CALLS = :tool_calls
|
|
266
|
-
|
|
267
|
-
# @!method self.values
|
|
268
|
-
# @return [Array<Symbol>]
|
|
269
|
-
end
|
|
270
|
-
|
|
271
|
-
# @see OpenAI::Models::Beta::Threads::Runs::RunStep#usage
|
|
272
|
-
class Usage < OpenAI::Internal::Type::BaseModel
|
|
273
|
-
# @!attribute completion_tokens
|
|
274
|
-
# Number of completion tokens used over the course of the run step.
|
|
275
|
-
#
|
|
276
|
-
# @return [Integer]
|
|
277
|
-
required :completion_tokens, Integer
|
|
278
|
-
|
|
279
|
-
# @!attribute prompt_tokens
|
|
280
|
-
# Number of prompt tokens used over the course of the run step.
|
|
281
|
-
#
|
|
282
|
-
# @return [Integer]
|
|
283
|
-
required :prompt_tokens, Integer
|
|
284
|
-
|
|
285
|
-
# @!attribute total_tokens
|
|
286
|
-
# Total number of tokens used (prompt + completion).
|
|
287
|
-
#
|
|
288
|
-
# @return [Integer]
|
|
289
|
-
required :total_tokens, Integer
|
|
290
|
-
|
|
291
|
-
# @!method initialize(completion_tokens:, prompt_tokens:, total_tokens:)
|
|
292
|
-
# Usage statistics related to the run step. This value will be `null` while the
|
|
293
|
-
# run step's status is `in_progress`.
|
|
294
|
-
#
|
|
295
|
-
# @param completion_tokens [Integer]
|
|
296
|
-
# Number of completion tokens used over the course of the run step.
|
|
297
|
-
#
|
|
298
|
-
# @param prompt_tokens [Integer]
|
|
299
|
-
# Number of prompt tokens used over the course of the run step.
|
|
300
|
-
#
|
|
301
|
-
# @param total_tokens [Integer]
|
|
302
|
-
# Total number of tokens used (prompt + completion).
|
|
303
|
-
end
|
|
304
|
-
end
|
|
305
|
-
end
|
|
306
|
-
|
|
307
|
-
RunStep = Runs::RunStep
|
|
308
|
-
end
|
|
309
|
-
end
|
|
310
|
-
end
|
|
311
|
-
end
|
|
@@ -1,45 +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 RunStepDelta < OpenAI::Internal::Type::BaseModel
|
|
9
|
-
# @!attribute step_details
|
|
10
|
-
# The details of the run step.
|
|
11
|
-
#
|
|
12
|
-
# @return [OpenAI::Models::Beta::Threads::Runs::RunStepDeltaMessageDelta, OpenAI::Models::Beta::Threads::Runs::ToolCallDeltaObject, nil]
|
|
13
|
-
optional :step_details, union: -> { OpenAI::Beta::Threads::Runs::RunStepDelta::StepDetails }
|
|
14
|
-
|
|
15
|
-
# @!method initialize(step_details: nil)
|
|
16
|
-
# The delta containing the fields that have changed on the run step.
|
|
17
|
-
#
|
|
18
|
-
# @param step_details [OpenAI::Models::Beta::Threads::Runs::RunStepDeltaMessageDelta, OpenAI::Models::Beta::Threads::Runs::ToolCallDeltaObject]
|
|
19
|
-
# The details of the run step.
|
|
20
|
-
|
|
21
|
-
# The details of the run step.
|
|
22
|
-
#
|
|
23
|
-
# @see OpenAI::Models::Beta::Threads::Runs::RunStepDelta#step_details
|
|
24
|
-
module StepDetails
|
|
25
|
-
extend OpenAI::Internal::Type::Union
|
|
26
|
-
|
|
27
|
-
discriminator :type
|
|
28
|
-
|
|
29
|
-
# Details of the message creation by the run step.
|
|
30
|
-
variant :message_creation, -> { OpenAI::Beta::Threads::Runs::RunStepDeltaMessageDelta }
|
|
31
|
-
|
|
32
|
-
# Details of the tool call.
|
|
33
|
-
variant :tool_calls, -> { OpenAI::Beta::Threads::Runs::ToolCallDeltaObject }
|
|
34
|
-
|
|
35
|
-
# @!method self.variants
|
|
36
|
-
# @return [Array(OpenAI::Models::Beta::Threads::Runs::RunStepDeltaMessageDelta, OpenAI::Models::Beta::Threads::Runs::ToolCallDeltaObject)]
|
|
37
|
-
end
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
RunStepDelta = Runs::RunStepDelta
|
|
42
|
-
end
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
|
-
end
|
|
@@ -1,46 +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 RunStepDeltaEvent < OpenAI::Internal::Type::BaseModel
|
|
9
|
-
# @!attribute id
|
|
10
|
-
# The identifier of the run step, which can be referenced in API endpoints.
|
|
11
|
-
#
|
|
12
|
-
# @return [String]
|
|
13
|
-
required :id, String
|
|
14
|
-
|
|
15
|
-
# @!attribute delta
|
|
16
|
-
# The delta containing the fields that have changed on the run step.
|
|
17
|
-
#
|
|
18
|
-
# @return [OpenAI::Models::Beta::Threads::Runs::RunStepDelta]
|
|
19
|
-
required :delta, -> { OpenAI::Beta::Threads::Runs::RunStepDelta }
|
|
20
|
-
|
|
21
|
-
# @!attribute object
|
|
22
|
-
# The object type, which is always `thread.run.step.delta`.
|
|
23
|
-
#
|
|
24
|
-
# @return [Symbol, :"thread.run.step.delta"]
|
|
25
|
-
required :object, const: :"thread.run.step.delta"
|
|
26
|
-
|
|
27
|
-
# @!method initialize(id:, delta:, object: :"thread.run.step.delta")
|
|
28
|
-
# Represents a run step delta i.e. any changed fields on a run step during
|
|
29
|
-
# streaming.
|
|
30
|
-
#
|
|
31
|
-
# @param id [String]
|
|
32
|
-
# The identifier of the run step, which can be referenced in API endpoints.
|
|
33
|
-
#
|
|
34
|
-
# @param delta [OpenAI::Models::Beta::Threads::Runs::RunStepDelta]
|
|
35
|
-
# The delta containing the fields that have changed on the run step.
|
|
36
|
-
#
|
|
37
|
-
# @param object [Symbol, :"thread.run.step.delta"]
|
|
38
|
-
# The object type, which is always `thread.run.step.delta`.
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
RunStepDeltaEvent = Runs::RunStepDeltaEvent
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
|
-
end
|
|
46
|
-
end
|
|
@@ -1,47 +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 RunStepDeltaMessageDelta < OpenAI::Internal::Type::BaseModel
|
|
9
|
-
# @!attribute type
|
|
10
|
-
# Always `message_creation`.
|
|
11
|
-
#
|
|
12
|
-
# @return [Symbol, :message_creation]
|
|
13
|
-
required :type, const: :message_creation
|
|
14
|
-
|
|
15
|
-
# @!attribute message_creation
|
|
16
|
-
#
|
|
17
|
-
# @return [OpenAI::Models::Beta::Threads::Runs::RunStepDeltaMessageDelta::MessageCreation, nil]
|
|
18
|
-
optional :message_creation, -> { OpenAI::Beta::Threads::Runs::RunStepDeltaMessageDelta::MessageCreation }
|
|
19
|
-
|
|
20
|
-
# @!method initialize(message_creation: nil, type: :message_creation)
|
|
21
|
-
# Details of the message creation by the run step.
|
|
22
|
-
#
|
|
23
|
-
# @param message_creation [OpenAI::Models::Beta::Threads::Runs::RunStepDeltaMessageDelta::MessageCreation]
|
|
24
|
-
#
|
|
25
|
-
# @param type [Symbol, :message_creation]
|
|
26
|
-
# Always `message_creation`.
|
|
27
|
-
|
|
28
|
-
# @see OpenAI::Models::Beta::Threads::Runs::RunStepDeltaMessageDelta#message_creation
|
|
29
|
-
class MessageCreation < OpenAI::Internal::Type::BaseModel
|
|
30
|
-
# @!attribute message_id
|
|
31
|
-
# The ID of the message that was created by this run step.
|
|
32
|
-
#
|
|
33
|
-
# @return [String, nil]
|
|
34
|
-
optional :message_id, String
|
|
35
|
-
|
|
36
|
-
# @!method initialize(message_id: nil)
|
|
37
|
-
# @param message_id [String]
|
|
38
|
-
# The ID of the message that was created by this run step.
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
RunStepDeltaMessageDelta = Runs::RunStepDeltaMessageDelta
|
|
44
|
-
end
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
end
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module OpenAI
|
|
4
|
-
module Models
|
|
5
|
-
module Beta
|
|
6
|
-
module Threads
|
|
7
|
-
module Runs
|
|
8
|
-
module RunStepInclude
|
|
9
|
-
extend OpenAI::Internal::Type::Enum
|
|
10
|
-
|
|
11
|
-
STEP_DETAILS_TOOL_CALLS_FILE_SEARCH_RESULTS_CONTENT = :"step_details.tool_calls[*].file_search.results[*].content"
|
|
12
|
-
|
|
13
|
-
# @!method self.values
|
|
14
|
-
# @return [Array<Symbol>]
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
RunStepInclude = Runs::RunStepInclude
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
end
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module OpenAI
|
|
4
|
-
module Models
|
|
5
|
-
module Beta
|
|
6
|
-
module Threads
|
|
7
|
-
module Runs
|
|
8
|
-
# @see OpenAI::Resources::Beta::Threads::Runs::Steps#list
|
|
9
|
-
class StepListParams < OpenAI::Internal::Type::BaseModel
|
|
10
|
-
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
11
|
-
include OpenAI::Internal::Type::RequestParameters
|
|
12
|
-
|
|
13
|
-
# @!attribute thread_id
|
|
14
|
-
#
|
|
15
|
-
# @return [String]
|
|
16
|
-
required :thread_id, String
|
|
17
|
-
|
|
18
|
-
# @!attribute run_id
|
|
19
|
-
#
|
|
20
|
-
# @return [String]
|
|
21
|
-
required :run_id, String
|
|
22
|
-
|
|
23
|
-
# @!attribute after
|
|
24
|
-
# A cursor for use in pagination. `after` is an object ID that defines your place
|
|
25
|
-
# in the list. For instance, if you make a list request and receive 100 objects,
|
|
26
|
-
# ending with obj_foo, your subsequent call can include after=obj_foo in order to
|
|
27
|
-
# fetch the next page of the list.
|
|
28
|
-
#
|
|
29
|
-
# @return [String, nil]
|
|
30
|
-
optional :after, String
|
|
31
|
-
|
|
32
|
-
# @!attribute before
|
|
33
|
-
# A cursor for use in pagination. `before` is an object ID that defines your place
|
|
34
|
-
# in the list. For instance, if you make a list request and receive 100 objects,
|
|
35
|
-
# starting with obj_foo, your subsequent call can include before=obj_foo in order
|
|
36
|
-
# to fetch the previous page of the list.
|
|
37
|
-
#
|
|
38
|
-
# @return [String, nil]
|
|
39
|
-
optional :before, String
|
|
40
|
-
|
|
41
|
-
# @!attribute include
|
|
42
|
-
# A list of additional fields to include in the response. Currently the only
|
|
43
|
-
# supported value is `step_details.tool_calls[*].file_search.results[*].content`
|
|
44
|
-
# to fetch the file search result content.
|
|
45
|
-
#
|
|
46
|
-
# See the
|
|
47
|
-
# [file search tool documentation](https://developers.openai.com/api/docs/guides/tools-file-search#retrieval-customization)
|
|
48
|
-
# for more information.
|
|
49
|
-
#
|
|
50
|
-
# @return [Array<Symbol, OpenAI::Models::Beta::Threads::Runs::RunStepInclude>, nil]
|
|
51
|
-
optional(
|
|
52
|
-
:include,
|
|
53
|
-
-> { OpenAI::Internal::Type::ArrayOf[enum: OpenAI::Beta::Threads::Runs::RunStepInclude] }
|
|
54
|
-
)
|
|
55
|
-
|
|
56
|
-
# @!attribute limit
|
|
57
|
-
# A limit on the number of objects to be returned. Limit can range between 1 and
|
|
58
|
-
# 100, and the default is 20.
|
|
59
|
-
#
|
|
60
|
-
# @return [Integer, nil]
|
|
61
|
-
optional :limit, Integer
|
|
62
|
-
|
|
63
|
-
# @!attribute order
|
|
64
|
-
# Sort order by the `created_at` timestamp of the objects. `asc` for ascending
|
|
65
|
-
# order and `desc` for descending order.
|
|
66
|
-
#
|
|
67
|
-
# @return [Symbol, OpenAI::Models::Beta::Threads::Runs::StepListParams::Order, nil]
|
|
68
|
-
optional :order, enum: -> { OpenAI::Beta::Threads::Runs::StepListParams::Order }
|
|
69
|
-
|
|
70
|
-
# @!method initialize(thread_id:, run_id:, after: nil, before: nil, include: nil, limit: nil, order: nil, request_options: {})
|
|
71
|
-
# @param thread_id [String]
|
|
72
|
-
#
|
|
73
|
-
# @param run_id [String]
|
|
74
|
-
#
|
|
75
|
-
# @param after [String]
|
|
76
|
-
# A cursor for use in pagination. `after` is an object ID that defines your place
|
|
77
|
-
# in the list. For instance, if you make a list request and receive 100 objects,
|
|
78
|
-
# ending with obj_foo, your subsequent call can include after=obj_foo in order to
|
|
79
|
-
# fetch the next page of the list.
|
|
80
|
-
#
|
|
81
|
-
# @param before [String]
|
|
82
|
-
# A cursor for use in pagination. `before` is an object ID that defines your place
|
|
83
|
-
# in the list. For instance, if you make a list request and receive 100 objects,
|
|
84
|
-
# starting with obj_foo, your subsequent call can include before=obj_foo in order
|
|
85
|
-
# to fetch the previous page of the list.
|
|
86
|
-
#
|
|
87
|
-
# @param include [Array<Symbol, OpenAI::Models::Beta::Threads::Runs::RunStepInclude>]
|
|
88
|
-
# A list of additional fields to include in the response. Currently the only
|
|
89
|
-
# supported value is `step_details.tool_calls[*].file_search.results[*].content`
|
|
90
|
-
# to fetch the file search result content.
|
|
91
|
-
#
|
|
92
|
-
# See the
|
|
93
|
-
# [file search tool documentation](https://developers.openai.com/api/docs/guides/tools-file-search#retrieval-customization)
|
|
94
|
-
# for more information.
|
|
95
|
-
#
|
|
96
|
-
# @param limit [Integer]
|
|
97
|
-
# A limit on the number of objects to be returned. Limit can range between 1 and
|
|
98
|
-
# 100, and the default is 20.
|
|
99
|
-
#
|
|
100
|
-
# @param order [Symbol, OpenAI::Models::Beta::Threads::Runs::StepListParams::Order]
|
|
101
|
-
# Sort order by the `created_at` timestamp of the objects. `asc` for ascending
|
|
102
|
-
# order and `desc` for descending order.
|
|
103
|
-
#
|
|
104
|
-
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
|
|
105
|
-
|
|
106
|
-
# Sort order by the `created_at` timestamp of the objects. `asc` for ascending
|
|
107
|
-
# order and `desc` for descending order.
|
|
108
|
-
module Order
|
|
109
|
-
extend OpenAI::Internal::Type::Enum
|
|
110
|
-
|
|
111
|
-
ASC = :asc
|
|
112
|
-
DESC = :desc
|
|
113
|
-
|
|
114
|
-
# @!method self.values
|
|
115
|
-
# @return [Array<Symbol>]
|
|
116
|
-
end
|
|
117
|
-
end
|
|
118
|
-
end
|
|
119
|
-
end
|
|
120
|
-
end
|
|
121
|
-
end
|
|
122
|
-
end
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module OpenAI
|
|
4
|
-
module Models
|
|
5
|
-
module Beta
|
|
6
|
-
module Threads
|
|
7
|
-
module Runs
|
|
8
|
-
# @see OpenAI::Resources::Beta::Threads::Runs::Steps#retrieve
|
|
9
|
-
class StepRetrieveParams < OpenAI::Internal::Type::BaseModel
|
|
10
|
-
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
11
|
-
include OpenAI::Internal::Type::RequestParameters
|
|
12
|
-
|
|
13
|
-
# @!attribute thread_id
|
|
14
|
-
#
|
|
15
|
-
# @return [String]
|
|
16
|
-
required :thread_id, String
|
|
17
|
-
|
|
18
|
-
# @!attribute run_id
|
|
19
|
-
#
|
|
20
|
-
# @return [String]
|
|
21
|
-
required :run_id, String
|
|
22
|
-
|
|
23
|
-
# @!attribute step_id
|
|
24
|
-
#
|
|
25
|
-
# @return [String]
|
|
26
|
-
required :step_id, String
|
|
27
|
-
|
|
28
|
-
# @!attribute include
|
|
29
|
-
# A list of additional fields to include in the response. Currently the only
|
|
30
|
-
# supported value is `step_details.tool_calls[*].file_search.results[*].content`
|
|
31
|
-
# to fetch the file search result content.
|
|
32
|
-
#
|
|
33
|
-
# See the
|
|
34
|
-
# [file search tool documentation](https://developers.openai.com/api/docs/guides/tools-file-search#retrieval-customization)
|
|
35
|
-
# for more information.
|
|
36
|
-
#
|
|
37
|
-
# @return [Array<Symbol, OpenAI::Models::Beta::Threads::Runs::RunStepInclude>, nil]
|
|
38
|
-
optional(
|
|
39
|
-
:include,
|
|
40
|
-
-> { OpenAI::Internal::Type::ArrayOf[enum: OpenAI::Beta::Threads::Runs::RunStepInclude] }
|
|
41
|
-
)
|
|
42
|
-
|
|
43
|
-
# @!method initialize(thread_id:, run_id:, step_id:, include: nil, request_options: {})
|
|
44
|
-
# @param thread_id [String]
|
|
45
|
-
#
|
|
46
|
-
# @param run_id [String]
|
|
47
|
-
#
|
|
48
|
-
# @param step_id [String]
|
|
49
|
-
#
|
|
50
|
-
# @param include [Array<Symbol, OpenAI::Models::Beta::Threads::Runs::RunStepInclude>]
|
|
51
|
-
# A list of additional fields to include in the response. Currently the only
|
|
52
|
-
# supported value is `step_details.tool_calls[*].file_search.results[*].content`
|
|
53
|
-
# to fetch the file search result content.
|
|
54
|
-
#
|
|
55
|
-
# See the
|
|
56
|
-
# [file search tool documentation](https://developers.openai.com/api/docs/guides/tools-file-search#retrieval-customization)
|
|
57
|
-
# for more information.
|
|
58
|
-
#
|
|
59
|
-
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
|
|
60
|
-
end
|
|
61
|
-
end
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
end
|
|
65
|
-
end
|