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,545 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
type run =
|
|
6
|
-
{
|
|
7
|
-
id: String,
|
|
8
|
-
assistant_id: String,
|
|
9
|
-
cancelled_at: Integer?,
|
|
10
|
-
completed_at: Integer?,
|
|
11
|
-
created_at: Integer,
|
|
12
|
-
expires_at: Integer?,
|
|
13
|
-
failed_at: Integer?,
|
|
14
|
-
incomplete_details: OpenAI::Beta::Threads::Run::IncompleteDetails?,
|
|
15
|
-
instructions: String,
|
|
16
|
-
last_error: OpenAI::Beta::Threads::Run::LastError?,
|
|
17
|
-
max_completion_tokens: Integer?,
|
|
18
|
-
max_prompt_tokens: Integer?,
|
|
19
|
-
metadata: OpenAI::Models::metadata?,
|
|
20
|
-
model: String,
|
|
21
|
-
?object: :"thread.run",
|
|
22
|
-
parallel_tool_calls: bool,
|
|
23
|
-
required_action: OpenAI::Beta::Threads::Run::RequiredAction?,
|
|
24
|
-
response_format: OpenAI::Models::Beta::assistant_response_format_option?,
|
|
25
|
-
started_at: Integer?,
|
|
26
|
-
status: OpenAI::Models::Beta::Threads::run_status,
|
|
27
|
-
thread_id: String,
|
|
28
|
-
tool_choice: OpenAI::Models::Beta::assistant_tool_choice_option?,
|
|
29
|
-
tools: ::Array[OpenAI::Models::Beta::assistant_tool],
|
|
30
|
-
truncation_strategy: OpenAI::Beta::Threads::Run::TruncationStrategy?,
|
|
31
|
-
usage: OpenAI::Beta::Threads::Run::Usage?,
|
|
32
|
-
?temperature: Float?,
|
|
33
|
-
?top_p: Float?
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
class Run < OpenAI::Internal::Type::BaseModel
|
|
37
|
-
# The identifier, which can be referenced in API endpoints.
|
|
38
|
-
attr_accessor id: String
|
|
39
|
-
|
|
40
|
-
# The ID of the
|
|
41
|
-
# [assistant](https://developers.openai.com/api/docs/assistants/migration) used
|
|
42
|
-
# for execution of this run.
|
|
43
|
-
attr_accessor assistant_id: String
|
|
44
|
-
|
|
45
|
-
# The Unix timestamp (in seconds) for when the run was cancelled.
|
|
46
|
-
attr_accessor cancelled_at: Integer?
|
|
47
|
-
|
|
48
|
-
# The Unix timestamp (in seconds) for when the run was completed.
|
|
49
|
-
attr_accessor completed_at: Integer?
|
|
50
|
-
|
|
51
|
-
# The Unix timestamp (in seconds) for when the run was created.
|
|
52
|
-
attr_accessor created_at: Integer
|
|
53
|
-
|
|
54
|
-
# The Unix timestamp (in seconds) for when the run will expire.
|
|
55
|
-
attr_accessor expires_at: Integer?
|
|
56
|
-
|
|
57
|
-
# The Unix timestamp (in seconds) for when the run failed.
|
|
58
|
-
attr_accessor failed_at: Integer?
|
|
59
|
-
|
|
60
|
-
# Details on why the run is incomplete. Will be `null` if the run is not
|
|
61
|
-
# incomplete.
|
|
62
|
-
attr_accessor incomplete_details: OpenAI::Beta::Threads::Run::IncompleteDetails?
|
|
63
|
-
|
|
64
|
-
# The instructions that the
|
|
65
|
-
# [assistant](https://developers.openai.com/api/docs/assistants/migration) used
|
|
66
|
-
# for this run.
|
|
67
|
-
attr_accessor instructions: String
|
|
68
|
-
|
|
69
|
-
# The last error associated with this run. Will be `null` if there are no errors.
|
|
70
|
-
attr_accessor last_error: OpenAI::Beta::Threads::Run::LastError?
|
|
71
|
-
|
|
72
|
-
# The maximum number of completion tokens specified to have been used over the
|
|
73
|
-
# course of the run.
|
|
74
|
-
attr_accessor max_completion_tokens: Integer?
|
|
75
|
-
|
|
76
|
-
# The maximum number of prompt tokens specified to have been used over the course
|
|
77
|
-
# of the run.
|
|
78
|
-
attr_accessor max_prompt_tokens: Integer?
|
|
79
|
-
|
|
80
|
-
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
81
|
-
# for storing additional information about the object in a structured format, and
|
|
82
|
-
# querying for objects via API or the dashboard.
|
|
83
|
-
#
|
|
84
|
-
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
85
|
-
# a maximum length of 512 characters.
|
|
86
|
-
attr_accessor metadata: OpenAI::Models::metadata?
|
|
87
|
-
|
|
88
|
-
# The model that the
|
|
89
|
-
# [assistant](https://developers.openai.com/api/docs/assistants/migration) used
|
|
90
|
-
# for this run.
|
|
91
|
-
attr_accessor model: String
|
|
92
|
-
|
|
93
|
-
# The object type, which is always `thread.run`.
|
|
94
|
-
attr_accessor object: :"thread.run"
|
|
95
|
-
|
|
96
|
-
# Whether to enable
|
|
97
|
-
# [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling)
|
|
98
|
-
# during tool use.
|
|
99
|
-
attr_accessor parallel_tool_calls: bool
|
|
100
|
-
|
|
101
|
-
# Details on the action required to continue the run. Will be `null` if no action
|
|
102
|
-
# is required.
|
|
103
|
-
attr_accessor required_action: OpenAI::Beta::Threads::Run::RequiredAction?
|
|
104
|
-
|
|
105
|
-
# Specifies the format that the model must output. Compatible with
|
|
106
|
-
# [GPT-4o](https://developers.openai.com/api/docs/models/gpt-4o),
|
|
107
|
-
# [GPT-4 Turbo](https://developers.openai.com/api/docs/models/gpt-4-turbo), and
|
|
108
|
-
# all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
|
|
109
|
-
#
|
|
110
|
-
# Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
|
|
111
|
-
# Outputs which ensures the model will match your supplied JSON schema. Learn more
|
|
112
|
-
# in the
|
|
113
|
-
# [Structured Outputs guide](https://developers.openai.com/api/docs/guides/structured-outputs).
|
|
114
|
-
#
|
|
115
|
-
# Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the
|
|
116
|
-
# message the model generates is valid JSON.
|
|
117
|
-
#
|
|
118
|
-
# **Important:** when using JSON mode, you **must** also instruct the model to
|
|
119
|
-
# produce JSON yourself via a system or user message. Without this, the model may
|
|
120
|
-
# generate an unending stream of whitespace until the generation reaches the token
|
|
121
|
-
# limit, resulting in a long-running and seemingly "stuck" request. Also note that
|
|
122
|
-
# the message content may be partially cut off if `finish_reason="length"`, which
|
|
123
|
-
# indicates the generation exceeded `max_tokens` or the conversation exceeded the
|
|
124
|
-
# max context length.
|
|
125
|
-
attr_accessor response_format: OpenAI::Models::Beta::assistant_response_format_option?
|
|
126
|
-
|
|
127
|
-
# The Unix timestamp (in seconds) for when the run was started.
|
|
128
|
-
attr_accessor started_at: Integer?
|
|
129
|
-
|
|
130
|
-
# The status of the run, which can be either `queued`, `in_progress`,
|
|
131
|
-
# `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`,
|
|
132
|
-
# `incomplete`, or `expired`.
|
|
133
|
-
attr_accessor status: OpenAI::Models::Beta::Threads::run_status
|
|
134
|
-
|
|
135
|
-
# The ID of the
|
|
136
|
-
# [thread](https://developers.openai.com/api/docs/assistants/migration) that was
|
|
137
|
-
# executed on as a part of this run.
|
|
138
|
-
attr_accessor thread_id: String
|
|
139
|
-
|
|
140
|
-
# Controls which (if any) tool is called by the model. `none` means the model will
|
|
141
|
-
# not call any tools and instead generates a message. `auto` is the default value
|
|
142
|
-
# and means the model can pick between generating a message or calling one or more
|
|
143
|
-
# tools. `required` means the model must call one or more tools before responding
|
|
144
|
-
# to the user. Specifying a particular tool like `{"type": "file_search"}` or
|
|
145
|
-
# `{"type": "function", "function": {"name": "my_function"}}` forces the model to
|
|
146
|
-
# call that tool.
|
|
147
|
-
attr_accessor tool_choice: OpenAI::Models::Beta::assistant_tool_choice_option?
|
|
148
|
-
|
|
149
|
-
# The list of tools that the
|
|
150
|
-
# [assistant](https://developers.openai.com/api/docs/assistants/migration) used
|
|
151
|
-
# for this run.
|
|
152
|
-
attr_accessor tools: ::Array[OpenAI::Models::Beta::assistant_tool]
|
|
153
|
-
|
|
154
|
-
# Controls for how a thread will be truncated prior to the run. Use this to
|
|
155
|
-
# control the initial context window of the run.
|
|
156
|
-
attr_accessor truncation_strategy: OpenAI::Beta::Threads::Run::TruncationStrategy?
|
|
157
|
-
|
|
158
|
-
# Usage statistics related to the run. This value will be `null` if the run is not
|
|
159
|
-
# in a terminal state (i.e. `in_progress`, `queued`, etc.).
|
|
160
|
-
attr_accessor usage: OpenAI::Beta::Threads::Run::Usage?
|
|
161
|
-
|
|
162
|
-
# The sampling temperature used for this run. If not set, defaults to 1.
|
|
163
|
-
attr_accessor temperature: Float?
|
|
164
|
-
|
|
165
|
-
# The nucleus sampling value used for this run. If not set, defaults to 1.
|
|
166
|
-
attr_accessor top_p: Float?
|
|
167
|
-
|
|
168
|
-
# @param id
|
|
169
|
-
# The identifier, which can be referenced in API endpoints.
|
|
170
|
-
# @param assistant_id
|
|
171
|
-
# The ID of the
|
|
172
|
-
# [assistant](https://developers.openai.com/api/docs/assistants/migration) used
|
|
173
|
-
# for execution of this run.
|
|
174
|
-
# @param cancelled_at
|
|
175
|
-
# The Unix timestamp (in seconds) for when the run was cancelled.
|
|
176
|
-
# @param completed_at
|
|
177
|
-
# The Unix timestamp (in seconds) for when the run was completed.
|
|
178
|
-
# @param created_at
|
|
179
|
-
# The Unix timestamp (in seconds) for when the run was created.
|
|
180
|
-
# @param expires_at
|
|
181
|
-
# The Unix timestamp (in seconds) for when the run will expire.
|
|
182
|
-
# @param failed_at
|
|
183
|
-
# The Unix timestamp (in seconds) for when the run failed.
|
|
184
|
-
# @param incomplete_details
|
|
185
|
-
# Details on why the run is incomplete. Will be `null` if the run is not
|
|
186
|
-
# incomplete.
|
|
187
|
-
# @param instructions
|
|
188
|
-
# The instructions that the
|
|
189
|
-
# [assistant](https://developers.openai.com/api/docs/assistants/migration) used
|
|
190
|
-
# for this run.
|
|
191
|
-
# @param last_error
|
|
192
|
-
# The last error associated with this run. Will be `null` if there are no errors.
|
|
193
|
-
# @param max_completion_tokens
|
|
194
|
-
# The maximum number of completion tokens specified to have been used over the
|
|
195
|
-
# course of the run.
|
|
196
|
-
# @param max_prompt_tokens
|
|
197
|
-
# The maximum number of prompt tokens specified to have been used over the course
|
|
198
|
-
# of the run.
|
|
199
|
-
# @param metadata
|
|
200
|
-
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
201
|
-
# for storing additional information about the object in a structured format, and
|
|
202
|
-
# querying for objects via API or the dashboard.
|
|
203
|
-
#
|
|
204
|
-
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
205
|
-
# a maximum length of 512 characters.
|
|
206
|
-
# @param model
|
|
207
|
-
# The model that the
|
|
208
|
-
# [assistant](https://developers.openai.com/api/docs/assistants/migration) used
|
|
209
|
-
# for this run.
|
|
210
|
-
# @param parallel_tool_calls
|
|
211
|
-
# Whether to enable
|
|
212
|
-
# [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling)
|
|
213
|
-
# during tool use.
|
|
214
|
-
# @param required_action
|
|
215
|
-
# Details on the action required to continue the run. Will be `null` if no action
|
|
216
|
-
# is required.
|
|
217
|
-
# @param response_format
|
|
218
|
-
# Specifies the format that the model must output. Compatible with
|
|
219
|
-
# [GPT-4o](https://developers.openai.com/api/docs/models/gpt-4o),
|
|
220
|
-
# [GPT-4 Turbo](https://developers.openai.com/api/docs/models/gpt-4-turbo), and
|
|
221
|
-
# all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
|
|
222
|
-
#
|
|
223
|
-
# Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
|
|
224
|
-
# Outputs which ensures the model will match your supplied JSON schema. Learn more
|
|
225
|
-
# in the
|
|
226
|
-
# [Structured Outputs guide](https://developers.openai.com/api/docs/guides/structured-outputs).
|
|
227
|
-
#
|
|
228
|
-
# Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the
|
|
229
|
-
# message the model generates is valid JSON.
|
|
230
|
-
#
|
|
231
|
-
# **Important:** when using JSON mode, you **must** also instruct the model to
|
|
232
|
-
# produce JSON yourself via a system or user message. Without this, the model may
|
|
233
|
-
# generate an unending stream of whitespace until the generation reaches the token
|
|
234
|
-
# limit, resulting in a long-running and seemingly "stuck" request. Also note that
|
|
235
|
-
# the message content may be partially cut off if `finish_reason="length"`, which
|
|
236
|
-
# indicates the generation exceeded `max_tokens` or the conversation exceeded the
|
|
237
|
-
# max context length.
|
|
238
|
-
# @param started_at
|
|
239
|
-
# The Unix timestamp (in seconds) for when the run was started.
|
|
240
|
-
# @param status
|
|
241
|
-
# The status of the run, which can be either `queued`, `in_progress`,
|
|
242
|
-
# `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`,
|
|
243
|
-
# `incomplete`, or `expired`.
|
|
244
|
-
# @param thread_id
|
|
245
|
-
# The ID of the
|
|
246
|
-
# [thread](https://developers.openai.com/api/docs/assistants/migration) that was
|
|
247
|
-
# executed on as a part of this run.
|
|
248
|
-
# @param tool_choice
|
|
249
|
-
# Controls which (if any) tool is called by the model. `none` means the model will
|
|
250
|
-
# not call any tools and instead generates a message. `auto` is the default value
|
|
251
|
-
# and means the model can pick between generating a message or calling one or more
|
|
252
|
-
# tools. `required` means the model must call one or more tools before responding
|
|
253
|
-
# to the user. Specifying a particular tool like `{"type": "file_search"}` or
|
|
254
|
-
# `{"type": "function", "function": {"name": "my_function"}}` forces the model to
|
|
255
|
-
# call that tool.
|
|
256
|
-
# @param tools
|
|
257
|
-
# The list of tools that the
|
|
258
|
-
# [assistant](https://developers.openai.com/api/docs/assistants/migration) used
|
|
259
|
-
# for this run.
|
|
260
|
-
# @param truncation_strategy
|
|
261
|
-
# Controls for how a thread will be truncated prior to the run. Use this to
|
|
262
|
-
# control the initial context window of the run.
|
|
263
|
-
# @param usage
|
|
264
|
-
# Usage statistics related to the run. This value will be `null` if the run is not
|
|
265
|
-
# in a terminal state (i.e. `in_progress`, `queued`, etc.).
|
|
266
|
-
# @param temperature
|
|
267
|
-
# The sampling temperature used for this run. If not set, defaults to 1.
|
|
268
|
-
# @param top_p
|
|
269
|
-
# The nucleus sampling value used for this run. If not set, defaults to 1.
|
|
270
|
-
# @param object
|
|
271
|
-
# The object type, which is always `thread.run`.
|
|
272
|
-
def initialize: (
|
|
273
|
-
id: String,
|
|
274
|
-
assistant_id: String,
|
|
275
|
-
cancelled_at: Integer?,
|
|
276
|
-
completed_at: Integer?,
|
|
277
|
-
created_at: Integer,
|
|
278
|
-
expires_at: Integer?,
|
|
279
|
-
failed_at: Integer?,
|
|
280
|
-
incomplete_details: OpenAI::Beta::Threads::Run::IncompleteDetails?,
|
|
281
|
-
instructions: String,
|
|
282
|
-
last_error: OpenAI::Beta::Threads::Run::LastError?,
|
|
283
|
-
max_completion_tokens: Integer?,
|
|
284
|
-
max_prompt_tokens: Integer?,
|
|
285
|
-
metadata: OpenAI::Models::metadata?,
|
|
286
|
-
model: String,
|
|
287
|
-
parallel_tool_calls: bool,
|
|
288
|
-
required_action: OpenAI::Beta::Threads::Run::RequiredAction?,
|
|
289
|
-
response_format: OpenAI::Models::Beta::assistant_response_format_option?,
|
|
290
|
-
started_at: Integer?,
|
|
291
|
-
status: OpenAI::Models::Beta::Threads::run_status,
|
|
292
|
-
thread_id: String,
|
|
293
|
-
tool_choice: OpenAI::Models::Beta::assistant_tool_choice_option?,
|
|
294
|
-
tools: ::Array[OpenAI::Models::Beta::assistant_tool],
|
|
295
|
-
truncation_strategy: OpenAI::Beta::Threads::Run::TruncationStrategy?,
|
|
296
|
-
usage: OpenAI::Beta::Threads::Run::Usage?,
|
|
297
|
-
?temperature: Float?,
|
|
298
|
-
?top_p: Float?,
|
|
299
|
-
?object: :"thread.run"
|
|
300
|
-
) -> void
|
|
301
|
-
|
|
302
|
-
def to_hash: -> {
|
|
303
|
-
id: String,
|
|
304
|
-
assistant_id: String,
|
|
305
|
-
cancelled_at: Integer?,
|
|
306
|
-
completed_at: Integer?,
|
|
307
|
-
created_at: Integer,
|
|
308
|
-
expires_at: Integer?,
|
|
309
|
-
failed_at: Integer?,
|
|
310
|
-
incomplete_details: OpenAI::Beta::Threads::Run::IncompleteDetails?,
|
|
311
|
-
instructions: String,
|
|
312
|
-
last_error: OpenAI::Beta::Threads::Run::LastError?,
|
|
313
|
-
max_completion_tokens: Integer?,
|
|
314
|
-
max_prompt_tokens: Integer?,
|
|
315
|
-
metadata: OpenAI::Models::metadata?,
|
|
316
|
-
model: String,
|
|
317
|
-
?object: :"thread.run",
|
|
318
|
-
parallel_tool_calls: bool,
|
|
319
|
-
required_action: OpenAI::Beta::Threads::Run::RequiredAction?,
|
|
320
|
-
response_format: OpenAI::Models::Beta::assistant_response_format_option?,
|
|
321
|
-
started_at: Integer?,
|
|
322
|
-
status: OpenAI::Models::Beta::Threads::run_status,
|
|
323
|
-
thread_id: String,
|
|
324
|
-
tool_choice: OpenAI::Models::Beta::assistant_tool_choice_option?,
|
|
325
|
-
tools: ::Array[OpenAI::Models::Beta::assistant_tool],
|
|
326
|
-
truncation_strategy: OpenAI::Beta::Threads::Run::TruncationStrategy?,
|
|
327
|
-
usage: OpenAI::Beta::Threads::Run::Usage?,
|
|
328
|
-
?temperature: Float?,
|
|
329
|
-
?top_p: Float?
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
type incomplete_details =
|
|
333
|
-
{
|
|
334
|
-
?reason: OpenAI::Models::Beta::Threads::Run::IncompleteDetails::reason
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
class IncompleteDetails < OpenAI::Internal::Type::BaseModel
|
|
338
|
-
# The reason why the run is incomplete. This will point to which specific token
|
|
339
|
-
# limit was reached over the course of the run.
|
|
340
|
-
attr_reader reason: OpenAI::Models::Beta::Threads::Run::IncompleteDetails::reason?
|
|
341
|
-
|
|
342
|
-
# The reason why the run is incomplete. This will point to which specific token
|
|
343
|
-
# limit was reached over the course of the run.
|
|
344
|
-
def reason=: (
|
|
345
|
-
OpenAI::Models::Beta::Threads::Run::IncompleteDetails::reason
|
|
346
|
-
) -> OpenAI::Models::Beta::Threads::Run::IncompleteDetails::reason
|
|
347
|
-
|
|
348
|
-
# @param reason
|
|
349
|
-
# The reason why the run is incomplete. This will point to which specific token
|
|
350
|
-
# limit was reached over the course of the run.
|
|
351
|
-
def initialize: (
|
|
352
|
-
?reason: OpenAI::Models::Beta::Threads::Run::IncompleteDetails::reason
|
|
353
|
-
) -> void
|
|
354
|
-
|
|
355
|
-
def to_hash: -> {
|
|
356
|
-
?reason: OpenAI::Models::Beta::Threads::Run::IncompleteDetails::reason
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
type reason = :max_completion_tokens | :max_prompt_tokens
|
|
360
|
-
|
|
361
|
-
module Reason
|
|
362
|
-
extend OpenAI::Internal::Type::Enum
|
|
363
|
-
|
|
364
|
-
MAX_COMPLETION_TOKENS: :max_completion_tokens
|
|
365
|
-
MAX_PROMPT_TOKENS: :max_prompt_tokens
|
|
366
|
-
|
|
367
|
-
def self?.values: -> ::Array[OpenAI::Models::Beta::Threads::Run::IncompleteDetails::reason]
|
|
368
|
-
end
|
|
369
|
-
end
|
|
370
|
-
|
|
371
|
-
type last_error =
|
|
372
|
-
{
|
|
373
|
-
code: OpenAI::Models::Beta::Threads::Run::LastError::code,
|
|
374
|
-
message: String
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
class LastError < OpenAI::Internal::Type::BaseModel
|
|
378
|
-
# One of `server_error`, `rate_limit_exceeded`, or `invalid_prompt`.
|
|
379
|
-
attr_accessor code: OpenAI::Models::Beta::Threads::Run::LastError::code
|
|
380
|
-
|
|
381
|
-
# A human-readable description of the error.
|
|
382
|
-
attr_accessor message: String
|
|
383
|
-
|
|
384
|
-
# @param code
|
|
385
|
-
# One of `server_error`, `rate_limit_exceeded`, or `invalid_prompt`.
|
|
386
|
-
# @param message
|
|
387
|
-
# A human-readable description of the error.
|
|
388
|
-
def initialize: (
|
|
389
|
-
code: OpenAI::Models::Beta::Threads::Run::LastError::code,
|
|
390
|
-
message: String
|
|
391
|
-
) -> void
|
|
392
|
-
|
|
393
|
-
def to_hash: -> {
|
|
394
|
-
code: OpenAI::Models::Beta::Threads::Run::LastError::code,
|
|
395
|
-
message: String
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
type code = :server_error | :rate_limit_exceeded | :invalid_prompt
|
|
399
|
-
|
|
400
|
-
module Code
|
|
401
|
-
extend OpenAI::Internal::Type::Enum
|
|
402
|
-
|
|
403
|
-
SERVER_ERROR: :server_error
|
|
404
|
-
RATE_LIMIT_EXCEEDED: :rate_limit_exceeded
|
|
405
|
-
INVALID_PROMPT: :invalid_prompt
|
|
406
|
-
|
|
407
|
-
def self?.values: -> ::Array[OpenAI::Models::Beta::Threads::Run::LastError::code]
|
|
408
|
-
end
|
|
409
|
-
end
|
|
410
|
-
|
|
411
|
-
type required_action =
|
|
412
|
-
{
|
|
413
|
-
submit_tool_outputs: OpenAI::Beta::Threads::Run::RequiredAction::SubmitToolOutputs,
|
|
414
|
-
?type: :submit_tool_outputs
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
class RequiredAction < OpenAI::Internal::Type::BaseModel
|
|
418
|
-
# Details on the tool outputs needed for this run to continue.
|
|
419
|
-
attr_accessor submit_tool_outputs: OpenAI::Beta::Threads::Run::RequiredAction::SubmitToolOutputs
|
|
420
|
-
|
|
421
|
-
# For now, this is always `submit_tool_outputs`.
|
|
422
|
-
attr_accessor type: :submit_tool_outputs
|
|
423
|
-
|
|
424
|
-
# @param submit_tool_outputs
|
|
425
|
-
# Details on the tool outputs needed for this run to continue.
|
|
426
|
-
# @param type
|
|
427
|
-
# For now, this is always `submit_tool_outputs`.
|
|
428
|
-
def initialize: (
|
|
429
|
-
submit_tool_outputs: OpenAI::Beta::Threads::Run::RequiredAction::SubmitToolOutputs,
|
|
430
|
-
?type: :submit_tool_outputs
|
|
431
|
-
) -> void
|
|
432
|
-
|
|
433
|
-
def to_hash: -> {
|
|
434
|
-
submit_tool_outputs: OpenAI::Beta::Threads::Run::RequiredAction::SubmitToolOutputs,
|
|
435
|
-
?type: :submit_tool_outputs
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
type submit_tool_outputs =
|
|
439
|
-
{
|
|
440
|
-
tool_calls: ::Array[OpenAI::Beta::Threads::RequiredActionFunctionToolCall]
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
class SubmitToolOutputs < OpenAI::Internal::Type::BaseModel
|
|
444
|
-
# A list of the relevant tool calls.
|
|
445
|
-
attr_accessor tool_calls: ::Array[OpenAI::Beta::Threads::RequiredActionFunctionToolCall]
|
|
446
|
-
|
|
447
|
-
# @param tool_calls
|
|
448
|
-
# A list of the relevant tool calls.
|
|
449
|
-
def initialize: (
|
|
450
|
-
tool_calls: ::Array[OpenAI::Beta::Threads::RequiredActionFunctionToolCall]
|
|
451
|
-
) -> void
|
|
452
|
-
|
|
453
|
-
def to_hash: -> {
|
|
454
|
-
tool_calls: ::Array[OpenAI::Beta::Threads::RequiredActionFunctionToolCall]
|
|
455
|
-
}
|
|
456
|
-
end
|
|
457
|
-
end
|
|
458
|
-
|
|
459
|
-
type truncation_strategy =
|
|
460
|
-
{
|
|
461
|
-
type: OpenAI::Models::Beta::Threads::Run::TruncationStrategy::type_,
|
|
462
|
-
?last_messages: Integer?
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
class TruncationStrategy < OpenAI::Internal::Type::BaseModel
|
|
466
|
-
# The truncation strategy to use for the thread. The default is `auto`. If set to
|
|
467
|
-
# `last_messages`, the thread will be truncated to the n most recent messages in
|
|
468
|
-
# the thread. When set to `auto`, messages in the middle of the thread will be
|
|
469
|
-
# dropped to fit the context length of the model, `max_prompt_tokens`.
|
|
470
|
-
attr_accessor type: OpenAI::Models::Beta::Threads::Run::TruncationStrategy::type_
|
|
471
|
-
|
|
472
|
-
# The number of most recent messages from the thread when constructing the context
|
|
473
|
-
# for the run.
|
|
474
|
-
attr_accessor last_messages: Integer?
|
|
475
|
-
|
|
476
|
-
# @param type
|
|
477
|
-
# The truncation strategy to use for the thread. The default is `auto`. If set to
|
|
478
|
-
# `last_messages`, the thread will be truncated to the n most recent messages in
|
|
479
|
-
# the thread. When set to `auto`, messages in the middle of the thread will be
|
|
480
|
-
# dropped to fit the context length of the model, `max_prompt_tokens`.
|
|
481
|
-
# @param last_messages
|
|
482
|
-
# The number of most recent messages from the thread when constructing the context
|
|
483
|
-
# for the run.
|
|
484
|
-
def initialize: (
|
|
485
|
-
type: OpenAI::Models::Beta::Threads::Run::TruncationStrategy::type_,
|
|
486
|
-
?last_messages: Integer?
|
|
487
|
-
) -> void
|
|
488
|
-
|
|
489
|
-
def to_hash: -> {
|
|
490
|
-
type: OpenAI::Models::Beta::Threads::Run::TruncationStrategy::type_,
|
|
491
|
-
?last_messages: Integer?
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
type type_ = :auto | :last_messages
|
|
495
|
-
|
|
496
|
-
module Type
|
|
497
|
-
extend OpenAI::Internal::Type::Enum
|
|
498
|
-
|
|
499
|
-
AUTO: :auto
|
|
500
|
-
LAST_MESSAGES: :last_messages
|
|
501
|
-
|
|
502
|
-
def self?.values: -> ::Array[OpenAI::Models::Beta::Threads::Run::TruncationStrategy::type_]
|
|
503
|
-
end
|
|
504
|
-
end
|
|
505
|
-
|
|
506
|
-
type usage =
|
|
507
|
-
{
|
|
508
|
-
completion_tokens: Integer,
|
|
509
|
-
prompt_tokens: Integer,
|
|
510
|
-
total_tokens: Integer
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
class Usage < OpenAI::Internal::Type::BaseModel
|
|
514
|
-
# Number of completion tokens used over the course of the run.
|
|
515
|
-
attr_accessor completion_tokens: Integer
|
|
516
|
-
|
|
517
|
-
# Number of prompt tokens used over the course of the run.
|
|
518
|
-
attr_accessor prompt_tokens: Integer
|
|
519
|
-
|
|
520
|
-
# Total number of tokens used (prompt + completion).
|
|
521
|
-
attr_accessor total_tokens: Integer
|
|
522
|
-
|
|
523
|
-
# @param completion_tokens
|
|
524
|
-
# Number of completion tokens used over the course of the run.
|
|
525
|
-
# @param prompt_tokens
|
|
526
|
-
# Number of prompt tokens used over the course of the run.
|
|
527
|
-
# @param total_tokens
|
|
528
|
-
# Total number of tokens used (prompt + completion).
|
|
529
|
-
def initialize: (
|
|
530
|
-
completion_tokens: Integer,
|
|
531
|
-
prompt_tokens: Integer,
|
|
532
|
-
total_tokens: Integer
|
|
533
|
-
) -> void
|
|
534
|
-
|
|
535
|
-
def to_hash: -> {
|
|
536
|
-
completion_tokens: Integer,
|
|
537
|
-
prompt_tokens: Integer,
|
|
538
|
-
total_tokens: Integer
|
|
539
|
-
}
|
|
540
|
-
end
|
|
541
|
-
end
|
|
542
|
-
end
|
|
543
|
-
end
|
|
544
|
-
end
|
|
545
|
-
end
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
type run_cancel_params =
|
|
6
|
-
{
|
|
7
|
-
thread_id: String,
|
|
8
|
-
run_id: String,
|
|
9
|
-
?request_options: OpenAI::request_opts
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
class RunCancelParams < OpenAI::Internal::Type::BaseModel
|
|
13
|
-
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
14
|
-
include OpenAI::Internal::Type::RequestParameters
|
|
15
|
-
|
|
16
|
-
attr_accessor thread_id: String
|
|
17
|
-
|
|
18
|
-
attr_accessor run_id: String
|
|
19
|
-
|
|
20
|
-
def initialize: (
|
|
21
|
-
thread_id: String,
|
|
22
|
-
run_id: String,
|
|
23
|
-
?request_options: OpenAI::request_opts
|
|
24
|
-
) -> void
|
|
25
|
-
|
|
26
|
-
def to_hash: -> {
|
|
27
|
-
thread_id: String,
|
|
28
|
-
run_id: String,
|
|
29
|
-
?request_options: OpenAI::RequestOptions
|
|
30
|
-
}
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
end
|