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,167 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
type message_create_params =
|
|
6
|
-
{
|
|
7
|
-
thread_id: String,
|
|
8
|
-
content: OpenAI::Models::Beta::Threads::MessageCreateParams::content,
|
|
9
|
-
role: OpenAI::Models::Beta::Threads::MessageCreateParams::role,
|
|
10
|
-
?attachments: ::Array[OpenAI::Beta::Threads::MessageCreateParams::Attachment]?,
|
|
11
|
-
?metadata: OpenAI::Models::metadata?,
|
|
12
|
-
?request_options: OpenAI::request_opts
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
class MessageCreateParams < OpenAI::Internal::Type::BaseModel
|
|
16
|
-
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
17
|
-
include OpenAI::Internal::Type::RequestParameters
|
|
18
|
-
|
|
19
|
-
attr_accessor thread_id: String
|
|
20
|
-
|
|
21
|
-
# The text contents of the message.
|
|
22
|
-
attr_accessor content: OpenAI::Models::Beta::Threads::MessageCreateParams::content
|
|
23
|
-
|
|
24
|
-
# The role of the entity that is creating the message. Allowed values include:
|
|
25
|
-
#
|
|
26
|
-
# - `user`: Indicates the message is sent by an actual user and should be used in
|
|
27
|
-
# most cases to represent user-generated messages.
|
|
28
|
-
# - `assistant`: Indicates the message is generated by the assistant. Use this
|
|
29
|
-
# value to insert messages from the assistant into the conversation.
|
|
30
|
-
attr_accessor role: OpenAI::Models::Beta::Threads::MessageCreateParams::role
|
|
31
|
-
|
|
32
|
-
# A list of files attached to the message, and the tools they should be added to.
|
|
33
|
-
attr_accessor attachments: ::Array[OpenAI::Beta::Threads::MessageCreateParams::Attachment]?
|
|
34
|
-
|
|
35
|
-
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
36
|
-
# for storing additional information about the object in a structured format, and
|
|
37
|
-
# querying for objects via API or the dashboard.
|
|
38
|
-
#
|
|
39
|
-
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
40
|
-
# a maximum length of 512 characters.
|
|
41
|
-
attr_accessor metadata: OpenAI::Models::metadata?
|
|
42
|
-
|
|
43
|
-
# @param content
|
|
44
|
-
# The text contents of the message.
|
|
45
|
-
# @param role
|
|
46
|
-
# The role of the entity that is creating the message. Allowed values include:
|
|
47
|
-
#
|
|
48
|
-
# - `user`: Indicates the message is sent by an actual user and should be used in
|
|
49
|
-
# most cases to represent user-generated messages.
|
|
50
|
-
# - `assistant`: Indicates the message is generated by the assistant. Use this
|
|
51
|
-
# value to insert messages from the assistant into the conversation.
|
|
52
|
-
# @param attachments
|
|
53
|
-
# A list of files attached to the message, and the tools they should be added to.
|
|
54
|
-
# @param metadata
|
|
55
|
-
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
56
|
-
# for storing additional information about the object in a structured format, and
|
|
57
|
-
# querying for objects via API or the dashboard.
|
|
58
|
-
#
|
|
59
|
-
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
60
|
-
# a maximum length of 512 characters.
|
|
61
|
-
def initialize: (
|
|
62
|
-
thread_id: String,
|
|
63
|
-
content: OpenAI::Models::Beta::Threads::MessageCreateParams::content,
|
|
64
|
-
role: OpenAI::Models::Beta::Threads::MessageCreateParams::role,
|
|
65
|
-
?attachments: ::Array[OpenAI::Beta::Threads::MessageCreateParams::Attachment]?,
|
|
66
|
-
?metadata: OpenAI::Models::metadata?,
|
|
67
|
-
?request_options: OpenAI::request_opts
|
|
68
|
-
) -> void
|
|
69
|
-
|
|
70
|
-
def to_hash: -> {
|
|
71
|
-
thread_id: String,
|
|
72
|
-
content: OpenAI::Models::Beta::Threads::MessageCreateParams::content,
|
|
73
|
-
role: OpenAI::Models::Beta::Threads::MessageCreateParams::role,
|
|
74
|
-
?attachments: ::Array[OpenAI::Beta::Threads::MessageCreateParams::Attachment]?,
|
|
75
|
-
?metadata: OpenAI::Models::metadata?,
|
|
76
|
-
?request_options: OpenAI::RequestOptions
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
type content =
|
|
80
|
-
String
|
|
81
|
-
| ::Array[OpenAI::Models::Beta::Threads::message_content_part_param]
|
|
82
|
-
|
|
83
|
-
module Content
|
|
84
|
-
extend OpenAI::Internal::Type::Union
|
|
85
|
-
|
|
86
|
-
def self?.variants: -> ::Array[OpenAI::Models::Beta::Threads::MessageCreateParams::content]
|
|
87
|
-
|
|
88
|
-
MessageContentPartParamArray: OpenAI::Internal::Type::Converter
|
|
89
|
-
end
|
|
90
|
-
|
|
91
|
-
type role = :user | :assistant
|
|
92
|
-
|
|
93
|
-
module Role
|
|
94
|
-
extend OpenAI::Internal::Type::Enum
|
|
95
|
-
|
|
96
|
-
USER: :user
|
|
97
|
-
ASSISTANT: :assistant
|
|
98
|
-
|
|
99
|
-
def self?.values: -> ::Array[OpenAI::Models::Beta::Threads::MessageCreateParams::role]
|
|
100
|
-
end
|
|
101
|
-
|
|
102
|
-
type attachment =
|
|
103
|
-
{
|
|
104
|
-
?file_id: String,
|
|
105
|
-
?tools: ::Array[OpenAI::Models::Beta::Threads::MessageCreateParams::Attachment::tool]
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
class Attachment < OpenAI::Internal::Type::BaseModel
|
|
109
|
-
# The ID of the file to attach to the message.
|
|
110
|
-
attr_reader file_id: String?
|
|
111
|
-
|
|
112
|
-
# The ID of the file to attach to the message.
|
|
113
|
-
def file_id=: (String) -> String
|
|
114
|
-
|
|
115
|
-
# The tools to add this file to.
|
|
116
|
-
attr_reader tools: ::Array[OpenAI::Models::Beta::Threads::MessageCreateParams::Attachment::tool]?
|
|
117
|
-
|
|
118
|
-
# The tools to add this file to.
|
|
119
|
-
def tools=: (
|
|
120
|
-
::Array[OpenAI::Models::Beta::Threads::MessageCreateParams::Attachment::tool
|
|
121
|
-
| { type: :file_search }]
|
|
122
|
-
) -> ::Array[(OpenAI::Models::Beta::Threads::MessageCreateParams::Attachment::tool
|
|
123
|
-
| { type: :file_search })]
|
|
124
|
-
|
|
125
|
-
# @param file_id
|
|
126
|
-
# The ID of the file to attach to the message.
|
|
127
|
-
# @param tools
|
|
128
|
-
# The tools to add this file to.
|
|
129
|
-
def initialize: (
|
|
130
|
-
?file_id: String,
|
|
131
|
-
?tools: ::Array[OpenAI::Models::Beta::Threads::MessageCreateParams::Attachment::tool
|
|
132
|
-
| { type: :file_search }]
|
|
133
|
-
) -> void
|
|
134
|
-
|
|
135
|
-
def to_hash: -> {
|
|
136
|
-
?file_id: String,
|
|
137
|
-
?tools: ::Array[OpenAI::Models::Beta::Threads::MessageCreateParams::Attachment::tool]
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
type tool =
|
|
141
|
-
OpenAI::Beta::CodeInterpreterTool
|
|
142
|
-
| OpenAI::Beta::Threads::MessageCreateParams::Attachment::Tool::FileSearch
|
|
143
|
-
|
|
144
|
-
module Tool
|
|
145
|
-
extend OpenAI::Internal::Type::Union
|
|
146
|
-
|
|
147
|
-
type file_search = { ?type: :file_search }
|
|
148
|
-
|
|
149
|
-
class FileSearch < OpenAI::Internal::Type::BaseModel
|
|
150
|
-
# The type of tool being defined: `file_search`
|
|
151
|
-
attr_accessor type: :file_search
|
|
152
|
-
|
|
153
|
-
# @param type
|
|
154
|
-
# The type of tool being defined: `file_search`
|
|
155
|
-
def initialize: (?type: :file_search) -> void
|
|
156
|
-
|
|
157
|
-
def to_hash: -> { ?type: :file_search }
|
|
158
|
-
end
|
|
159
|
-
|
|
160
|
-
def self?.variants: -> ::Array[OpenAI::Models::Beta::Threads::MessageCreateParams::Attachment::tool]
|
|
161
|
-
end
|
|
162
|
-
end
|
|
163
|
-
end
|
|
164
|
-
end
|
|
165
|
-
end
|
|
166
|
-
end
|
|
167
|
-
end
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
type message_delete_params =
|
|
6
|
-
{
|
|
7
|
-
thread_id: String,
|
|
8
|
-
message_id: String,
|
|
9
|
-
?request_options: OpenAI::request_opts
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
class MessageDeleteParams < 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 message_id: String
|
|
19
|
-
|
|
20
|
-
def initialize: (
|
|
21
|
-
thread_id: String,
|
|
22
|
-
message_id: String,
|
|
23
|
-
?request_options: OpenAI::request_opts
|
|
24
|
-
) -> void
|
|
25
|
-
|
|
26
|
-
def to_hash: -> {
|
|
27
|
-
thread_id: String,
|
|
28
|
-
message_id: String,
|
|
29
|
-
?request_options: OpenAI::RequestOptions
|
|
30
|
-
}
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
end
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
type message_deleted =
|
|
6
|
-
{ id: String, deleted: bool, ?object: :"thread.message.deleted" }
|
|
7
|
-
|
|
8
|
-
class MessageDeleted < OpenAI::Internal::Type::BaseModel
|
|
9
|
-
attr_accessor id: String
|
|
10
|
-
|
|
11
|
-
attr_accessor deleted: bool
|
|
12
|
-
|
|
13
|
-
attr_accessor object: :"thread.message.deleted"
|
|
14
|
-
|
|
15
|
-
def initialize: (
|
|
16
|
-
id: String,
|
|
17
|
-
deleted: bool,
|
|
18
|
-
?object: :"thread.message.deleted"
|
|
19
|
-
) -> void
|
|
20
|
-
|
|
21
|
-
def to_hash: -> {
|
|
22
|
-
id: String,
|
|
23
|
-
deleted: bool,
|
|
24
|
-
?object: :"thread.message.deleted"
|
|
25
|
-
}
|
|
26
|
-
end
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
end
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
type message_delta =
|
|
6
|
-
{
|
|
7
|
-
?content: ::Array[OpenAI::Models::Beta::Threads::message_content_delta],
|
|
8
|
-
?role: OpenAI::Models::Beta::Threads::MessageDelta::role
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
class MessageDelta < OpenAI::Internal::Type::BaseModel
|
|
12
|
-
# The content of the message in array of text and/or images.
|
|
13
|
-
attr_reader content: ::Array[OpenAI::Models::Beta::Threads::message_content_delta]?
|
|
14
|
-
|
|
15
|
-
# The content of the message in array of text and/or images.
|
|
16
|
-
def content=: (
|
|
17
|
-
::Array[OpenAI::Models::Beta::Threads::message_content_delta]
|
|
18
|
-
) -> ::Array[OpenAI::Models::Beta::Threads::message_content_delta]
|
|
19
|
-
|
|
20
|
-
# The entity that produced the message. One of `user` or `assistant`.
|
|
21
|
-
attr_reader role: OpenAI::Models::Beta::Threads::MessageDelta::role?
|
|
22
|
-
|
|
23
|
-
# The entity that produced the message. One of `user` or `assistant`.
|
|
24
|
-
def role=: (
|
|
25
|
-
OpenAI::Models::Beta::Threads::MessageDelta::role
|
|
26
|
-
) -> OpenAI::Models::Beta::Threads::MessageDelta::role
|
|
27
|
-
|
|
28
|
-
# @param content
|
|
29
|
-
# The content of the message in array of text and/or images.
|
|
30
|
-
# @param role
|
|
31
|
-
# The entity that produced the message. One of `user` or `assistant`.
|
|
32
|
-
def initialize: (
|
|
33
|
-
?content: ::Array[OpenAI::Models::Beta::Threads::message_content_delta],
|
|
34
|
-
?role: OpenAI::Models::Beta::Threads::MessageDelta::role
|
|
35
|
-
) -> void
|
|
36
|
-
|
|
37
|
-
def to_hash: -> {
|
|
38
|
-
?content: ::Array[OpenAI::Models::Beta::Threads::message_content_delta],
|
|
39
|
-
?role: OpenAI::Models::Beta::Threads::MessageDelta::role
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
type role = :user | :assistant
|
|
43
|
-
|
|
44
|
-
module Role
|
|
45
|
-
extend OpenAI::Internal::Type::Enum
|
|
46
|
-
|
|
47
|
-
USER: :user
|
|
48
|
-
ASSISTANT: :assistant
|
|
49
|
-
|
|
50
|
-
def self?.values: -> ::Array[OpenAI::Models::Beta::Threads::MessageDelta::role]
|
|
51
|
-
end
|
|
52
|
-
end
|
|
53
|
-
end
|
|
54
|
-
end
|
|
55
|
-
end
|
|
56
|
-
end
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
type message_delta_event =
|
|
6
|
-
{
|
|
7
|
-
id: String,
|
|
8
|
-
delta: OpenAI::Beta::Threads::MessageDelta,
|
|
9
|
-
?object: :"thread.message.delta"
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
class MessageDeltaEvent < OpenAI::Internal::Type::BaseModel
|
|
13
|
-
# The identifier of the message, which can be referenced in API endpoints.
|
|
14
|
-
attr_accessor id: String
|
|
15
|
-
|
|
16
|
-
# The delta containing the fields that have changed on the Message.
|
|
17
|
-
attr_accessor delta: OpenAI::Beta::Threads::MessageDelta
|
|
18
|
-
|
|
19
|
-
# The object type, which is always `thread.message.delta`.
|
|
20
|
-
attr_accessor object: :"thread.message.delta"
|
|
21
|
-
|
|
22
|
-
# @param id
|
|
23
|
-
# The identifier of the message, which can be referenced in API endpoints.
|
|
24
|
-
# @param delta
|
|
25
|
-
# The delta containing the fields that have changed on the Message.
|
|
26
|
-
# @param object
|
|
27
|
-
# The object type, which is always `thread.message.delta`.
|
|
28
|
-
def initialize: (
|
|
29
|
-
id: String,
|
|
30
|
-
delta: OpenAI::Beta::Threads::MessageDelta,
|
|
31
|
-
?object: :"thread.message.delta"
|
|
32
|
-
) -> void
|
|
33
|
-
|
|
34
|
-
def to_hash: -> {
|
|
35
|
-
id: String,
|
|
36
|
-
delta: OpenAI::Beta::Threads::MessageDelta,
|
|
37
|
-
?object: :"thread.message.delta"
|
|
38
|
-
}
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
end
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
type message_list_params =
|
|
6
|
-
{
|
|
7
|
-
thread_id: String,
|
|
8
|
-
?after: String,
|
|
9
|
-
?before: String,
|
|
10
|
-
?limit: Integer,
|
|
11
|
-
?order: OpenAI::Models::Beta::Threads::MessageListParams::order,
|
|
12
|
-
?run_id: String,
|
|
13
|
-
?request_options: OpenAI::request_opts
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
class MessageListParams < OpenAI::Internal::Type::BaseModel
|
|
17
|
-
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
18
|
-
include OpenAI::Internal::Type::RequestParameters
|
|
19
|
-
|
|
20
|
-
attr_accessor thread_id: String
|
|
21
|
-
|
|
22
|
-
# A cursor for use in pagination. `after` is an object ID that defines your place
|
|
23
|
-
# in the list. For instance, if you make a list request and receive 100 objects,
|
|
24
|
-
# ending with obj_foo, your subsequent call can include after=obj_foo in order to
|
|
25
|
-
# fetch the next page of the list.
|
|
26
|
-
attr_reader after: String?
|
|
27
|
-
|
|
28
|
-
# A cursor for use in pagination. `after` is an object ID that defines your place
|
|
29
|
-
# in the list. For instance, if you make a list request and receive 100 objects,
|
|
30
|
-
# ending with obj_foo, your subsequent call can include after=obj_foo in order to
|
|
31
|
-
# fetch the next page of the list.
|
|
32
|
-
def after=: (String) -> String
|
|
33
|
-
|
|
34
|
-
# A cursor for use in pagination. `before` is an object ID that defines your place
|
|
35
|
-
# in the list. For instance, if you make a list request and receive 100 objects,
|
|
36
|
-
# starting with obj_foo, your subsequent call can include before=obj_foo in order
|
|
37
|
-
# to fetch the previous page of the list.
|
|
38
|
-
attr_reader before: String?
|
|
39
|
-
|
|
40
|
-
# A cursor for use in pagination. `before` is an object ID that defines your place
|
|
41
|
-
# in the list. For instance, if you make a list request and receive 100 objects,
|
|
42
|
-
# starting with obj_foo, your subsequent call can include before=obj_foo in order
|
|
43
|
-
# to fetch the previous page of the list.
|
|
44
|
-
def before=: (String) -> String
|
|
45
|
-
|
|
46
|
-
# A limit on the number of objects to be returned. Limit can range between 1 and
|
|
47
|
-
# 100, and the default is 20.
|
|
48
|
-
attr_reader limit: Integer?
|
|
49
|
-
|
|
50
|
-
# A limit on the number of objects to be returned. Limit can range between 1 and
|
|
51
|
-
# 100, and the default is 20.
|
|
52
|
-
def limit=: (Integer) -> Integer
|
|
53
|
-
|
|
54
|
-
# Sort order by the `created_at` timestamp of the objects. `asc` for ascending
|
|
55
|
-
# order and `desc` for descending order.
|
|
56
|
-
attr_reader order: OpenAI::Models::Beta::Threads::MessageListParams::order?
|
|
57
|
-
|
|
58
|
-
# Sort order by the `created_at` timestamp of the objects. `asc` for ascending
|
|
59
|
-
# order and `desc` for descending order.
|
|
60
|
-
def order=: (
|
|
61
|
-
OpenAI::Models::Beta::Threads::MessageListParams::order
|
|
62
|
-
) -> OpenAI::Models::Beta::Threads::MessageListParams::order
|
|
63
|
-
|
|
64
|
-
# Filter messages by the run ID that generated them.
|
|
65
|
-
attr_reader run_id: String?
|
|
66
|
-
|
|
67
|
-
# Filter messages by the run ID that generated them.
|
|
68
|
-
def run_id=: (String) -> String
|
|
69
|
-
|
|
70
|
-
# @param after
|
|
71
|
-
# A cursor for use in pagination. `after` is an object ID that defines your place
|
|
72
|
-
# in the list. For instance, if you make a list request and receive 100 objects,
|
|
73
|
-
# ending with obj_foo, your subsequent call can include after=obj_foo in order to
|
|
74
|
-
# fetch the next page of the list.
|
|
75
|
-
# @param before
|
|
76
|
-
# A cursor for use in pagination. `before` 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
|
-
# starting with obj_foo, your subsequent call can include before=obj_foo in order
|
|
79
|
-
# to fetch the previous page of the list.
|
|
80
|
-
# @param limit
|
|
81
|
-
# A limit on the number of objects to be returned. Limit can range between 1 and
|
|
82
|
-
# 100, and the default is 20.
|
|
83
|
-
# @param order
|
|
84
|
-
# Sort order by the `created_at` timestamp of the objects. `asc` for ascending
|
|
85
|
-
# order and `desc` for descending order.
|
|
86
|
-
# @param run_id
|
|
87
|
-
# Filter messages by the run ID that generated them.
|
|
88
|
-
def initialize: (
|
|
89
|
-
thread_id: String,
|
|
90
|
-
?after: String,
|
|
91
|
-
?before: String,
|
|
92
|
-
?limit: Integer,
|
|
93
|
-
?order: OpenAI::Models::Beta::Threads::MessageListParams::order,
|
|
94
|
-
?run_id: String,
|
|
95
|
-
?request_options: OpenAI::request_opts
|
|
96
|
-
) -> void
|
|
97
|
-
|
|
98
|
-
def to_hash: -> {
|
|
99
|
-
thread_id: String,
|
|
100
|
-
?after: String,
|
|
101
|
-
?before: String,
|
|
102
|
-
?limit: Integer,
|
|
103
|
-
?order: OpenAI::Models::Beta::Threads::MessageListParams::order,
|
|
104
|
-
?run_id: String,
|
|
105
|
-
?request_options: OpenAI::RequestOptions
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
type order = :asc | :desc
|
|
109
|
-
|
|
110
|
-
module Order
|
|
111
|
-
extend OpenAI::Internal::Type::Enum
|
|
112
|
-
|
|
113
|
-
ASC: :asc
|
|
114
|
-
DESC: :desc
|
|
115
|
-
|
|
116
|
-
def self?.values: -> ::Array[OpenAI::Models::Beta::Threads::MessageListParams::order]
|
|
117
|
-
end
|
|
118
|
-
end
|
|
119
|
-
end
|
|
120
|
-
end
|
|
121
|
-
end
|
|
122
|
-
end
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
type message_retrieve_params =
|
|
6
|
-
{
|
|
7
|
-
thread_id: String,
|
|
8
|
-
message_id: String,
|
|
9
|
-
?request_options: OpenAI::request_opts
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
class MessageRetrieveParams < 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 message_id: String
|
|
19
|
-
|
|
20
|
-
def initialize: (
|
|
21
|
-
thread_id: String,
|
|
22
|
-
message_id: String,
|
|
23
|
-
?request_options: OpenAI::request_opts
|
|
24
|
-
) -> void
|
|
25
|
-
|
|
26
|
-
def to_hash: -> {
|
|
27
|
-
thread_id: String,
|
|
28
|
-
message_id: String,
|
|
29
|
-
?request_options: OpenAI::RequestOptions
|
|
30
|
-
}
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
end
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
type message_update_params =
|
|
6
|
-
{
|
|
7
|
-
thread_id: String,
|
|
8
|
-
message_id: String,
|
|
9
|
-
?metadata: OpenAI::Models::metadata?,
|
|
10
|
-
?request_options: OpenAI::request_opts
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
class MessageUpdateParams < OpenAI::Internal::Type::BaseModel
|
|
14
|
-
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
15
|
-
include OpenAI::Internal::Type::RequestParameters
|
|
16
|
-
|
|
17
|
-
attr_accessor thread_id: String
|
|
18
|
-
|
|
19
|
-
attr_accessor message_id: String
|
|
20
|
-
|
|
21
|
-
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
22
|
-
# for storing additional information about the object in a structured format, and
|
|
23
|
-
# querying for objects via API or the dashboard.
|
|
24
|
-
#
|
|
25
|
-
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
26
|
-
# a maximum length of 512 characters.
|
|
27
|
-
attr_accessor metadata: OpenAI::Models::metadata?
|
|
28
|
-
|
|
29
|
-
# @param metadata
|
|
30
|
-
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
31
|
-
# for storing additional information about the object in a structured format, and
|
|
32
|
-
# querying for objects via API or the dashboard.
|
|
33
|
-
#
|
|
34
|
-
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
35
|
-
# a maximum length of 512 characters.
|
|
36
|
-
def initialize: (
|
|
37
|
-
thread_id: String,
|
|
38
|
-
message_id: String,
|
|
39
|
-
?metadata: OpenAI::Models::metadata?,
|
|
40
|
-
?request_options: OpenAI::request_opts
|
|
41
|
-
) -> void
|
|
42
|
-
|
|
43
|
-
def to_hash: -> {
|
|
44
|
-
thread_id: String,
|
|
45
|
-
message_id: String,
|
|
46
|
-
?metadata: OpenAI::Models::metadata?,
|
|
47
|
-
?request_options: OpenAI::RequestOptions
|
|
48
|
-
}
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
end
|
|
52
|
-
end
|
|
53
|
-
end
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
type refusal_content_block = { refusal: String, ?type: :refusal }
|
|
6
|
-
|
|
7
|
-
class RefusalContentBlock < OpenAI::Internal::Type::BaseModel
|
|
8
|
-
attr_accessor refusal: String
|
|
9
|
-
|
|
10
|
-
# Always `refusal`.
|
|
11
|
-
attr_accessor type: :refusal
|
|
12
|
-
|
|
13
|
-
# @param type
|
|
14
|
-
# Always `refusal`.
|
|
15
|
-
def initialize: (refusal: String, ?type: :refusal) -> void
|
|
16
|
-
|
|
17
|
-
def to_hash: -> { refusal: String, ?type: :refusal }
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
end
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
type refusal_delta_block =
|
|
6
|
-
{ index: Integer, ?type: :refusal, ?refusal: String }
|
|
7
|
-
|
|
8
|
-
class RefusalDeltaBlock < OpenAI::Internal::Type::BaseModel
|
|
9
|
-
# The index of the refusal part in the message.
|
|
10
|
-
attr_accessor index: Integer
|
|
11
|
-
|
|
12
|
-
# Always `refusal`.
|
|
13
|
-
attr_accessor type: :refusal
|
|
14
|
-
|
|
15
|
-
attr_reader refusal: String?
|
|
16
|
-
|
|
17
|
-
def refusal=: (String) -> String
|
|
18
|
-
|
|
19
|
-
# @param index
|
|
20
|
-
# The index of the refusal part in the message.
|
|
21
|
-
# @param type
|
|
22
|
-
# Always `refusal`.
|
|
23
|
-
def initialize: (
|
|
24
|
-
index: Integer,
|
|
25
|
-
?refusal: String,
|
|
26
|
-
?type: :refusal
|
|
27
|
-
) -> void
|
|
28
|
-
|
|
29
|
-
def to_hash: -> { index: Integer, ?type: :refusal, ?refusal: String }
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
type required_action_function_tool_call =
|
|
6
|
-
{
|
|
7
|
-
id: String,
|
|
8
|
-
function: OpenAI::Beta::Threads::RequiredActionFunctionToolCall::Function,
|
|
9
|
-
?type: :function
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
class RequiredActionFunctionToolCall < OpenAI::Internal::Type::BaseModel
|
|
13
|
-
# The ID of the tool call. This ID must be referenced when you submit the tool
|
|
14
|
-
# outputs in using the
|
|
15
|
-
# [Submit tool outputs to run](https://developers.openai.com/api/docs/assistants/migration)
|
|
16
|
-
# endpoint.
|
|
17
|
-
attr_accessor id: String
|
|
18
|
-
|
|
19
|
-
# The function definition.
|
|
20
|
-
attr_accessor function: OpenAI::Beta::Threads::RequiredActionFunctionToolCall::Function
|
|
21
|
-
|
|
22
|
-
# The type of tool call the output is required for. For now, this is always
|
|
23
|
-
# `function`.
|
|
24
|
-
attr_accessor type: :function
|
|
25
|
-
|
|
26
|
-
# @param id
|
|
27
|
-
# The ID of the tool call. This ID must be referenced when you submit the tool
|
|
28
|
-
# outputs in using the
|
|
29
|
-
# [Submit tool outputs to run](https://developers.openai.com/api/docs/assistants/migration)
|
|
30
|
-
# endpoint.
|
|
31
|
-
# @param function
|
|
32
|
-
# The function definition.
|
|
33
|
-
# @param type
|
|
34
|
-
# The type of tool call the output is required for. For now, this is always
|
|
35
|
-
# `function`.
|
|
36
|
-
def initialize: (
|
|
37
|
-
id: String,
|
|
38
|
-
function: OpenAI::Beta::Threads::RequiredActionFunctionToolCall::Function,
|
|
39
|
-
?type: :function
|
|
40
|
-
) -> void
|
|
41
|
-
|
|
42
|
-
def to_hash: -> {
|
|
43
|
-
id: String,
|
|
44
|
-
function: OpenAI::Beta::Threads::RequiredActionFunctionToolCall::Function,
|
|
45
|
-
?type: :function
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
type function = { arguments: String, name: String }
|
|
49
|
-
|
|
50
|
-
class Function < OpenAI::Internal::Type::BaseModel
|
|
51
|
-
# The arguments that the model expects you to pass to the function.
|
|
52
|
-
attr_accessor arguments: String
|
|
53
|
-
|
|
54
|
-
# The name of the function.
|
|
55
|
-
attr_accessor name: String
|
|
56
|
-
|
|
57
|
-
# @param arguments
|
|
58
|
-
# The arguments that the model expects you to pass to the function.
|
|
59
|
-
# @param name
|
|
60
|
-
# The name of the function.
|
|
61
|
-
def initialize: (arguments: String, name: String) -> void
|
|
62
|
-
|
|
63
|
-
def to_hash: -> { arguments: String, name: String }
|
|
64
|
-
end
|
|
65
|
-
end
|
|
66
|
-
end
|
|
67
|
-
end
|
|
68
|
-
end
|
|
69
|
-
end
|