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,228 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
module Runs
|
|
6
|
-
type file_search_tool_call =
|
|
7
|
-
{
|
|
8
|
-
id: String,
|
|
9
|
-
file_search: OpenAI::Beta::Threads::Runs::FileSearchToolCall::FileSearch,
|
|
10
|
-
?type: :file_search
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
class FileSearchToolCall < OpenAI::Internal::Type::BaseModel
|
|
14
|
-
# The ID of the tool call object.
|
|
15
|
-
attr_accessor id: String
|
|
16
|
-
|
|
17
|
-
# For now, this is always going to be an empty object.
|
|
18
|
-
attr_accessor file_search: OpenAI::Beta::Threads::Runs::FileSearchToolCall::FileSearch
|
|
19
|
-
|
|
20
|
-
# The type of tool call. This is always going to be `file_search` for this type of
|
|
21
|
-
# tool call.
|
|
22
|
-
attr_accessor type: :file_search
|
|
23
|
-
|
|
24
|
-
# @param id
|
|
25
|
-
# The ID of the tool call object.
|
|
26
|
-
# @param file_search
|
|
27
|
-
# For now, this is always going to be an empty object.
|
|
28
|
-
# @param type
|
|
29
|
-
# The type of tool call. This is always going to be `file_search` for this type of
|
|
30
|
-
# tool call.
|
|
31
|
-
def initialize: (
|
|
32
|
-
id: String,
|
|
33
|
-
file_search: OpenAI::Beta::Threads::Runs::FileSearchToolCall::FileSearch,
|
|
34
|
-
?type: :file_search
|
|
35
|
-
) -> void
|
|
36
|
-
|
|
37
|
-
def to_hash: -> {
|
|
38
|
-
id: String,
|
|
39
|
-
file_search: OpenAI::Beta::Threads::Runs::FileSearchToolCall::FileSearch,
|
|
40
|
-
?type: :file_search
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
type file_search =
|
|
44
|
-
{
|
|
45
|
-
?ranking_options: OpenAI::Beta::Threads::Runs::FileSearchToolCall::FileSearch::RankingOptions,
|
|
46
|
-
?results: ::Array[OpenAI::Beta::Threads::Runs::FileSearchToolCall::FileSearch::Result]
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
class FileSearch < OpenAI::Internal::Type::BaseModel
|
|
50
|
-
# The ranking options for the file search.
|
|
51
|
-
attr_reader ranking_options: OpenAI::Beta::Threads::Runs::FileSearchToolCall::FileSearch::RankingOptions?
|
|
52
|
-
|
|
53
|
-
# The ranking options for the file search.
|
|
54
|
-
def ranking_options=: (
|
|
55
|
-
OpenAI::Beta::Threads::Runs::FileSearchToolCall::FileSearch::RankingOptions
|
|
56
|
-
) -> OpenAI::Beta::Threads::Runs::FileSearchToolCall::FileSearch::RankingOptions
|
|
57
|
-
|
|
58
|
-
# The results of the file search.
|
|
59
|
-
attr_reader results: ::Array[OpenAI::Beta::Threads::Runs::FileSearchToolCall::FileSearch::Result]?
|
|
60
|
-
|
|
61
|
-
# The results of the file search.
|
|
62
|
-
def results=: (
|
|
63
|
-
::Array[OpenAI::Beta::Threads::Runs::FileSearchToolCall::FileSearch::Result]
|
|
64
|
-
) -> ::Array[OpenAI::Beta::Threads::Runs::FileSearchToolCall::FileSearch::Result]
|
|
65
|
-
|
|
66
|
-
# @param ranking_options
|
|
67
|
-
# The ranking options for the file search.
|
|
68
|
-
# @param results
|
|
69
|
-
# The results of the file search.
|
|
70
|
-
def initialize: (
|
|
71
|
-
?ranking_options: OpenAI::Beta::Threads::Runs::FileSearchToolCall::FileSearch::RankingOptions,
|
|
72
|
-
?results: ::Array[OpenAI::Beta::Threads::Runs::FileSearchToolCall::FileSearch::Result]
|
|
73
|
-
) -> void
|
|
74
|
-
|
|
75
|
-
def to_hash: -> {
|
|
76
|
-
?ranking_options: OpenAI::Beta::Threads::Runs::FileSearchToolCall::FileSearch::RankingOptions,
|
|
77
|
-
?results: ::Array[OpenAI::Beta::Threads::Runs::FileSearchToolCall::FileSearch::Result]
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
type ranking_options =
|
|
81
|
-
{
|
|
82
|
-
ranker: OpenAI::Models::Beta::Threads::Runs::FileSearchToolCall::FileSearch::RankingOptions::ranker,
|
|
83
|
-
score_threshold: Float
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
class RankingOptions < OpenAI::Internal::Type::BaseModel
|
|
87
|
-
# The ranker to use for the file search. If not specified will use the `auto`
|
|
88
|
-
# ranker.
|
|
89
|
-
attr_accessor ranker: OpenAI::Models::Beta::Threads::Runs::FileSearchToolCall::FileSearch::RankingOptions::ranker
|
|
90
|
-
|
|
91
|
-
# The score threshold for the file search. All values must be a floating point
|
|
92
|
-
# number between 0 and 1.
|
|
93
|
-
attr_accessor score_threshold: Float
|
|
94
|
-
|
|
95
|
-
# @param ranker
|
|
96
|
-
# The ranker to use for the file search. If not specified will use the `auto`
|
|
97
|
-
# ranker.
|
|
98
|
-
# @param score_threshold
|
|
99
|
-
# The score threshold for the file search. All values must be a floating point
|
|
100
|
-
# number between 0 and 1.
|
|
101
|
-
def initialize: (
|
|
102
|
-
ranker: OpenAI::Models::Beta::Threads::Runs::FileSearchToolCall::FileSearch::RankingOptions::ranker,
|
|
103
|
-
score_threshold: Float
|
|
104
|
-
) -> void
|
|
105
|
-
|
|
106
|
-
def to_hash: -> {
|
|
107
|
-
ranker: OpenAI::Models::Beta::Threads::Runs::FileSearchToolCall::FileSearch::RankingOptions::ranker,
|
|
108
|
-
score_threshold: Float
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
type ranker = :auto | :default_2024_08_21
|
|
112
|
-
|
|
113
|
-
module Ranker
|
|
114
|
-
extend OpenAI::Internal::Type::Enum
|
|
115
|
-
|
|
116
|
-
AUTO: :auto
|
|
117
|
-
DEFAULT_2024_08_21: :default_2024_08_21
|
|
118
|
-
|
|
119
|
-
def self?.values: -> ::Array[OpenAI::Models::Beta::Threads::Runs::FileSearchToolCall::FileSearch::RankingOptions::ranker]
|
|
120
|
-
end
|
|
121
|
-
end
|
|
122
|
-
|
|
123
|
-
type result =
|
|
124
|
-
{
|
|
125
|
-
file_id: String,
|
|
126
|
-
file_name: String,
|
|
127
|
-
score: Float,
|
|
128
|
-
?content: ::Array[OpenAI::Beta::Threads::Runs::FileSearchToolCall::FileSearch::Result::Content]
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
class Result < OpenAI::Internal::Type::BaseModel
|
|
132
|
-
# The ID of the file that result was found in.
|
|
133
|
-
attr_accessor file_id: String
|
|
134
|
-
|
|
135
|
-
# The name of the file that result was found in.
|
|
136
|
-
attr_accessor file_name: String
|
|
137
|
-
|
|
138
|
-
# The score of the result. All values must be a floating point number between 0
|
|
139
|
-
# and 1.
|
|
140
|
-
attr_accessor score: Float
|
|
141
|
-
|
|
142
|
-
# The content of the result that was found. The content is only included if
|
|
143
|
-
# requested via the include query parameter.
|
|
144
|
-
attr_reader content: ::Array[OpenAI::Beta::Threads::Runs::FileSearchToolCall::FileSearch::Result::Content]?
|
|
145
|
-
|
|
146
|
-
# The content of the result that was found. The content is only included if
|
|
147
|
-
# requested via the include query parameter.
|
|
148
|
-
def content=: (
|
|
149
|
-
::Array[OpenAI::Beta::Threads::Runs::FileSearchToolCall::FileSearch::Result::Content]
|
|
150
|
-
) -> ::Array[OpenAI::Beta::Threads::Runs::FileSearchToolCall::FileSearch::Result::Content]
|
|
151
|
-
|
|
152
|
-
# @param file_id
|
|
153
|
-
# The ID of the file that result was found in.
|
|
154
|
-
# @param file_name
|
|
155
|
-
# The name of the file that result was found in.
|
|
156
|
-
# @param score
|
|
157
|
-
# The score of the result. All values must be a floating point number between 0
|
|
158
|
-
# and 1.
|
|
159
|
-
# @param content
|
|
160
|
-
# The content of the result that was found. The content is only included if
|
|
161
|
-
# requested via the include query parameter.
|
|
162
|
-
def initialize: (
|
|
163
|
-
file_id: String,
|
|
164
|
-
file_name: String,
|
|
165
|
-
score: Float,
|
|
166
|
-
?content: ::Array[OpenAI::Beta::Threads::Runs::FileSearchToolCall::FileSearch::Result::Content]
|
|
167
|
-
) -> void
|
|
168
|
-
|
|
169
|
-
def to_hash: -> {
|
|
170
|
-
file_id: String,
|
|
171
|
-
file_name: String,
|
|
172
|
-
score: Float,
|
|
173
|
-
?content: ::Array[OpenAI::Beta::Threads::Runs::FileSearchToolCall::FileSearch::Result::Content]
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
type content =
|
|
177
|
-
{
|
|
178
|
-
?text: String,
|
|
179
|
-
?type: OpenAI::Models::Beta::Threads::Runs::FileSearchToolCall::FileSearch::Result::Content::type_
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
class Content < OpenAI::Internal::Type::BaseModel
|
|
183
|
-
# The text content of the file.
|
|
184
|
-
attr_reader text: String?
|
|
185
|
-
|
|
186
|
-
# The text content of the file.
|
|
187
|
-
def text=: (String) -> String
|
|
188
|
-
|
|
189
|
-
# The type of the content.
|
|
190
|
-
attr_reader type: OpenAI::Models::Beta::Threads::Runs::FileSearchToolCall::FileSearch::Result::Content::type_?
|
|
191
|
-
|
|
192
|
-
# The type of the content.
|
|
193
|
-
def type=: (
|
|
194
|
-
OpenAI::Models::Beta::Threads::Runs::FileSearchToolCall::FileSearch::Result::Content::type_
|
|
195
|
-
) -> OpenAI::Models::Beta::Threads::Runs::FileSearchToolCall::FileSearch::Result::Content::type_
|
|
196
|
-
|
|
197
|
-
# @param text
|
|
198
|
-
# The text content of the file.
|
|
199
|
-
# @param type
|
|
200
|
-
# The type of the content.
|
|
201
|
-
def initialize: (
|
|
202
|
-
?text: String,
|
|
203
|
-
?type: OpenAI::Models::Beta::Threads::Runs::FileSearchToolCall::FileSearch::Result::Content::type_
|
|
204
|
-
) -> void
|
|
205
|
-
|
|
206
|
-
def to_hash: -> {
|
|
207
|
-
?text: String,
|
|
208
|
-
?type: OpenAI::Models::Beta::Threads::Runs::FileSearchToolCall::FileSearch::Result::Content::type_
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
type type_ = :text
|
|
212
|
-
|
|
213
|
-
module Type
|
|
214
|
-
extend OpenAI::Internal::Type::Enum
|
|
215
|
-
|
|
216
|
-
TEXT: :text
|
|
217
|
-
|
|
218
|
-
def self?.values: -> ::Array[OpenAI::Models::Beta::Threads::Runs::FileSearchToolCall::FileSearch::Result::Content::type_]
|
|
219
|
-
end
|
|
220
|
-
end
|
|
221
|
-
end
|
|
222
|
-
end
|
|
223
|
-
end
|
|
224
|
-
end
|
|
225
|
-
end
|
|
226
|
-
end
|
|
227
|
-
end
|
|
228
|
-
end
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
module Runs
|
|
6
|
-
type file_search_tool_call_delta =
|
|
7
|
-
{
|
|
8
|
-
file_search: top,
|
|
9
|
-
index: Integer,
|
|
10
|
-
?type: :file_search,
|
|
11
|
-
?id: String
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
class FileSearchToolCallDelta < OpenAI::Internal::Type::BaseModel
|
|
15
|
-
# For now, this is always going to be an empty object.
|
|
16
|
-
attr_accessor file_search: top
|
|
17
|
-
|
|
18
|
-
# The index of the tool call in the tool calls array.
|
|
19
|
-
attr_accessor index: Integer
|
|
20
|
-
|
|
21
|
-
# The type of tool call. This is always going to be `file_search` for this type of
|
|
22
|
-
# tool call.
|
|
23
|
-
attr_accessor type: :file_search
|
|
24
|
-
|
|
25
|
-
# The ID of the tool call object.
|
|
26
|
-
attr_reader id: String?
|
|
27
|
-
|
|
28
|
-
# The ID of the tool call object.
|
|
29
|
-
def id=: (String) -> String
|
|
30
|
-
|
|
31
|
-
# @param file_search
|
|
32
|
-
# For now, this is always going to be an empty object.
|
|
33
|
-
# @param index
|
|
34
|
-
# The index of the tool call in the tool calls array.
|
|
35
|
-
# @param id
|
|
36
|
-
# The ID of the tool call object.
|
|
37
|
-
# @param type
|
|
38
|
-
# The type of tool call. This is always going to be `file_search` for this type of
|
|
39
|
-
# tool call.
|
|
40
|
-
def initialize: (
|
|
41
|
-
file_search: top,
|
|
42
|
-
index: Integer,
|
|
43
|
-
?id: String,
|
|
44
|
-
?type: :file_search
|
|
45
|
-
) -> void
|
|
46
|
-
|
|
47
|
-
def to_hash: -> {
|
|
48
|
-
file_search: top,
|
|
49
|
-
index: Integer,
|
|
50
|
-
?type: :file_search,
|
|
51
|
-
?id: String
|
|
52
|
-
}
|
|
53
|
-
end
|
|
54
|
-
end
|
|
55
|
-
end
|
|
56
|
-
end
|
|
57
|
-
end
|
|
58
|
-
end
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
module Runs
|
|
6
|
-
type function_tool_call =
|
|
7
|
-
{
|
|
8
|
-
id: String,
|
|
9
|
-
function: OpenAI::Beta::Threads::Runs::FunctionToolCall::Function,
|
|
10
|
-
?type: :function
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
class FunctionToolCall < OpenAI::Internal::Type::BaseModel
|
|
14
|
-
# The ID of the tool call object.
|
|
15
|
-
attr_accessor id: String
|
|
16
|
-
|
|
17
|
-
# The definition of the function that was called.
|
|
18
|
-
attr_accessor function: OpenAI::Beta::Threads::Runs::FunctionToolCall::Function
|
|
19
|
-
|
|
20
|
-
# The type of tool call. This is always going to be `function` for this type of
|
|
21
|
-
# tool call.
|
|
22
|
-
attr_accessor type: :function
|
|
23
|
-
|
|
24
|
-
# @param id
|
|
25
|
-
# The ID of the tool call object.
|
|
26
|
-
# @param function
|
|
27
|
-
# The definition of the function that was called.
|
|
28
|
-
# @param type
|
|
29
|
-
# The type of tool call. This is always going to be `function` for this type of
|
|
30
|
-
# tool call.
|
|
31
|
-
def initialize: (
|
|
32
|
-
id: String,
|
|
33
|
-
function: OpenAI::Beta::Threads::Runs::FunctionToolCall::Function,
|
|
34
|
-
?type: :function
|
|
35
|
-
) -> void
|
|
36
|
-
|
|
37
|
-
def to_hash: -> {
|
|
38
|
-
id: String,
|
|
39
|
-
function: OpenAI::Beta::Threads::Runs::FunctionToolCall::Function,
|
|
40
|
-
?type: :function
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
type function = { arguments: String, name: String, output: String? }
|
|
44
|
-
|
|
45
|
-
class Function < OpenAI::Internal::Type::BaseModel
|
|
46
|
-
# The arguments passed to the function.
|
|
47
|
-
attr_accessor arguments: String
|
|
48
|
-
|
|
49
|
-
# The name of the function.
|
|
50
|
-
attr_accessor name: String
|
|
51
|
-
|
|
52
|
-
# The output of the function. This will be `null` if the outputs have not been
|
|
53
|
-
# [submitted](https://developers.openai.com/api/docs/assistants/migration) yet.
|
|
54
|
-
attr_accessor output: String?
|
|
55
|
-
|
|
56
|
-
# @param arguments
|
|
57
|
-
# The arguments passed to the function.
|
|
58
|
-
# @param name
|
|
59
|
-
# The name of the function.
|
|
60
|
-
# @param output
|
|
61
|
-
# The output of the function. This will be `null` if the outputs have not been
|
|
62
|
-
# [submitted](https://developers.openai.com/api/docs/assistants/migration) yet.
|
|
63
|
-
def initialize: (
|
|
64
|
-
arguments: String,
|
|
65
|
-
name: String,
|
|
66
|
-
output: String?
|
|
67
|
-
) -> void
|
|
68
|
-
|
|
69
|
-
def to_hash: -> {
|
|
70
|
-
arguments: String,
|
|
71
|
-
name: String,
|
|
72
|
-
output: String?
|
|
73
|
-
}
|
|
74
|
-
end
|
|
75
|
-
end
|
|
76
|
-
end
|
|
77
|
-
end
|
|
78
|
-
end
|
|
79
|
-
end
|
|
80
|
-
end
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
module Runs
|
|
6
|
-
type function_tool_call_delta =
|
|
7
|
-
{
|
|
8
|
-
index: Integer,
|
|
9
|
-
?type: :function,
|
|
10
|
-
?id: String,
|
|
11
|
-
?function: OpenAI::Beta::Threads::Runs::FunctionToolCallDelta::Function
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
class FunctionToolCallDelta < OpenAI::Internal::Type::BaseModel
|
|
15
|
-
# The index of the tool call in the tool calls array.
|
|
16
|
-
attr_accessor index: Integer
|
|
17
|
-
|
|
18
|
-
# The type of tool call. This is always going to be `function` for this type of
|
|
19
|
-
# tool call.
|
|
20
|
-
attr_accessor type: :function
|
|
21
|
-
|
|
22
|
-
# The ID of the tool call object.
|
|
23
|
-
attr_reader id: String?
|
|
24
|
-
|
|
25
|
-
# The ID of the tool call object.
|
|
26
|
-
def id=: (String) -> String
|
|
27
|
-
|
|
28
|
-
# The definition of the function that was called.
|
|
29
|
-
attr_reader function: OpenAI::Beta::Threads::Runs::FunctionToolCallDelta::Function?
|
|
30
|
-
|
|
31
|
-
# The definition of the function that was called.
|
|
32
|
-
def function=: (
|
|
33
|
-
OpenAI::Beta::Threads::Runs::FunctionToolCallDelta::Function
|
|
34
|
-
) -> OpenAI::Beta::Threads::Runs::FunctionToolCallDelta::Function
|
|
35
|
-
|
|
36
|
-
# @param index
|
|
37
|
-
# The index of the tool call in the tool calls array.
|
|
38
|
-
# @param id
|
|
39
|
-
# The ID of the tool call object.
|
|
40
|
-
# @param function
|
|
41
|
-
# The definition of the function that was called.
|
|
42
|
-
# @param type
|
|
43
|
-
# The type of tool call. This is always going to be `function` for this type of
|
|
44
|
-
# tool call.
|
|
45
|
-
def initialize: (
|
|
46
|
-
index: Integer,
|
|
47
|
-
?id: String,
|
|
48
|
-
?function: OpenAI::Beta::Threads::Runs::FunctionToolCallDelta::Function,
|
|
49
|
-
?type: :function
|
|
50
|
-
) -> void
|
|
51
|
-
|
|
52
|
-
def to_hash: -> {
|
|
53
|
-
index: Integer,
|
|
54
|
-
?type: :function,
|
|
55
|
-
?id: String,
|
|
56
|
-
?function: OpenAI::Beta::Threads::Runs::FunctionToolCallDelta::Function
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
type function =
|
|
60
|
-
{ ?arguments: String, ?name: String, ?output: String? }
|
|
61
|
-
|
|
62
|
-
class Function < OpenAI::Internal::Type::BaseModel
|
|
63
|
-
# The arguments passed to the function.
|
|
64
|
-
attr_reader arguments: String?
|
|
65
|
-
|
|
66
|
-
# The arguments passed to the function.
|
|
67
|
-
def arguments=: (String) -> String
|
|
68
|
-
|
|
69
|
-
# The name of the function.
|
|
70
|
-
attr_reader name: String?
|
|
71
|
-
|
|
72
|
-
# The name of the function.
|
|
73
|
-
def name=: (String) -> String
|
|
74
|
-
|
|
75
|
-
# The output of the function. This will be `null` if the outputs have not been
|
|
76
|
-
# [submitted](https://developers.openai.com/api/docs/assistants/migration) yet.
|
|
77
|
-
attr_accessor output: String?
|
|
78
|
-
|
|
79
|
-
# @param arguments
|
|
80
|
-
# The arguments passed to the function.
|
|
81
|
-
# @param name
|
|
82
|
-
# The name of the function.
|
|
83
|
-
# @param output
|
|
84
|
-
# The output of the function. This will be `null` if the outputs have not been
|
|
85
|
-
# [submitted](https://developers.openai.com/api/docs/assistants/migration) yet.
|
|
86
|
-
def initialize: (
|
|
87
|
-
?arguments: String,
|
|
88
|
-
?name: String,
|
|
89
|
-
?output: String?
|
|
90
|
-
) -> void
|
|
91
|
-
|
|
92
|
-
def to_hash: -> {
|
|
93
|
-
?arguments: String,
|
|
94
|
-
?name: String,
|
|
95
|
-
?output: String?
|
|
96
|
-
}
|
|
97
|
-
end
|
|
98
|
-
end
|
|
99
|
-
end
|
|
100
|
-
end
|
|
101
|
-
end
|
|
102
|
-
end
|
|
103
|
-
end
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
module Runs
|
|
6
|
-
type message_creation_step_details =
|
|
7
|
-
{
|
|
8
|
-
message_creation: OpenAI::Beta::Threads::Runs::MessageCreationStepDetails::MessageCreation,
|
|
9
|
-
?type: :message_creation
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
class MessageCreationStepDetails < OpenAI::Internal::Type::BaseModel
|
|
13
|
-
attr_accessor message_creation: OpenAI::Beta::Threads::Runs::MessageCreationStepDetails::MessageCreation
|
|
14
|
-
|
|
15
|
-
# Always `message_creation`.
|
|
16
|
-
attr_accessor type: :message_creation
|
|
17
|
-
|
|
18
|
-
# @param type
|
|
19
|
-
# Always `message_creation`.
|
|
20
|
-
def initialize: (
|
|
21
|
-
message_creation: OpenAI::Beta::Threads::Runs::MessageCreationStepDetails::MessageCreation,
|
|
22
|
-
?type: :message_creation
|
|
23
|
-
) -> void
|
|
24
|
-
|
|
25
|
-
def to_hash: -> {
|
|
26
|
-
message_creation: OpenAI::Beta::Threads::Runs::MessageCreationStepDetails::MessageCreation,
|
|
27
|
-
?type: :message_creation
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
type message_creation = { message_id: String }
|
|
31
|
-
|
|
32
|
-
class MessageCreation < OpenAI::Internal::Type::BaseModel
|
|
33
|
-
# The ID of the message that was created by this run step.
|
|
34
|
-
attr_accessor message_id: String
|
|
35
|
-
|
|
36
|
-
# @param message_id
|
|
37
|
-
# The ID of the message that was created by this run step.
|
|
38
|
-
def initialize: (message_id: String) -> void
|
|
39
|
-
|
|
40
|
-
def to_hash: -> { message_id: String }
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
end
|