diff --git a/py311/lib/python3.11/site-packages/openai/_extras/__pycache__/__init__.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/_extras/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..aaf8cc05b8550232ca53af3a339494db3b7a5f4a Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/_extras/__pycache__/__init__.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/_extras/__pycache__/_common.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/_extras/__pycache__/_common.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a2b4c6b078ac66fec531ec17cbf81ef5907d7e46 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/_extras/__pycache__/_common.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/_extras/__pycache__/numpy_proxy.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/_extras/__pycache__/numpy_proxy.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..89205ad4a05333c86f2c70d6712703a8a5696be9 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/_extras/__pycache__/numpy_proxy.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/_extras/__pycache__/sounddevice_proxy.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/_extras/__pycache__/sounddevice_proxy.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..efa95e86221b54ee3bdaacc69ae3d22ad380408b Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/_extras/__pycache__/sounddevice_proxy.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/resources/chat/__init__.py b/py311/lib/python3.11/site-packages/openai/resources/chat/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..52dfdceacc4d3e7b88e8d7cf016c0670cd2fe977 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/resources/chat/__init__.py @@ -0,0 +1,33 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from .chat import ( + Chat, + AsyncChat, + ChatWithRawResponse, + AsyncChatWithRawResponse, + ChatWithStreamingResponse, + AsyncChatWithStreamingResponse, +) +from .completions import ( + Completions, + AsyncCompletions, + CompletionsWithRawResponse, + AsyncCompletionsWithRawResponse, + CompletionsWithStreamingResponse, + AsyncCompletionsWithStreamingResponse, +) + +__all__ = [ + "Completions", + "AsyncCompletions", + "CompletionsWithRawResponse", + "AsyncCompletionsWithRawResponse", + "CompletionsWithStreamingResponse", + "AsyncCompletionsWithStreamingResponse", + "Chat", + "AsyncChat", + "ChatWithRawResponse", + "AsyncChatWithRawResponse", + "ChatWithStreamingResponse", + "AsyncChatWithStreamingResponse", +] diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/__init__.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4491c0fe83a0db1479a52f4aad68fd1841543872 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/__init__.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8433978eec14e788ca94c9da9e4b49d05ee0b957 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_create_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_create_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6282cf6a5d6789e3fe0ce1db50a2a27aab69f3ce Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_create_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_deleted.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_deleted.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6d205e830376900b351c92589d991cdbf6f56d3e Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_deleted.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_list_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_list_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..74482b3bf4f95cd23f331abf18bb331d99e12c3b Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_list_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_response_format_option.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_response_format_option.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fbed9e19452104a4b27d5428037f0090d0bb7334 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_response_format_option.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_response_format_option_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_response_format_option_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b8ddd78d24476c9321547706955db3706aa91b4b Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_response_format_option_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_stream_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_stream_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fad9a1d766a54313051158d01c2d6cc948af1c9e Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_stream_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_tool.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..20857b0c61a5cb85a341ab414dbe8e43de4a0599 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_tool.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_tool_choice.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_tool_choice.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e8c34c75a1e56d46ba3d18ebc8413c37aba8641d Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_tool_choice.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_tool_choice_function.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_tool_choice_function.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..09cb1b4a40c99c7e5e50a49e493059f01f347fc5 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_tool_choice_function.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_tool_choice_function_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_tool_choice_function_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ab8f80bed62b657db533dcafbd917671125258f1 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_tool_choice_function_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_tool_choice_option.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_tool_choice_option.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..dca2d048d25b575025ac83abc486f0c519bc2458 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_tool_choice_option.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_tool_choice_option_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_tool_choice_option_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..93f3039cd0be1b32f0cca823191801cae4e74e08 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_tool_choice_option_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_tool_choice_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_tool_choice_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..29121a98f388d57c5f6dfadcdcd04e5a0ed6e0d1 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_tool_choice_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_tool_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_tool_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2000bdd02f0dc7698fe5a39d589f1f5c5e9f6acb Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_tool_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_update_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_update_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..359bc4fa51c917c9977d9ad2434eb884cba4add9 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/assistant_update_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/chatkit_workflow.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/chatkit_workflow.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..110bd42cd90d3c9818f29aba1b9a073676c18faf Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/chatkit_workflow.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/code_interpreter_tool.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/code_interpreter_tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..13e7758c804e13b130740c87f94698275ececebd Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/code_interpreter_tool.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/code_interpreter_tool_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/code_interpreter_tool_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..49ca40eb2beffd0e7cf90c1de100a32b3fc09d17 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/code_interpreter_tool_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/file_search_tool.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/file_search_tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7fabaca3fcf2da8045241ff05231c76a4307d97e Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/file_search_tool.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/file_search_tool_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/file_search_tool_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..70d6603f81b67a23b364b8bb2ffc61fe2d681ffe Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/file_search_tool_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/function_tool.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/function_tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..58581b54ddb3f6c73f923ae5cedf2fc264553337 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/function_tool.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/function_tool_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/function_tool_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c9b1190936b3fbe4c3e5f6147031be2243fab1e7 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/function_tool_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/thread.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/thread.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..53d817b984a377163af6830d3c1499b77526f4e3 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/thread.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/thread_create_and_run_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/thread_create_and_run_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..53b7fa53ea767e05b6e43dbdd4b9fe2128085291 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/thread_create_and_run_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/thread_create_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/thread_create_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..49737ae1556dc52cdde31fd2215aa550e9a0bb4f Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/thread_create_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/thread_deleted.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/thread_deleted.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4d51164bcdb57c3b88f8bd9a4c3c17df6be243c6 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/thread_deleted.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/thread_update_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/thread_update_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..28ddbb52d630e011bfd823f4fb71f8a507cd0036 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/__pycache__/thread_update_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chat/__init__.py b/py311/lib/python3.11/site-packages/openai/types/beta/chat/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..f8ee8b14b1c9672e41196e26a6080eebf45914b6 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/chat/__init__.py @@ -0,0 +1,3 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__init__.py b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..eafed9dd9945acaab5dd9d96fedc8d2669b0d870 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__init__.py @@ -0,0 +1,32 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from .chat_session import ChatSession as ChatSession +from .chatkit_thread import ChatKitThread as ChatKitThread +from .chatkit_attachment import ChatKitAttachment as ChatKitAttachment +from .thread_list_params import ThreadListParams as ThreadListParams +from .chat_session_status import ChatSessionStatus as ChatSessionStatus +from .chatkit_widget_item import ChatKitWidgetItem as ChatKitWidgetItem +from .chat_session_history import ChatSessionHistory as ChatSessionHistory +from .session_create_params import SessionCreateParams as SessionCreateParams +from .thread_delete_response import ThreadDeleteResponse as ThreadDeleteResponse +from .chat_session_file_upload import ChatSessionFileUpload as ChatSessionFileUpload +from .chat_session_rate_limits import ChatSessionRateLimits as ChatSessionRateLimits +from .chatkit_thread_item_list import ChatKitThreadItemList as ChatKitThreadItemList +from .thread_list_items_params import ThreadListItemsParams as ThreadListItemsParams +from .chat_session_workflow_param import ChatSessionWorkflowParam as ChatSessionWorkflowParam +from .chatkit_response_output_text import ChatKitResponseOutputText as ChatKitResponseOutputText +from .chat_session_rate_limits_param import ChatSessionRateLimitsParam as ChatSessionRateLimitsParam +from .chat_session_expires_after_param import ChatSessionExpiresAfterParam as ChatSessionExpiresAfterParam +from .chatkit_thread_user_message_item import ChatKitThreadUserMessageItem as ChatKitThreadUserMessageItem +from .chat_session_chatkit_configuration import ChatSessionChatKitConfiguration as ChatSessionChatKitConfiguration +from .chat_session_automatic_thread_titling import ( + ChatSessionAutomaticThreadTitling as ChatSessionAutomaticThreadTitling, +) +from .chatkit_thread_assistant_message_item import ( + ChatKitThreadAssistantMessageItem as ChatKitThreadAssistantMessageItem, +) +from .chat_session_chatkit_configuration_param import ( + ChatSessionChatKitConfigurationParam as ChatSessionChatKitConfigurationParam, +) diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/__init__.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b02de23034d14043d88f359b11844aa93158bbbf Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/__init__.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3cb47d9f77c9fda5f6ad2cfc250328a8698b8698 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session_automatic_thread_titling.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session_automatic_thread_titling.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c6c27f4ced2120ede29898e5aa2dea9559c97984 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session_automatic_thread_titling.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session_chatkit_configuration.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session_chatkit_configuration.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8783bf63c2d22da8de7f875866e542e7ddacd017 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session_chatkit_configuration.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session_chatkit_configuration_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session_chatkit_configuration_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a5a9e49ba8bffe6bed1823dfd6e90f9f109bd932 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session_chatkit_configuration_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session_expires_after_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session_expires_after_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4b25c40f76caf231c50be75d72e622624750a955 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session_expires_after_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session_file_upload.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session_file_upload.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b841c6f51dc88669377b8dea52872f104385e223 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session_file_upload.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session_history.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session_history.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ffbecc4dec42b28530347a0edf011b2d239cea4d Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session_history.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session_rate_limits.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session_rate_limits.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..786ffe4bda9611174fc0d3c761a43de19a399148 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session_rate_limits.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session_rate_limits_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session_rate_limits_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9481b4491a4b3290399c3734a327dca3973ada63 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session_rate_limits_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session_status.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session_status.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..474cb0f0225f0a2a222e31dd87ab209047d2d854 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session_status.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session_workflow_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session_workflow_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0a3e536028bbbc9f4889bc01b26073b68e1db588 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chat_session_workflow_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chatkit_attachment.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chatkit_attachment.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c9cd3348d305593c0794d733aa88afabb9e5fa45 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chatkit_attachment.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chatkit_response_output_text.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chatkit_response_output_text.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ad130fae2f73e0a58bb07f12b7cb0b9ae3b1116d Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chatkit_response_output_text.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chatkit_thread.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chatkit_thread.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a7d9b6622f1413113cec10ab55b610f52b491815 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chatkit_thread.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chatkit_thread_assistant_message_item.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chatkit_thread_assistant_message_item.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c38bc7771e141409a61e6ce1d5a9bc77bbb150f5 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chatkit_thread_assistant_message_item.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chatkit_thread_item_list.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chatkit_thread_item_list.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e83caf5fc608413c34188724f70ff7e8f4fca106 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chatkit_thread_item_list.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chatkit_thread_user_message_item.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chatkit_thread_user_message_item.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..10dc4a4bf33b5682d7e29aadc49d44baf5c09525 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chatkit_thread_user_message_item.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chatkit_widget_item.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chatkit_widget_item.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..60524ec92867806149bb973aedd755f7bb8bd9f7 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/chatkit_widget_item.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/session_create_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/session_create_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0e48b21e4d9668674e90c36abe42697e6cb680cb Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/session_create_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/thread_delete_response.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/thread_delete_response.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ad3fd0d1b0b060bcfe139009e8048ac2ca908289 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/thread_delete_response.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/thread_list_items_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/thread_list_items_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9521352176e43314cd5f0ec8bbb28093893ffe8e Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/thread_list_items_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/thread_list_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/thread_list_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..da4d0809e7ca69f7dca5c530608d5e94326a709b Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/__pycache__/thread_list_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session.py b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session.py new file mode 100644 index 0000000000000000000000000000000000000000..9db9fc93a01a6d162edf2dddb398200ee1e5f077 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session.py @@ -0,0 +1,45 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel +from ..chatkit_workflow import ChatKitWorkflow +from .chat_session_status import ChatSessionStatus +from .chat_session_rate_limits import ChatSessionRateLimits +from .chat_session_chatkit_configuration import ChatSessionChatKitConfiguration + +__all__ = ["ChatSession"] + + +class ChatSession(BaseModel): + """Represents a ChatKit session and its resolved configuration.""" + + id: str + """Identifier for the ChatKit session.""" + + chatkit_configuration: ChatSessionChatKitConfiguration + """Resolved ChatKit feature configuration for the session.""" + + client_secret: str + """Ephemeral client secret that authenticates session requests.""" + + expires_at: int + """Unix timestamp (in seconds) for when the session expires.""" + + max_requests_per_1_minute: int + """Convenience copy of the per-minute request limit.""" + + object: Literal["chatkit.session"] + """Type discriminator that is always `chatkit.session`.""" + + rate_limits: ChatSessionRateLimits + """Resolved rate limit values.""" + + status: ChatSessionStatus + """Current lifecycle state of the session.""" + + user: str + """User identifier associated with the session.""" + + workflow: ChatKitWorkflow + """Workflow metadata for the session.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session_automatic_thread_titling.py b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session_automatic_thread_titling.py new file mode 100644 index 0000000000000000000000000000000000000000..1d95255e06ee98832dc103c74120af750cc6ebe9 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session_automatic_thread_titling.py @@ -0,0 +1,12 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from ...._models import BaseModel + +__all__ = ["ChatSessionAutomaticThreadTitling"] + + +class ChatSessionAutomaticThreadTitling(BaseModel): + """Automatic thread title preferences for the session.""" + + enabled: bool + """Whether automatic thread titling is enabled.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session_chatkit_configuration.py b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session_chatkit_configuration.py new file mode 100644 index 0000000000000000000000000000000000000000..f9fa0ceff5aa311e02fbabc4e1652fa159ef8d0d --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session_chatkit_configuration.py @@ -0,0 +1,21 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from ...._models import BaseModel +from .chat_session_history import ChatSessionHistory +from .chat_session_file_upload import ChatSessionFileUpload +from .chat_session_automatic_thread_titling import ChatSessionAutomaticThreadTitling + +__all__ = ["ChatSessionChatKitConfiguration"] + + +class ChatSessionChatKitConfiguration(BaseModel): + """ChatKit configuration for the session.""" + + automatic_thread_titling: ChatSessionAutomaticThreadTitling + """Automatic thread titling preferences.""" + + file_upload: ChatSessionFileUpload + """Upload settings for the session.""" + + history: ChatSessionHistory + """History retention configuration.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session_chatkit_configuration_param.py b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session_chatkit_configuration_param.py new file mode 100644 index 0000000000000000000000000000000000000000..834de71e71acc248df336682575267692e8c6f17 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session_chatkit_configuration_param.py @@ -0,0 +1,76 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import TypedDict + +__all__ = ["ChatSessionChatKitConfigurationParam", "AutomaticThreadTitling", "FileUpload", "History"] + + +class AutomaticThreadTitling(TypedDict, total=False): + """Configuration for automatic thread titling. + + When omitted, automatic thread titling is enabled by default. + """ + + enabled: bool + """Enable automatic thread title generation. Defaults to true.""" + + +class FileUpload(TypedDict, total=False): + """Configuration for upload enablement and limits. + + When omitted, uploads are disabled by default (max_files 10, max_file_size 512 MB). + """ + + enabled: bool + """Enable uploads for this session. Defaults to false.""" + + max_file_size: int + """Maximum size in megabytes for each uploaded file. + + Defaults to 512 MB, which is the maximum allowable size. + """ + + max_files: int + """Maximum number of files that can be uploaded to the session. Defaults to 10.""" + + +class History(TypedDict, total=False): + """Configuration for chat history retention. + + When omitted, history is enabled by default with no limit on recent_threads (null). + """ + + enabled: bool + """Enables chat users to access previous ChatKit threads. Defaults to true.""" + + recent_threads: int + """Number of recent ChatKit threads users have access to. + + Defaults to unlimited when unset. + """ + + +class ChatSessionChatKitConfigurationParam(TypedDict, total=False): + """Optional per-session configuration settings for ChatKit behavior.""" + + automatic_thread_titling: AutomaticThreadTitling + """Configuration for automatic thread titling. + + When omitted, automatic thread titling is enabled by default. + """ + + file_upload: FileUpload + """Configuration for upload enablement and limits. + + When omitted, uploads are disabled by default (max_files 10, max_file_size 512 + MB). + """ + + history: History + """Configuration for chat history retention. + + When omitted, history is enabled by default with no limit on recent_threads + (null). + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session_expires_after_param.py b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session_expires_after_param.py new file mode 100644 index 0000000000000000000000000000000000000000..c1de8a767ac62728f22430cccc3773625d23ce8d --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session_expires_after_param.py @@ -0,0 +1,17 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["ChatSessionExpiresAfterParam"] + + +class ChatSessionExpiresAfterParam(TypedDict, total=False): + """Controls when the session expires relative to an anchor timestamp.""" + + anchor: Required[Literal["created_at"]] + """Base timestamp used to calculate expiration. Currently fixed to `created_at`.""" + + seconds: Required[int] + """Number of seconds after the anchor when the session expires.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session_file_upload.py b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session_file_upload.py new file mode 100644 index 0000000000000000000000000000000000000000..0275859d274c6863b712fc86a1d59e059b44d6a4 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session_file_upload.py @@ -0,0 +1,20 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional + +from ...._models import BaseModel + +__all__ = ["ChatSessionFileUpload"] + + +class ChatSessionFileUpload(BaseModel): + """Upload permissions and limits applied to the session.""" + + enabled: bool + """Indicates if uploads are enabled for the session.""" + + max_file_size: Optional[int] = None + """Maximum upload size in megabytes.""" + + max_files: Optional[int] = None + """Maximum number of uploads allowed during the session.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session_history.py b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session_history.py new file mode 100644 index 0000000000000000000000000000000000000000..54690009c2436b507cdeab45142787df7c4bc8c1 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session_history.py @@ -0,0 +1,20 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional + +from ...._models import BaseModel + +__all__ = ["ChatSessionHistory"] + + +class ChatSessionHistory(BaseModel): + """History retention preferences returned for the session.""" + + enabled: bool + """Indicates if chat history is persisted for the session.""" + + recent_threads: Optional[int] = None + """Number of prior threads surfaced in history views. + + Defaults to null when all history is retained. + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session_rate_limits.py b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session_rate_limits.py new file mode 100644 index 0000000000000000000000000000000000000000..7c5bd94e76b8535766899889949faecac6abe1e5 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session_rate_limits.py @@ -0,0 +1,12 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from ...._models import BaseModel + +__all__ = ["ChatSessionRateLimits"] + + +class ChatSessionRateLimits(BaseModel): + """Active per-minute request limit for the session.""" + + max_requests_per_1_minute: int + """Maximum allowed requests per one-minute window.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session_rate_limits_param.py b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session_rate_limits_param.py new file mode 100644 index 0000000000000000000000000000000000000000..578f20b0c3586a8ed7920f9ecfaae4b053b78044 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session_rate_limits_param.py @@ -0,0 +1,14 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import TypedDict + +__all__ = ["ChatSessionRateLimitsParam"] + + +class ChatSessionRateLimitsParam(TypedDict, total=False): + """Controls request rate limits for the session.""" + + max_requests_per_1_minute: int + """Maximum number of requests allowed per minute for the session. Defaults to 10.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session_status.py b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session_status.py new file mode 100644 index 0000000000000000000000000000000000000000..a483099c6c47bfce017d838eb7df4abb503291d4 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session_status.py @@ -0,0 +1,7 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal, TypeAlias + +__all__ = ["ChatSessionStatus"] + +ChatSessionStatus: TypeAlias = Literal["active", "expired", "cancelled"] diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session_workflow_param.py b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session_workflow_param.py new file mode 100644 index 0000000000000000000000000000000000000000..abf52de526416b931b70cfee88bf3d7f88e5f2b9 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chat_session_workflow_param.py @@ -0,0 +1,41 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Dict, Union +from typing_extensions import Required, TypedDict + +__all__ = ["ChatSessionWorkflowParam", "Tracing"] + + +class Tracing(TypedDict, total=False): + """Optional tracing overrides for the workflow invocation. + + When omitted, tracing is enabled by default. + """ + + enabled: bool + """Whether tracing is enabled during the session. Defaults to true.""" + + +class ChatSessionWorkflowParam(TypedDict, total=False): + """Workflow reference and overrides applied to the chat session.""" + + id: Required[str] + """Identifier for the workflow invoked by the session.""" + + state_variables: Dict[str, Union[str, bool, float]] + """State variables forwarded to the workflow. + + Keys may be up to 64 characters, values must be primitive types, and the map + defaults to an empty object. + """ + + tracing: Tracing + """Optional tracing overrides for the workflow invocation. + + When omitted, tracing is enabled by default. + """ + + version: str + """Specific workflow version to run. Defaults to the latest deployed version.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chatkit_attachment.py b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chatkit_attachment.py new file mode 100644 index 0000000000000000000000000000000000000000..7750925e0380e5d21c09cc2c6fb18f61c7724576 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chatkit_attachment.py @@ -0,0 +1,27 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ChatKitAttachment"] + + +class ChatKitAttachment(BaseModel): + """Attachment metadata included on thread items.""" + + id: str + """Identifier for the attachment.""" + + mime_type: str + """MIME type of the attachment.""" + + name: str + """Original display name for the attachment.""" + + preview_url: Optional[str] = None + """Preview URL for rendering the attachment inline.""" + + type: Literal["image", "file"] + """Attachment discriminator.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chatkit_response_output_text.py b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chatkit_response_output_text.py new file mode 100644 index 0000000000000000000000000000000000000000..1348fed2b2de2ee4c48a059c7a195f0e09034377 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chatkit_response_output_text.py @@ -0,0 +1,72 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Union +from typing_extensions import Literal, Annotated, TypeAlias + +from ...._utils import PropertyInfo +from ...._models import BaseModel + +__all__ = [ + "ChatKitResponseOutputText", + "Annotation", + "AnnotationFile", + "AnnotationFileSource", + "AnnotationURL", + "AnnotationURLSource", +] + + +class AnnotationFileSource(BaseModel): + """File attachment referenced by the annotation.""" + + filename: str + """Filename referenced by the annotation.""" + + type: Literal["file"] + """Type discriminator that is always `file`.""" + + +class AnnotationFile(BaseModel): + """Annotation that references an uploaded file.""" + + source: AnnotationFileSource + """File attachment referenced by the annotation.""" + + type: Literal["file"] + """Type discriminator that is always `file` for this annotation.""" + + +class AnnotationURLSource(BaseModel): + """URL referenced by the annotation.""" + + type: Literal["url"] + """Type discriminator that is always `url`.""" + + url: str + """URL referenced by the annotation.""" + + +class AnnotationURL(BaseModel): + """Annotation that references a URL.""" + + source: AnnotationURLSource + """URL referenced by the annotation.""" + + type: Literal["url"] + """Type discriminator that is always `url` for this annotation.""" + + +Annotation: TypeAlias = Annotated[Union[AnnotationFile, AnnotationURL], PropertyInfo(discriminator="type")] + + +class ChatKitResponseOutputText(BaseModel): + """Assistant response text accompanied by optional annotations.""" + + annotations: List[Annotation] + """Ordered list of annotations attached to the response text.""" + + text: str + """Assistant generated text.""" + + type: Literal["output_text"] + """Type discriminator that is always `output_text`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chatkit_thread.py b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chatkit_thread.py new file mode 100644 index 0000000000000000000000000000000000000000..32075233d887a2247be373e793ec40da0db65923 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chatkit_thread.py @@ -0,0 +1,64 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Union, Optional +from typing_extensions import Literal, Annotated, TypeAlias + +from ...._utils import PropertyInfo +from ...._models import BaseModel + +__all__ = ["ChatKitThread", "Status", "StatusActive", "StatusLocked", "StatusClosed"] + + +class StatusActive(BaseModel): + """Indicates that a thread is active.""" + + type: Literal["active"] + """Status discriminator that is always `active`.""" + + +class StatusLocked(BaseModel): + """Indicates that a thread is locked and cannot accept new input.""" + + reason: Optional[str] = None + """Reason that the thread was locked. Defaults to null when no reason is recorded.""" + + type: Literal["locked"] + """Status discriminator that is always `locked`.""" + + +class StatusClosed(BaseModel): + """Indicates that a thread has been closed.""" + + reason: Optional[str] = None + """Reason that the thread was closed. Defaults to null when no reason is recorded.""" + + type: Literal["closed"] + """Status discriminator that is always `closed`.""" + + +Status: TypeAlias = Annotated[Union[StatusActive, StatusLocked, StatusClosed], PropertyInfo(discriminator="type")] + + +class ChatKitThread(BaseModel): + """Represents a ChatKit thread and its current status.""" + + id: str + """Identifier of the thread.""" + + created_at: int + """Unix timestamp (in seconds) for when the thread was created.""" + + object: Literal["chatkit.thread"] + """Type discriminator that is always `chatkit.thread`.""" + + status: Status + """Current status for the thread. Defaults to `active` for newly created threads.""" + + title: Optional[str] = None + """Optional human-readable title for the thread. + + Defaults to null when no title has been generated. + """ + + user: str + """Free-form string that identifies your end user who owns the thread.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chatkit_thread_assistant_message_item.py b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chatkit_thread_assistant_message_item.py new file mode 100644 index 0000000000000000000000000000000000000000..337f53a83d4b0da437285d4ada42d4272deb4ece --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chatkit_thread_assistant_message_item.py @@ -0,0 +1,31 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List +from typing_extensions import Literal + +from ...._models import BaseModel +from .chatkit_response_output_text import ChatKitResponseOutputText + +__all__ = ["ChatKitThreadAssistantMessageItem"] + + +class ChatKitThreadAssistantMessageItem(BaseModel): + """Assistant-authored message within a thread.""" + + id: str + """Identifier of the thread item.""" + + content: List[ChatKitResponseOutputText] + """Ordered assistant response segments.""" + + created_at: int + """Unix timestamp (in seconds) for when the item was created.""" + + object: Literal["chatkit.thread_item"] + """Type discriminator that is always `chatkit.thread_item`.""" + + thread_id: str + """Identifier of the parent thread.""" + + type: Literal["chatkit.assistant_message"] + """Type discriminator that is always `chatkit.assistant_message`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chatkit_thread_item_list.py b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chatkit_thread_item_list.py new file mode 100644 index 0000000000000000000000000000000000000000..049ca54429600683f29cec65f075b7d2a62cadb8 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chatkit_thread_item_list.py @@ -0,0 +1,154 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Union, Optional +from typing_extensions import Literal, Annotated, TypeAlias + +from ...._utils import PropertyInfo +from ...._models import BaseModel +from .chatkit_widget_item import ChatKitWidgetItem +from .chatkit_thread_user_message_item import ChatKitThreadUserMessageItem +from .chatkit_thread_assistant_message_item import ChatKitThreadAssistantMessageItem + +__all__ = [ + "ChatKitThreadItemList", + "Data", + "DataChatKitClientToolCall", + "DataChatKitTask", + "DataChatKitTaskGroup", + "DataChatKitTaskGroupTask", +] + + +class DataChatKitClientToolCall(BaseModel): + """Record of a client side tool invocation initiated by the assistant.""" + + id: str + """Identifier of the thread item.""" + + arguments: str + """JSON-encoded arguments that were sent to the tool.""" + + call_id: str + """Identifier for the client tool call.""" + + created_at: int + """Unix timestamp (in seconds) for when the item was created.""" + + name: str + """Tool name that was invoked.""" + + object: Literal["chatkit.thread_item"] + """Type discriminator that is always `chatkit.thread_item`.""" + + output: Optional[str] = None + """JSON-encoded output captured from the tool. + + Defaults to null while execution is in progress. + """ + + status: Literal["in_progress", "completed"] + """Execution status for the tool call.""" + + thread_id: str + """Identifier of the parent thread.""" + + type: Literal["chatkit.client_tool_call"] + """Type discriminator that is always `chatkit.client_tool_call`.""" + + +class DataChatKitTask(BaseModel): + """Task emitted by the workflow to show progress and status updates.""" + + id: str + """Identifier of the thread item.""" + + created_at: int + """Unix timestamp (in seconds) for when the item was created.""" + + heading: Optional[str] = None + """Optional heading for the task. Defaults to null when not provided.""" + + object: Literal["chatkit.thread_item"] + """Type discriminator that is always `chatkit.thread_item`.""" + + summary: Optional[str] = None + """Optional summary that describes the task. Defaults to null when omitted.""" + + task_type: Literal["custom", "thought"] + """Subtype for the task.""" + + thread_id: str + """Identifier of the parent thread.""" + + type: Literal["chatkit.task"] + """Type discriminator that is always `chatkit.task`.""" + + +class DataChatKitTaskGroupTask(BaseModel): + """Task entry that appears within a TaskGroup.""" + + heading: Optional[str] = None + """Optional heading for the grouped task. Defaults to null when not provided.""" + + summary: Optional[str] = None + """Optional summary that describes the grouped task. + + Defaults to null when omitted. + """ + + type: Literal["custom", "thought"] + """Subtype for the grouped task.""" + + +class DataChatKitTaskGroup(BaseModel): + """Collection of workflow tasks grouped together in the thread.""" + + id: str + """Identifier of the thread item.""" + + created_at: int + """Unix timestamp (in seconds) for when the item was created.""" + + object: Literal["chatkit.thread_item"] + """Type discriminator that is always `chatkit.thread_item`.""" + + tasks: List[DataChatKitTaskGroupTask] + """Tasks included in the group.""" + + thread_id: str + """Identifier of the parent thread.""" + + type: Literal["chatkit.task_group"] + """Type discriminator that is always `chatkit.task_group`.""" + + +Data: TypeAlias = Annotated[ + Union[ + ChatKitThreadUserMessageItem, + ChatKitThreadAssistantMessageItem, + ChatKitWidgetItem, + DataChatKitClientToolCall, + DataChatKitTask, + DataChatKitTaskGroup, + ], + PropertyInfo(discriminator="type"), +] + + +class ChatKitThreadItemList(BaseModel): + """A paginated list of thread items rendered for the ChatKit API.""" + + data: List[Data] + """A list of items""" + + first_id: Optional[str] = None + """The ID of the first item in the list.""" + + has_more: bool + """Whether there are more items available.""" + + last_id: Optional[str] = None + """The ID of the last item in the list.""" + + object: Literal["list"] + """The type of object returned, must be `list`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chatkit_thread_user_message_item.py b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chatkit_thread_user_message_item.py new file mode 100644 index 0000000000000000000000000000000000000000..d7552c4f2ef5342785eb31ef8017ab68dc0e7f9f --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chatkit_thread_user_message_item.py @@ -0,0 +1,87 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Union, Optional +from typing_extensions import Literal, Annotated, TypeAlias + +from ...._utils import PropertyInfo +from ...._models import BaseModel +from .chatkit_attachment import ChatKitAttachment + +__all__ = [ + "ChatKitThreadUserMessageItem", + "Content", + "ContentInputText", + "ContentQuotedText", + "InferenceOptions", + "InferenceOptionsToolChoice", +] + + +class ContentInputText(BaseModel): + """Text block that a user contributed to the thread.""" + + text: str + """Plain-text content supplied by the user.""" + + type: Literal["input_text"] + """Type discriminator that is always `input_text`.""" + + +class ContentQuotedText(BaseModel): + """Quoted snippet that the user referenced in their message.""" + + text: str + """Quoted text content.""" + + type: Literal["quoted_text"] + """Type discriminator that is always `quoted_text`.""" + + +Content: TypeAlias = Annotated[Union[ContentInputText, ContentQuotedText], PropertyInfo(discriminator="type")] + + +class InferenceOptionsToolChoice(BaseModel): + """Preferred tool to invoke. Defaults to null when ChatKit should auto-select.""" + + id: str + """Identifier of the requested tool.""" + + +class InferenceOptions(BaseModel): + """Inference overrides applied to the message. Defaults to null when unset.""" + + model: Optional[str] = None + """Model name that generated the response. + + Defaults to null when using the session default. + """ + + tool_choice: Optional[InferenceOptionsToolChoice] = None + """Preferred tool to invoke. Defaults to null when ChatKit should auto-select.""" + + +class ChatKitThreadUserMessageItem(BaseModel): + """User-authored messages within a thread.""" + + id: str + """Identifier of the thread item.""" + + attachments: List[ChatKitAttachment] + """Attachments associated with the user message. Defaults to an empty list.""" + + content: List[Content] + """Ordered content elements supplied by the user.""" + + created_at: int + """Unix timestamp (in seconds) for when the item was created.""" + + inference_options: Optional[InferenceOptions] = None + """Inference overrides applied to the message. Defaults to null when unset.""" + + object: Literal["chatkit.thread_item"] + """Type discriminator that is always `chatkit.thread_item`.""" + + thread_id: str + """Identifier of the parent thread.""" + + type: Literal["chatkit.user_message"] diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chatkit_widget_item.py b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chatkit_widget_item.py new file mode 100644 index 0000000000000000000000000000000000000000..a269c736fbda9f4fdba2f6089cdc786e14e83b26 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/chatkit_widget_item.py @@ -0,0 +1,29 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ChatKitWidgetItem"] + + +class ChatKitWidgetItem(BaseModel): + """Thread item that renders a widget payload.""" + + id: str + """Identifier of the thread item.""" + + created_at: int + """Unix timestamp (in seconds) for when the item was created.""" + + object: Literal["chatkit.thread_item"] + """Type discriminator that is always `chatkit.thread_item`.""" + + thread_id: str + """Identifier of the parent thread.""" + + type: Literal["chatkit.widget"] + """Type discriminator that is always `chatkit.widget`.""" + + widget: str + """Serialized widget payload rendered in the UI.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/session_create_params.py b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/session_create_params.py new file mode 100644 index 0000000000000000000000000000000000000000..1803d18cf64bdb71a73339b14e40afa95092e7fb --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/session_create_params.py @@ -0,0 +1,35 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Required, TypedDict + +from .chat_session_workflow_param import ChatSessionWorkflowParam +from .chat_session_rate_limits_param import ChatSessionRateLimitsParam +from .chat_session_expires_after_param import ChatSessionExpiresAfterParam +from .chat_session_chatkit_configuration_param import ChatSessionChatKitConfigurationParam + +__all__ = ["SessionCreateParams"] + + +class SessionCreateParams(TypedDict, total=False): + user: Required[str] + """ + A free-form string that identifies your end user; ensures this Session can + access other objects that have the same `user` scope. + """ + + workflow: Required[ChatSessionWorkflowParam] + """Workflow that powers the session.""" + + chatkit_configuration: ChatSessionChatKitConfigurationParam + """Optional overrides for ChatKit runtime configuration features""" + + expires_after: ChatSessionExpiresAfterParam + """Optional override for session expiration timing in seconds from creation. + + Defaults to 10 minutes. + """ + + rate_limits: ChatSessionRateLimitsParam + """Optional override for per-minute request limits. When omitted, defaults to 10.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/thread_delete_response.py b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/thread_delete_response.py new file mode 100644 index 0000000000000000000000000000000000000000..45b686bf8b8cbb742e8f42643e421d886a764704 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/thread_delete_response.py @@ -0,0 +1,20 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ThreadDeleteResponse"] + + +class ThreadDeleteResponse(BaseModel): + """Confirmation payload returned after deleting a thread.""" + + id: str + """Identifier of the deleted thread.""" + + deleted: bool + """Indicates that the thread has been deleted.""" + + object: Literal["chatkit.thread.deleted"] + """Type discriminator that is always `chatkit.thread.deleted`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/thread_list_items_params.py b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/thread_list_items_params.py new file mode 100644 index 0000000000000000000000000000000000000000..95c959d71940218a366c169884b8c888846752d6 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/thread_list_items_params.py @@ -0,0 +1,27 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, TypedDict + +__all__ = ["ThreadListItemsParams"] + + +class ThreadListItemsParams(TypedDict, total=False): + after: str + """List items created after this thread item ID. + + Defaults to null for the first page. + """ + + before: str + """List items created before this thread item ID. + + Defaults to null for the newest results. + """ + + limit: int + """Maximum number of thread items to return. Defaults to 20.""" + + order: Literal["asc", "desc"] + """Sort order for results by creation time. Defaults to `desc`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/thread_list_params.py b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/thread_list_params.py new file mode 100644 index 0000000000000000000000000000000000000000..bb759c7ea34e28cfa902eecaf99c44fc7aa5c537 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/chatkit/thread_list_params.py @@ -0,0 +1,33 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, TypedDict + +__all__ = ["ThreadListParams"] + + +class ThreadListParams(TypedDict, total=False): + after: str + """List items created after this thread item ID. + + Defaults to null for the first page. + """ + + before: str + """List items created before this thread item ID. + + Defaults to null for the newest results. + """ + + limit: int + """Maximum number of thread items to return. Defaults to 20.""" + + order: Literal["asc", "desc"] + """Sort order for results by creation time. Defaults to `desc`.""" + + user: str + """Filter threads that belong to this user identifier. + + Defaults to null to return all users. + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__init__.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..0374b9b457206db07cb9f0d0228d0dd1c2a265a8 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__init__.py @@ -0,0 +1,96 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from .session import Session as Session +from .error_event import ErrorEvent as ErrorEvent +from .conversation_item import ConversationItem as ConversationItem +from .realtime_response import RealtimeResponse as RealtimeResponse +from .response_done_event import ResponseDoneEvent as ResponseDoneEvent +from .session_update_event import SessionUpdateEvent as SessionUpdateEvent +from .realtime_client_event import RealtimeClientEvent as RealtimeClientEvent +from .realtime_server_event import RealtimeServerEvent as RealtimeServerEvent +from .response_cancel_event import ResponseCancelEvent as ResponseCancelEvent +from .response_create_event import ResponseCreateEvent as ResponseCreateEvent +from .session_create_params import SessionCreateParams as SessionCreateParams +from .session_created_event import SessionCreatedEvent as SessionCreatedEvent +from .session_updated_event import SessionUpdatedEvent as SessionUpdatedEvent +from .transcription_session import TranscriptionSession as TranscriptionSession +from .response_created_event import ResponseCreatedEvent as ResponseCreatedEvent +from .conversation_item_param import ConversationItemParam as ConversationItemParam +from .realtime_connect_params import RealtimeConnectParams as RealtimeConnectParams +from .realtime_response_usage import RealtimeResponseUsage as RealtimeResponseUsage +from .session_create_response import SessionCreateResponse as SessionCreateResponse +from .realtime_response_status import RealtimeResponseStatus as RealtimeResponseStatus +from .response_text_done_event import ResponseTextDoneEvent as ResponseTextDoneEvent +from .conversation_item_content import ConversationItemContent as ConversationItemContent +from .rate_limits_updated_event import RateLimitsUpdatedEvent as RateLimitsUpdatedEvent +from .response_audio_done_event import ResponseAudioDoneEvent as ResponseAudioDoneEvent +from .response_text_delta_event import ResponseTextDeltaEvent as ResponseTextDeltaEvent +from .conversation_created_event import ConversationCreatedEvent as ConversationCreatedEvent +from .response_audio_delta_event import ResponseAudioDeltaEvent as ResponseAudioDeltaEvent +from .session_update_event_param import SessionUpdateEventParam as SessionUpdateEventParam +from .realtime_client_event_param import RealtimeClientEventParam as RealtimeClientEventParam +from .response_cancel_event_param import ResponseCancelEventParam as ResponseCancelEventParam +from .response_create_event_param import ResponseCreateEventParam as ResponseCreateEventParam +from .transcription_session_update import TranscriptionSessionUpdate as TranscriptionSessionUpdate +from .conversation_item_create_event import ConversationItemCreateEvent as ConversationItemCreateEvent +from .conversation_item_delete_event import ConversationItemDeleteEvent as ConversationItemDeleteEvent +from .input_audio_buffer_clear_event import InputAudioBufferClearEvent as InputAudioBufferClearEvent +from .conversation_item_content_param import ConversationItemContentParam as ConversationItemContentParam +from .conversation_item_created_event import ConversationItemCreatedEvent as ConversationItemCreatedEvent +from .conversation_item_deleted_event import ConversationItemDeletedEvent as ConversationItemDeletedEvent +from .input_audio_buffer_append_event import InputAudioBufferAppendEvent as InputAudioBufferAppendEvent +from .input_audio_buffer_commit_event import InputAudioBufferCommitEvent as InputAudioBufferCommitEvent +from .response_output_item_done_event import ResponseOutputItemDoneEvent as ResponseOutputItemDoneEvent +from .conversation_item_retrieve_event import ConversationItemRetrieveEvent as ConversationItemRetrieveEvent +from .conversation_item_truncate_event import ConversationItemTruncateEvent as ConversationItemTruncateEvent +from .conversation_item_with_reference import ConversationItemWithReference as ConversationItemWithReference +from .input_audio_buffer_cleared_event import InputAudioBufferClearedEvent as InputAudioBufferClearedEvent +from .response_content_part_done_event import ResponseContentPartDoneEvent as ResponseContentPartDoneEvent +from .response_output_item_added_event import ResponseOutputItemAddedEvent as ResponseOutputItemAddedEvent +from .conversation_item_truncated_event import ConversationItemTruncatedEvent as ConversationItemTruncatedEvent +from .response_content_part_added_event import ResponseContentPartAddedEvent as ResponseContentPartAddedEvent +from .input_audio_buffer_committed_event import InputAudioBufferCommittedEvent as InputAudioBufferCommittedEvent +from .transcription_session_update_param import TranscriptionSessionUpdateParam as TranscriptionSessionUpdateParam +from .transcription_session_create_params import TranscriptionSessionCreateParams as TranscriptionSessionCreateParams +from .transcription_session_updated_event import TranscriptionSessionUpdatedEvent as TranscriptionSessionUpdatedEvent +from .conversation_item_create_event_param import ConversationItemCreateEventParam as ConversationItemCreateEventParam +from .conversation_item_delete_event_param import ConversationItemDeleteEventParam as ConversationItemDeleteEventParam +from .input_audio_buffer_clear_event_param import InputAudioBufferClearEventParam as InputAudioBufferClearEventParam +from .response_audio_transcript_done_event import ResponseAudioTranscriptDoneEvent as ResponseAudioTranscriptDoneEvent +from .input_audio_buffer_append_event_param import InputAudioBufferAppendEventParam as InputAudioBufferAppendEventParam +from .input_audio_buffer_commit_event_param import InputAudioBufferCommitEventParam as InputAudioBufferCommitEventParam +from .response_audio_transcript_delta_event import ( + ResponseAudioTranscriptDeltaEvent as ResponseAudioTranscriptDeltaEvent, +) +from .conversation_item_retrieve_event_param import ( + ConversationItemRetrieveEventParam as ConversationItemRetrieveEventParam, +) +from .conversation_item_truncate_event_param import ( + ConversationItemTruncateEventParam as ConversationItemTruncateEventParam, +) +from .conversation_item_with_reference_param import ( + ConversationItemWithReferenceParam as ConversationItemWithReferenceParam, +) +from .input_audio_buffer_speech_started_event import ( + InputAudioBufferSpeechStartedEvent as InputAudioBufferSpeechStartedEvent, +) +from .input_audio_buffer_speech_stopped_event import ( + InputAudioBufferSpeechStoppedEvent as InputAudioBufferSpeechStoppedEvent, +) +from .response_function_call_arguments_done_event import ( + ResponseFunctionCallArgumentsDoneEvent as ResponseFunctionCallArgumentsDoneEvent, +) +from .response_function_call_arguments_delta_event import ( + ResponseFunctionCallArgumentsDeltaEvent as ResponseFunctionCallArgumentsDeltaEvent, +) +from .conversation_item_input_audio_transcription_delta_event import ( + ConversationItemInputAudioTranscriptionDeltaEvent as ConversationItemInputAudioTranscriptionDeltaEvent, +) +from .conversation_item_input_audio_transcription_failed_event import ( + ConversationItemInputAudioTranscriptionFailedEvent as ConversationItemInputAudioTranscriptionFailedEvent, +) +from .conversation_item_input_audio_transcription_completed_event import ( + ConversationItemInputAudioTranscriptionCompletedEvent as ConversationItemInputAudioTranscriptionCompletedEvent, +) diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/__init__.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..88406416e942135934c4a9b27727d6c0159cfdda Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/__init__.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_created_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_created_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ea627c904a71cdd52f449e3e777919678246bb24 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_created_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..39293c94a5166c1e381d820252e781f9dc72f295 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_content.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_content.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0825ff356ddc35b86b252bb99142126a58db4af2 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_content.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_content_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_content_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..92cfcd7003204aaae2a691d04c43a7d8b9c5afcc Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_content_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_create_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_create_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3957cc58289e2500fd5092ab8dfdd1d996354e76 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_create_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_create_event_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_create_event_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..815ef49682f4e742d15fc77e4d4f49d0e370622e Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_create_event_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_created_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_created_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2972793d3c95ee3bb5c12a64f35ad6e0861be522 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_created_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_delete_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_delete_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9266dba4dc37681114ac17c5e190c5c4b250edf1 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_delete_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_delete_event_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_delete_event_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..68a60d7e1da88ef5e94601187dc4f3b11319f4f8 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_delete_event_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_deleted_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_deleted_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8d286de94f4d6d995f6a9cae8685b3e1e3b10cbb Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_deleted_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_input_audio_transcription_completed_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_input_audio_transcription_completed_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..420a28c418a9a984099d85a51307ada95875867c Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_input_audio_transcription_completed_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_input_audio_transcription_delta_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_input_audio_transcription_delta_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ce7d277861fcfe9adc0161bf367b470c328adc77 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_input_audio_transcription_delta_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_input_audio_transcription_failed_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_input_audio_transcription_failed_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6b95efbb53bc9974b25f3e307ab8e4308314d82a Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_input_audio_transcription_failed_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7df9abc50bf47ad918c31ff5cbb0be9b0a5fcb74 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_retrieve_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_retrieve_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fd879465ae178a9d31bc6ab64795bd0106ddedc6 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_retrieve_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_retrieve_event_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_retrieve_event_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..431ca279c2f6b12de8f7c7c3bb0a8dc65f056872 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_retrieve_event_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_truncate_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_truncate_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..da61993fcafa2c4ba652aaff00fd2d6e64b057dd Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_truncate_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_truncate_event_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_truncate_event_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..71049b37952fcd47935fefa51d4c72b075c29deb Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_truncate_event_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_truncated_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_truncated_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3365986ec49c0443337677a4f94a9a6479678286 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_truncated_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_with_reference.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_with_reference.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..aa97d47433797e4beee5cbdcb6382e10cac14035 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_with_reference.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_with_reference_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_with_reference_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..461413f46beed7c2512f17a92cc272bbfad4c432 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/conversation_item_with_reference_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/error_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/error_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e5a541c03d917d317006757e5505ead6e51bd3a6 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/error_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/input_audio_buffer_append_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/input_audio_buffer_append_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..77eb7934434be22241668cf468e99003a0fbf2a5 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/input_audio_buffer_append_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/input_audio_buffer_append_event_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/input_audio_buffer_append_event_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c6953232dc1692aff948a2384f7456bc01b69cbb Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/input_audio_buffer_append_event_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/input_audio_buffer_clear_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/input_audio_buffer_clear_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e1cf220f5fe63d300f5178bcfb04005b5c13076e Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/input_audio_buffer_clear_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/input_audio_buffer_clear_event_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/input_audio_buffer_clear_event_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..18ea9a1ea80172c680f3a5dc6fbd96f897b4414e Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/input_audio_buffer_clear_event_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/input_audio_buffer_cleared_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/input_audio_buffer_cleared_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..49c9b5972f2913847b7b2bfd96808636732937f5 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/input_audio_buffer_cleared_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/input_audio_buffer_commit_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/input_audio_buffer_commit_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..868d585ce333e0727cd55b5255a5a808447f760b Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/input_audio_buffer_commit_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/input_audio_buffer_commit_event_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/input_audio_buffer_commit_event_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..531c3d6a35450488edcb55c7429b0c47f84a8a1b Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/input_audio_buffer_commit_event_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/input_audio_buffer_committed_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/input_audio_buffer_committed_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..45b2402bcff2c654ad78c29b2a810c0e24e55ff6 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/input_audio_buffer_committed_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/input_audio_buffer_speech_started_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/input_audio_buffer_speech_started_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ceb8f15dc54206a8036adde8c32d208504346b7a Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/input_audio_buffer_speech_started_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/input_audio_buffer_speech_stopped_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/input_audio_buffer_speech_stopped_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a862fdcea8bc5f0bb06da2d1e3f2988ea09fbefb Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/input_audio_buffer_speech_stopped_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/rate_limits_updated_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/rate_limits_updated_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9ea1727ed3c9f526a302c79a4c2a0507a817707a Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/rate_limits_updated_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/realtime_client_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/realtime_client_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f2466b69cdc9705da9ac0d033c89cead5fa99dc8 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/realtime_client_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/realtime_client_event_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/realtime_client_event_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..48e0f20a4c2ead2b680d723b9620096c12d93eb0 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/realtime_client_event_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/realtime_connect_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/realtime_connect_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0f2f9e5bcf1f99d8a2d582f583d75f825815599f Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/realtime_connect_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/realtime_response.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/realtime_response.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..008471578051348be6168bec1ccb6e130707e7de Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/realtime_response.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/realtime_response_status.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/realtime_response_status.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1db32e73a71bbe03275a781aa59e4417f67f38b4 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/realtime_response_status.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/realtime_response_usage.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/realtime_response_usage.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..427522bd0469544841ce05e367f8d16ac4a4e705 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/realtime_response_usage.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/realtime_server_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/realtime_server_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a73a4917fb31d531c6cb8c860fa6da3f6619460a Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/realtime_server_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_audio_delta_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_audio_delta_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..33bb25670653df6c8f8f41a5c482dfd3a53ec44e Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_audio_delta_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_audio_done_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_audio_done_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..32d2ea51d1137706d757322836c7b8ca7961a7eb Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_audio_done_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_audio_transcript_delta_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_audio_transcript_delta_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a531dc370497d98e36c6c9bbf65f620b47242be9 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_audio_transcript_delta_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_audio_transcript_done_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_audio_transcript_done_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1155e4a15db6a570bd2e159731912b5997438a90 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_audio_transcript_done_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_cancel_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_cancel_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2e1c974f73406f64bfb4bbbc7135bf721ce748bc Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_cancel_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_cancel_event_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_cancel_event_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d731c36334a01e11be1e2ba50c0e2b106c32ca40 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_cancel_event_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_content_part_added_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_content_part_added_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f387a84f45e616c8a29ea4f3ef4736773d74034f Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_content_part_added_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_content_part_done_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_content_part_done_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2a8906cff1e57cfc33d98a915e369d9f08327194 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_content_part_done_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_create_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_create_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c8d322b62b23c170af913b8d9fbf73bbaea3b266 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_create_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_create_event_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_create_event_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..664de55c14a0a29a69651b7c59ca2c14ac449f69 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_create_event_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_created_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_created_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b88a5ca6d6b0cfff9ae17de6fe299258e22090ae Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_created_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_done_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_done_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5039e5ca7b5b1c9587102dd9917664bfe8afca7d Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_done_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_function_call_arguments_delta_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_function_call_arguments_delta_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7a8efe7bc8be2c0642f5c23bc05357d25cb49ca0 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_function_call_arguments_delta_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_function_call_arguments_done_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_function_call_arguments_done_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1793ce4529301a902260d1cc67bf8ff042b1d38d Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_function_call_arguments_done_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_output_item_added_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_output_item_added_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..eed4093b3ba8da39813646efb7b90a4c306cb62d Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_output_item_added_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_output_item_done_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_output_item_done_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ee4c9daa1fecaef2fde43530764ab5dfe44673e5 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_output_item_done_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_text_delta_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_text_delta_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6346fa60b9b79c324282850b3905e9d721cfadce Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_text_delta_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_text_done_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_text_done_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cf1339904ce7d4ca40f16540818ca3c0c84d0270 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/response_text_done_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/session.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/session.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7717079066eeaba77fd05bcf00640cdcde61f478 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/session.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/session_create_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/session_create_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3b6caadedce1602b444a31ab46f46ff50bd53a57 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/session_create_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/session_create_response.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/session_create_response.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a74845d2829ff6d93ea41116229b7cab2a0cec05 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/session_create_response.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/session_created_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/session_created_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..206cfd03ed6f10abd77196e4bf390aed6d08e8b1 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/session_created_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/session_update_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/session_update_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fc92e306a16db5a6c9fa5640d7a6ea162ef2fb93 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/session_update_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/session_update_event_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/session_update_event_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b2131e49919000f0600f60b6d9b92c9f2ea5e274 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/session_update_event_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/session_updated_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/session_updated_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6db6ecd9a0e6fba3b1977f0013b30f3cb7df66bb Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/session_updated_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/transcription_session.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/transcription_session.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8079070742d0cb0f037fdbec752ee30366160c08 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/transcription_session.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/transcription_session_create_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/transcription_session_create_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7ec96ca98d0e43ac3acfae149c96b88988870713 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/transcription_session_create_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/transcription_session_update.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/transcription_session_update.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9dd3980b4c0a496e9dfc28968a7a9fb2952b24d5 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/transcription_session_update.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/transcription_session_update_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/transcription_session_update_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..87a41420f13b32a7793785a55acdde2936774751 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/transcription_session_update_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/transcription_session_updated_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/transcription_session_updated_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f335fba1a836ce15df24df633db1ed6f0ccfd3e3 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/__pycache__/transcription_session_updated_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_created_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_created_event.py new file mode 100644 index 0000000000000000000000000000000000000000..4ba054086704592c97dabdcb9b8733116964ea3c --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_created_event.py @@ -0,0 +1,27 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ConversationCreatedEvent", "Conversation"] + + +class Conversation(BaseModel): + id: Optional[str] = None + """The unique ID of the conversation.""" + + object: Optional[Literal["realtime.conversation"]] = None + """The object type, must be `realtime.conversation`.""" + + +class ConversationCreatedEvent(BaseModel): + conversation: Conversation + """The conversation resource.""" + + event_id: str + """The unique ID of the server event.""" + + type: Literal["conversation.created"] + """The event type, must be `conversation.created`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item.py new file mode 100644 index 0000000000000000000000000000000000000000..21b7a8ac1fb1280bf45d7bcb20d7fc010af7b076 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item.py @@ -0,0 +1,61 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from typing_extensions import Literal + +from ...._models import BaseModel +from .conversation_item_content import ConversationItemContent + +__all__ = ["ConversationItem"] + + +class ConversationItem(BaseModel): + id: Optional[str] = None + """ + The unique ID of the item, this can be generated by the client to help manage + server-side context, but is not required because the server will generate one if + not provided. + """ + + arguments: Optional[str] = None + """The arguments of the function call (for `function_call` items).""" + + call_id: Optional[str] = None + """ + The ID of the function call (for `function_call` and `function_call_output` + items). If passed on a `function_call_output` item, the server will check that a + `function_call` item with the same ID exists in the conversation history. + """ + + content: Optional[List[ConversationItemContent]] = None + """The content of the message, applicable for `message` items. + + - Message items of role `system` support only `input_text` content + - Message items of role `user` support `input_text` and `input_audio` content + - Message items of role `assistant` support `text` content. + """ + + name: Optional[str] = None + """The name of the function being called (for `function_call` items).""" + + object: Optional[Literal["realtime.item"]] = None + """Identifier for the API object being returned - always `realtime.item`.""" + + output: Optional[str] = None + """The output of the function call (for `function_call_output` items).""" + + role: Optional[Literal["user", "assistant", "system"]] = None + """ + The role of the message sender (`user`, `assistant`, `system`), only applicable + for `message` items. + """ + + status: Optional[Literal["completed", "incomplete", "in_progress"]] = None + """The status of the item (`completed`, `incomplete`, `in_progress`). + + These have no effect on the conversation, but are accepted for consistency with + the `conversation.item.created` event. + """ + + type: Optional[Literal["message", "function_call", "function_call_output"]] = None + """The type of the item (`message`, `function_call`, `function_call_output`).""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_content.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_content.py new file mode 100644 index 0000000000000000000000000000000000000000..fe9cef80e3f80c13cdd811e837778e08c1163753 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_content.py @@ -0,0 +1,32 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ConversationItemContent"] + + +class ConversationItemContent(BaseModel): + id: Optional[str] = None + """ + ID of a previous conversation item to reference (for `item_reference` content + types in `response.create` events). These can reference both client and server + created items. + """ + + audio: Optional[str] = None + """Base64-encoded audio bytes, used for `input_audio` content type.""" + + text: Optional[str] = None + """The text content, used for `input_text` and `text` content types.""" + + transcript: Optional[str] = None + """The transcript of the audio, used for `input_audio` and `audio` content types.""" + + type: Optional[Literal["input_text", "input_audio", "item_reference", "text", "audio"]] = None + """ + The content type (`input_text`, `input_audio`, `item_reference`, `text`, + `audio`). + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_content_param.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_content_param.py new file mode 100644 index 0000000000000000000000000000000000000000..6042e7f90fd96b0a6afeba047549340db0b4c758 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_content_param.py @@ -0,0 +1,31 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, TypedDict + +__all__ = ["ConversationItemContentParam"] + + +class ConversationItemContentParam(TypedDict, total=False): + id: str + """ + ID of a previous conversation item to reference (for `item_reference` content + types in `response.create` events). These can reference both client and server + created items. + """ + + audio: str + """Base64-encoded audio bytes, used for `input_audio` content type.""" + + text: str + """The text content, used for `input_text` and `text` content types.""" + + transcript: str + """The transcript of the audio, used for `input_audio` and `audio` content types.""" + + type: Literal["input_text", "input_audio", "item_reference", "text", "audio"] + """ + The content type (`input_text`, `input_audio`, `item_reference`, `text`, + `audio`). + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_create_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_create_event.py new file mode 100644 index 0000000000000000000000000000000000000000..f19d552a92172320497f399acaebc6699a846a78 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_create_event.py @@ -0,0 +1,29 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel +from .conversation_item import ConversationItem + +__all__ = ["ConversationItemCreateEvent"] + + +class ConversationItemCreateEvent(BaseModel): + item: ConversationItem + """The item to add to the conversation.""" + + type: Literal["conversation.item.create"] + """The event type, must be `conversation.item.create`.""" + + event_id: Optional[str] = None + """Optional client-generated ID used to identify this event.""" + + previous_item_id: Optional[str] = None + """The ID of the preceding item after which the new item will be inserted. + + If not set, the new item will be appended to the end of the conversation. If set + to `root`, the new item will be added to the beginning of the conversation. If + set to an existing ID, it allows an item to be inserted mid-conversation. If the + ID cannot be found, an error will be returned and the item will not be added. + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_create_event_param.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_create_event_param.py new file mode 100644 index 0000000000000000000000000000000000000000..693d0fd54d83049d390469d71c1871ca66cc088c --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_create_event_param.py @@ -0,0 +1,29 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +from .conversation_item_param import ConversationItemParam + +__all__ = ["ConversationItemCreateEventParam"] + + +class ConversationItemCreateEventParam(TypedDict, total=False): + item: Required[ConversationItemParam] + """The item to add to the conversation.""" + + type: Required[Literal["conversation.item.create"]] + """The event type, must be `conversation.item.create`.""" + + event_id: str + """Optional client-generated ID used to identify this event.""" + + previous_item_id: str + """The ID of the preceding item after which the new item will be inserted. + + If not set, the new item will be appended to the end of the conversation. If set + to `root`, the new item will be added to the beginning of the conversation. If + set to an existing ID, it allows an item to be inserted mid-conversation. If the + ID cannot be found, an error will be returned and the item will not be added. + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_created_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_created_event.py new file mode 100644 index 0000000000000000000000000000000000000000..aea7ad5b4b50c63aacc520d7768079ecf8b39d1f --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_created_event.py @@ -0,0 +1,27 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel +from .conversation_item import ConversationItem + +__all__ = ["ConversationItemCreatedEvent"] + + +class ConversationItemCreatedEvent(BaseModel): + event_id: str + """The unique ID of the server event.""" + + item: ConversationItem + """The item to add to the conversation.""" + + type: Literal["conversation.item.created"] + """The event type, must be `conversation.item.created`.""" + + previous_item_id: Optional[str] = None + """ + The ID of the preceding item in the Conversation context, allows the client to + understand the order of the conversation. Can be `null` if the item has no + predecessor. + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_delete_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_delete_event.py new file mode 100644 index 0000000000000000000000000000000000000000..02ca8250ce4083a67a793588d6235915df52c661 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_delete_event.py @@ -0,0 +1,19 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ConversationItemDeleteEvent"] + + +class ConversationItemDeleteEvent(BaseModel): + item_id: str + """The ID of the item to delete.""" + + type: Literal["conversation.item.delete"] + """The event type, must be `conversation.item.delete`.""" + + event_id: Optional[str] = None + """Optional client-generated ID used to identify this event.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_delete_event_param.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_delete_event_param.py new file mode 100644 index 0000000000000000000000000000000000000000..c3f88d66277337fe1cb97223cde9d24e89dbce83 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_delete_event_param.py @@ -0,0 +1,18 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["ConversationItemDeleteEventParam"] + + +class ConversationItemDeleteEventParam(TypedDict, total=False): + item_id: Required[str] + """The ID of the item to delete.""" + + type: Required[Literal["conversation.item.delete"]] + """The event type, must be `conversation.item.delete`.""" + + event_id: str + """Optional client-generated ID used to identify this event.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_deleted_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_deleted_event.py new file mode 100644 index 0000000000000000000000000000000000000000..a35a97817a3b980cf12e6cd5c2eccafcb66234f9 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_deleted_event.py @@ -0,0 +1,18 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ConversationItemDeletedEvent"] + + +class ConversationItemDeletedEvent(BaseModel): + event_id: str + """The unique ID of the server event.""" + + item_id: str + """The ID of the item that was deleted.""" + + type: Literal["conversation.item.deleted"] + """The event type, must be `conversation.item.deleted`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_input_audio_transcription_completed_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_input_audio_transcription_completed_event.py new file mode 100644 index 0000000000000000000000000000000000000000..e7c457d4b20781c26001a1468fdcababea8dc53c --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_input_audio_transcription_completed_event.py @@ -0,0 +1,87 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Union, Optional +from typing_extensions import Literal, TypeAlias + +from ...._models import BaseModel + +__all__ = [ + "ConversationItemInputAudioTranscriptionCompletedEvent", + "Usage", + "UsageTranscriptTextUsageTokens", + "UsageTranscriptTextUsageTokensInputTokenDetails", + "UsageTranscriptTextUsageDuration", + "Logprob", +] + + +class UsageTranscriptTextUsageTokensInputTokenDetails(BaseModel): + audio_tokens: Optional[int] = None + """Number of audio tokens billed for this request.""" + + text_tokens: Optional[int] = None + """Number of text tokens billed for this request.""" + + +class UsageTranscriptTextUsageTokens(BaseModel): + input_tokens: int + """Number of input tokens billed for this request.""" + + output_tokens: int + """Number of output tokens generated.""" + + total_tokens: int + """Total number of tokens used (input + output).""" + + type: Literal["tokens"] + """The type of the usage object. Always `tokens` for this variant.""" + + input_token_details: Optional[UsageTranscriptTextUsageTokensInputTokenDetails] = None + """Details about the input tokens billed for this request.""" + + +class UsageTranscriptTextUsageDuration(BaseModel): + seconds: float + """Duration of the input audio in seconds.""" + + type: Literal["duration"] + """The type of the usage object. Always `duration` for this variant.""" + + +Usage: TypeAlias = Union[UsageTranscriptTextUsageTokens, UsageTranscriptTextUsageDuration] + + +class Logprob(BaseModel): + token: str + """The token that was used to generate the log probability.""" + + bytes: List[int] + """The bytes that were used to generate the log probability.""" + + logprob: float + """The log probability of the token.""" + + +class ConversationItemInputAudioTranscriptionCompletedEvent(BaseModel): + content_index: int + """The index of the content part containing the audio.""" + + event_id: str + """The unique ID of the server event.""" + + item_id: str + """The ID of the user message item containing the audio.""" + + transcript: str + """The transcribed text.""" + + type: Literal["conversation.item.input_audio_transcription.completed"] + """ + The event type, must be `conversation.item.input_audio_transcription.completed`. + """ + + usage: Usage + """Usage statistics for the transcription.""" + + logprobs: Optional[List[Logprob]] = None + """The log probabilities of the transcription.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_input_audio_transcription_delta_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_input_audio_transcription_delta_event.py new file mode 100644 index 0000000000000000000000000000000000000000..924d06d98ab958d1c9858ef1c870fe64a2bedfb5 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_input_audio_transcription_delta_event.py @@ -0,0 +1,39 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ConversationItemInputAudioTranscriptionDeltaEvent", "Logprob"] + + +class Logprob(BaseModel): + token: str + """The token that was used to generate the log probability.""" + + bytes: List[int] + """The bytes that were used to generate the log probability.""" + + logprob: float + """The log probability of the token.""" + + +class ConversationItemInputAudioTranscriptionDeltaEvent(BaseModel): + event_id: str + """The unique ID of the server event.""" + + item_id: str + """The ID of the item.""" + + type: Literal["conversation.item.input_audio_transcription.delta"] + """The event type, must be `conversation.item.input_audio_transcription.delta`.""" + + content_index: Optional[int] = None + """The index of the content part in the item's content array.""" + + delta: Optional[str] = None + """The text delta.""" + + logprobs: Optional[List[Logprob]] = None + """The log probabilities of the transcription.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_input_audio_transcription_failed_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_input_audio_transcription_failed_event.py new file mode 100644 index 0000000000000000000000000000000000000000..cecac93e64951b16df461e97458bcbed1a495cb3 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_input_audio_transcription_failed_event.py @@ -0,0 +1,39 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ConversationItemInputAudioTranscriptionFailedEvent", "Error"] + + +class Error(BaseModel): + code: Optional[str] = None + """Error code, if any.""" + + message: Optional[str] = None + """A human-readable error message.""" + + param: Optional[str] = None + """Parameter related to the error, if any.""" + + type: Optional[str] = None + """The type of error.""" + + +class ConversationItemInputAudioTranscriptionFailedEvent(BaseModel): + content_index: int + """The index of the content part containing the audio.""" + + error: Error + """Details of the transcription error.""" + + event_id: str + """The unique ID of the server event.""" + + item_id: str + """The ID of the user message item.""" + + type: Literal["conversation.item.input_audio_transcription.failed"] + """The event type, must be `conversation.item.input_audio_transcription.failed`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_param.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_param.py new file mode 100644 index 0000000000000000000000000000000000000000..8bbd539c0c118695db4854144e319ca233be570d --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_param.py @@ -0,0 +1,62 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Iterable +from typing_extensions import Literal, TypedDict + +from .conversation_item_content_param import ConversationItemContentParam + +__all__ = ["ConversationItemParam"] + + +class ConversationItemParam(TypedDict, total=False): + id: str + """ + The unique ID of the item, this can be generated by the client to help manage + server-side context, but is not required because the server will generate one if + not provided. + """ + + arguments: str + """The arguments of the function call (for `function_call` items).""" + + call_id: str + """ + The ID of the function call (for `function_call` and `function_call_output` + items). If passed on a `function_call_output` item, the server will check that a + `function_call` item with the same ID exists in the conversation history. + """ + + content: Iterable[ConversationItemContentParam] + """The content of the message, applicable for `message` items. + + - Message items of role `system` support only `input_text` content + - Message items of role `user` support `input_text` and `input_audio` content + - Message items of role `assistant` support `text` content. + """ + + name: str + """The name of the function being called (for `function_call` items).""" + + object: Literal["realtime.item"] + """Identifier for the API object being returned - always `realtime.item`.""" + + output: str + """The output of the function call (for `function_call_output` items).""" + + role: Literal["user", "assistant", "system"] + """ + The role of the message sender (`user`, `assistant`, `system`), only applicable + for `message` items. + """ + + status: Literal["completed", "incomplete", "in_progress"] + """The status of the item (`completed`, `incomplete`, `in_progress`). + + These have no effect on the conversation, but are accepted for consistency with + the `conversation.item.created` event. + """ + + type: Literal["message", "function_call", "function_call_output"] + """The type of the item (`message`, `function_call`, `function_call_output`).""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_retrieve_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_retrieve_event.py new file mode 100644 index 0000000000000000000000000000000000000000..822386055c2ef15d84a8df07dd48b9eb06ccb259 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_retrieve_event.py @@ -0,0 +1,19 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ConversationItemRetrieveEvent"] + + +class ConversationItemRetrieveEvent(BaseModel): + item_id: str + """The ID of the item to retrieve.""" + + type: Literal["conversation.item.retrieve"] + """The event type, must be `conversation.item.retrieve`.""" + + event_id: Optional[str] = None + """Optional client-generated ID used to identify this event.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_retrieve_event_param.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_retrieve_event_param.py new file mode 100644 index 0000000000000000000000000000000000000000..71b3ffa499e323b9aca3c2c92c26648e0bff1cf9 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_retrieve_event_param.py @@ -0,0 +1,18 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["ConversationItemRetrieveEventParam"] + + +class ConversationItemRetrieveEventParam(TypedDict, total=False): + item_id: Required[str] + """The ID of the item to retrieve.""" + + type: Required[Literal["conversation.item.retrieve"]] + """The event type, must be `conversation.item.retrieve`.""" + + event_id: str + """Optional client-generated ID used to identify this event.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_truncate_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_truncate_event.py new file mode 100644 index 0000000000000000000000000000000000000000..cb336bba2c5b63842957dec185ec4d9086daf281 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_truncate_event.py @@ -0,0 +1,32 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ConversationItemTruncateEvent"] + + +class ConversationItemTruncateEvent(BaseModel): + audio_end_ms: int + """Inclusive duration up to which audio is truncated, in milliseconds. + + If the audio_end_ms is greater than the actual audio duration, the server will + respond with an error. + """ + + content_index: int + """The index of the content part to truncate. Set this to 0.""" + + item_id: str + """The ID of the assistant message item to truncate. + + Only assistant message items can be truncated. + """ + + type: Literal["conversation.item.truncate"] + """The event type, must be `conversation.item.truncate`.""" + + event_id: Optional[str] = None + """Optional client-generated ID used to identify this event.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_truncate_event_param.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_truncate_event_param.py new file mode 100644 index 0000000000000000000000000000000000000000..d3ad1e1e25aa3160d485a614fd76aa9a250d8cb7 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_truncate_event_param.py @@ -0,0 +1,31 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["ConversationItemTruncateEventParam"] + + +class ConversationItemTruncateEventParam(TypedDict, total=False): + audio_end_ms: Required[int] + """Inclusive duration up to which audio is truncated, in milliseconds. + + If the audio_end_ms is greater than the actual audio duration, the server will + respond with an error. + """ + + content_index: Required[int] + """The index of the content part to truncate. Set this to 0.""" + + item_id: Required[str] + """The ID of the assistant message item to truncate. + + Only assistant message items can be truncated. + """ + + type: Required[Literal["conversation.item.truncate"]] + """The event type, must be `conversation.item.truncate`.""" + + event_id: str + """Optional client-generated ID used to identify this event.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_truncated_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_truncated_event.py new file mode 100644 index 0000000000000000000000000000000000000000..36368fa28ff1f5d51a8c260900d36c896291f1f8 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_truncated_event.py @@ -0,0 +1,24 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ConversationItemTruncatedEvent"] + + +class ConversationItemTruncatedEvent(BaseModel): + audio_end_ms: int + """The duration up to which the audio was truncated, in milliseconds.""" + + content_index: int + """The index of the content part that was truncated.""" + + event_id: str + """The unique ID of the server event.""" + + item_id: str + """The ID of the assistant message item that was truncated.""" + + type: Literal["conversation.item.truncated"] + """The event type, must be `conversation.item.truncated`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_with_reference.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_with_reference.py new file mode 100644 index 0000000000000000000000000000000000000000..0edcfc76b61a2c582d2213675c0bcb5157bf0edb --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_with_reference.py @@ -0,0 +1,87 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ConversationItemWithReference", "Content"] + + +class Content(BaseModel): + id: Optional[str] = None + """ + ID of a previous conversation item to reference (for `item_reference` content + types in `response.create` events). These can reference both client and server + created items. + """ + + audio: Optional[str] = None + """Base64-encoded audio bytes, used for `input_audio` content type.""" + + text: Optional[str] = None + """The text content, used for `input_text` and `text` content types.""" + + transcript: Optional[str] = None + """The transcript of the audio, used for `input_audio` content type.""" + + type: Optional[Literal["input_text", "input_audio", "item_reference", "text"]] = None + """The content type (`input_text`, `input_audio`, `item_reference`, `text`).""" + + +class ConversationItemWithReference(BaseModel): + id: Optional[str] = None + """ + For an item of type (`message` | `function_call` | `function_call_output`) this + field allows the client to assign the unique ID of the item. It is not required + because the server will generate one if not provided. + + For an item of type `item_reference`, this field is required and is a reference + to any item that has previously existed in the conversation. + """ + + arguments: Optional[str] = None + """The arguments of the function call (for `function_call` items).""" + + call_id: Optional[str] = None + """ + The ID of the function call (for `function_call` and `function_call_output` + items). If passed on a `function_call_output` item, the server will check that a + `function_call` item with the same ID exists in the conversation history. + """ + + content: Optional[List[Content]] = None + """The content of the message, applicable for `message` items. + + - Message items of role `system` support only `input_text` content + - Message items of role `user` support `input_text` and `input_audio` content + - Message items of role `assistant` support `text` content. + """ + + name: Optional[str] = None + """The name of the function being called (for `function_call` items).""" + + object: Optional[Literal["realtime.item"]] = None + """Identifier for the API object being returned - always `realtime.item`.""" + + output: Optional[str] = None + """The output of the function call (for `function_call_output` items).""" + + role: Optional[Literal["user", "assistant", "system"]] = None + """ + The role of the message sender (`user`, `assistant`, `system`), only applicable + for `message` items. + """ + + status: Optional[Literal["completed", "incomplete", "in_progress"]] = None + """The status of the item (`completed`, `incomplete`, `in_progress`). + + These have no effect on the conversation, but are accepted for consistency with + the `conversation.item.created` event. + """ + + type: Optional[Literal["message", "function_call", "function_call_output", "item_reference"]] = None + """ + The type of the item (`message`, `function_call`, `function_call_output`, + `item_reference`). + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_with_reference_param.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_with_reference_param.py new file mode 100644 index 0000000000000000000000000000000000000000..c83dc92ab7f55ba69166dfdae49c48a7b0bdf9e9 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/conversation_item_with_reference_param.py @@ -0,0 +1,87 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Iterable +from typing_extensions import Literal, TypedDict + +__all__ = ["ConversationItemWithReferenceParam", "Content"] + + +class Content(TypedDict, total=False): + id: str + """ + ID of a previous conversation item to reference (for `item_reference` content + types in `response.create` events). These can reference both client and server + created items. + """ + + audio: str + """Base64-encoded audio bytes, used for `input_audio` content type.""" + + text: str + """The text content, used for `input_text` and `text` content types.""" + + transcript: str + """The transcript of the audio, used for `input_audio` content type.""" + + type: Literal["input_text", "input_audio", "item_reference", "text"] + """The content type (`input_text`, `input_audio`, `item_reference`, `text`).""" + + +class ConversationItemWithReferenceParam(TypedDict, total=False): + id: str + """ + For an item of type (`message` | `function_call` | `function_call_output`) this + field allows the client to assign the unique ID of the item. It is not required + because the server will generate one if not provided. + + For an item of type `item_reference`, this field is required and is a reference + to any item that has previously existed in the conversation. + """ + + arguments: str + """The arguments of the function call (for `function_call` items).""" + + call_id: str + """ + The ID of the function call (for `function_call` and `function_call_output` + items). If passed on a `function_call_output` item, the server will check that a + `function_call` item with the same ID exists in the conversation history. + """ + + content: Iterable[Content] + """The content of the message, applicable for `message` items. + + - Message items of role `system` support only `input_text` content + - Message items of role `user` support `input_text` and `input_audio` content + - Message items of role `assistant` support `text` content. + """ + + name: str + """The name of the function being called (for `function_call` items).""" + + object: Literal["realtime.item"] + """Identifier for the API object being returned - always `realtime.item`.""" + + output: str + """The output of the function call (for `function_call_output` items).""" + + role: Literal["user", "assistant", "system"] + """ + The role of the message sender (`user`, `assistant`, `system`), only applicable + for `message` items. + """ + + status: Literal["completed", "incomplete", "in_progress"] + """The status of the item (`completed`, `incomplete`, `in_progress`). + + These have no effect on the conversation, but are accepted for consistency with + the `conversation.item.created` event. + """ + + type: Literal["message", "function_call", "function_call_output", "item_reference"] + """ + The type of the item (`message`, `function_call`, `function_call_output`, + `item_reference`). + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/error_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/error_event.py new file mode 100644 index 0000000000000000000000000000000000000000..e020fc3848a7256f27d26151a325f2235bebbcb1 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/error_event.py @@ -0,0 +1,36 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ErrorEvent", "Error"] + + +class Error(BaseModel): + message: str + """A human-readable error message.""" + + type: str + """The type of error (e.g., "invalid_request_error", "server_error").""" + + code: Optional[str] = None + """Error code, if any.""" + + event_id: Optional[str] = None + """The event_id of the client event that caused the error, if applicable.""" + + param: Optional[str] = None + """Parameter related to the error, if any.""" + + +class ErrorEvent(BaseModel): + error: Error + """Details of the error.""" + + event_id: str + """The unique ID of the server event.""" + + type: Literal["error"] + """The event type, must be `error`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/input_audio_buffer_append_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/input_audio_buffer_append_event.py new file mode 100644 index 0000000000000000000000000000000000000000..a253a6488c8bd01fb2818256cfeee401d31be6d8 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/input_audio_buffer_append_event.py @@ -0,0 +1,23 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["InputAudioBufferAppendEvent"] + + +class InputAudioBufferAppendEvent(BaseModel): + audio: str + """Base64-encoded audio bytes. + + This must be in the format specified by the `input_audio_format` field in the + session configuration. + """ + + type: Literal["input_audio_buffer.append"] + """The event type, must be `input_audio_buffer.append`.""" + + event_id: Optional[str] = None + """Optional client-generated ID used to identify this event.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/input_audio_buffer_append_event_param.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/input_audio_buffer_append_event_param.py new file mode 100644 index 0000000000000000000000000000000000000000..3ad0bc737d13a24f168c73ed149fe65595e6f5e5 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/input_audio_buffer_append_event_param.py @@ -0,0 +1,22 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["InputAudioBufferAppendEventParam"] + + +class InputAudioBufferAppendEventParam(TypedDict, total=False): + audio: Required[str] + """Base64-encoded audio bytes. + + This must be in the format specified by the `input_audio_format` field in the + session configuration. + """ + + type: Required[Literal["input_audio_buffer.append"]] + """The event type, must be `input_audio_buffer.append`.""" + + event_id: str + """Optional client-generated ID used to identify this event.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/input_audio_buffer_clear_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/input_audio_buffer_clear_event.py new file mode 100644 index 0000000000000000000000000000000000000000..b0624d34df3f69180631f64da53235a491878347 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/input_audio_buffer_clear_event.py @@ -0,0 +1,16 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["InputAudioBufferClearEvent"] + + +class InputAudioBufferClearEvent(BaseModel): + type: Literal["input_audio_buffer.clear"] + """The event type, must be `input_audio_buffer.clear`.""" + + event_id: Optional[str] = None + """Optional client-generated ID used to identify this event.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/input_audio_buffer_clear_event_param.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/input_audio_buffer_clear_event_param.py new file mode 100644 index 0000000000000000000000000000000000000000..2bd6bc5a02c18d705d8cc9a8fc8801d98352de35 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/input_audio_buffer_clear_event_param.py @@ -0,0 +1,15 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["InputAudioBufferClearEventParam"] + + +class InputAudioBufferClearEventParam(TypedDict, total=False): + type: Required[Literal["input_audio_buffer.clear"]] + """The event type, must be `input_audio_buffer.clear`.""" + + event_id: str + """Optional client-generated ID used to identify this event.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/input_audio_buffer_cleared_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/input_audio_buffer_cleared_event.py new file mode 100644 index 0000000000000000000000000000000000000000..632e1b94bc6a510f86039c7e4dea84680a6decc6 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/input_audio_buffer_cleared_event.py @@ -0,0 +1,15 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["InputAudioBufferClearedEvent"] + + +class InputAudioBufferClearedEvent(BaseModel): + event_id: str + """The unique ID of the server event.""" + + type: Literal["input_audio_buffer.cleared"] + """The event type, must be `input_audio_buffer.cleared`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/input_audio_buffer_commit_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/input_audio_buffer_commit_event.py new file mode 100644 index 0000000000000000000000000000000000000000..7b6f5e46b78baaad1d4c198ee96e9fc0b7244205 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/input_audio_buffer_commit_event.py @@ -0,0 +1,16 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["InputAudioBufferCommitEvent"] + + +class InputAudioBufferCommitEvent(BaseModel): + type: Literal["input_audio_buffer.commit"] + """The event type, must be `input_audio_buffer.commit`.""" + + event_id: Optional[str] = None + """Optional client-generated ID used to identify this event.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/input_audio_buffer_commit_event_param.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/input_audio_buffer_commit_event_param.py new file mode 100644 index 0000000000000000000000000000000000000000..c9c927ab98b44782a262e95c695fab002c502c7a --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/input_audio_buffer_commit_event_param.py @@ -0,0 +1,15 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["InputAudioBufferCommitEventParam"] + + +class InputAudioBufferCommitEventParam(TypedDict, total=False): + type: Required[Literal["input_audio_buffer.commit"]] + """The event type, must be `input_audio_buffer.commit`.""" + + event_id: str + """Optional client-generated ID used to identify this event.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/input_audio_buffer_committed_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/input_audio_buffer_committed_event.py new file mode 100644 index 0000000000000000000000000000000000000000..22eb53b1170e6c63f63198fa08e6727a22936459 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/input_audio_buffer_committed_event.py @@ -0,0 +1,25 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["InputAudioBufferCommittedEvent"] + + +class InputAudioBufferCommittedEvent(BaseModel): + event_id: str + """The unique ID of the server event.""" + + item_id: str + """The ID of the user message item that will be created.""" + + type: Literal["input_audio_buffer.committed"] + """The event type, must be `input_audio_buffer.committed`.""" + + previous_item_id: Optional[str] = None + """ + The ID of the preceding item after which the new item will be inserted. Can be + `null` if the item has no predecessor. + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/input_audio_buffer_speech_started_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/input_audio_buffer_speech_started_event.py new file mode 100644 index 0000000000000000000000000000000000000000..4f3ab082c4b682268d542704df5d71aeaa1da25e --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/input_audio_buffer_speech_started_event.py @@ -0,0 +1,26 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["InputAudioBufferSpeechStartedEvent"] + + +class InputAudioBufferSpeechStartedEvent(BaseModel): + audio_start_ms: int + """ + Milliseconds from the start of all audio written to the buffer during the + session when speech was first detected. This will correspond to the beginning of + audio sent to the model, and thus includes the `prefix_padding_ms` configured in + the Session. + """ + + event_id: str + """The unique ID of the server event.""" + + item_id: str + """The ID of the user message item that will be created when speech stops.""" + + type: Literal["input_audio_buffer.speech_started"] + """The event type, must be `input_audio_buffer.speech_started`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/input_audio_buffer_speech_stopped_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/input_audio_buffer_speech_stopped_event.py new file mode 100644 index 0000000000000000000000000000000000000000..40568170f2a861cc7d2c49aa867170658732c1a8 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/input_audio_buffer_speech_stopped_event.py @@ -0,0 +1,25 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["InputAudioBufferSpeechStoppedEvent"] + + +class InputAudioBufferSpeechStoppedEvent(BaseModel): + audio_end_ms: int + """Milliseconds since the session started when speech stopped. + + This will correspond to the end of audio sent to the model, and thus includes + the `min_silence_duration_ms` configured in the Session. + """ + + event_id: str + """The unique ID of the server event.""" + + item_id: str + """The ID of the user message item that will be created.""" + + type: Literal["input_audio_buffer.speech_stopped"] + """The event type, must be `input_audio_buffer.speech_stopped`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/rate_limits_updated_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/rate_limits_updated_event.py new file mode 100644 index 0000000000000000000000000000000000000000..7e12283c4675cdcc26643eb7648a60a63443c2f5 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/rate_limits_updated_event.py @@ -0,0 +1,33 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["RateLimitsUpdatedEvent", "RateLimit"] + + +class RateLimit(BaseModel): + limit: Optional[int] = None + """The maximum allowed value for the rate limit.""" + + name: Optional[Literal["requests", "tokens"]] = None + """The name of the rate limit (`requests`, `tokens`).""" + + remaining: Optional[int] = None + """The remaining value before the limit is reached.""" + + reset_seconds: Optional[float] = None + """Seconds until the rate limit resets.""" + + +class RateLimitsUpdatedEvent(BaseModel): + event_id: str + """The unique ID of the server event.""" + + rate_limits: List[RateLimit] + """List of rate limit information.""" + + type: Literal["rate_limits.updated"] + """The event type, must be `rate_limits.updated`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/realtime_client_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/realtime_client_event.py new file mode 100644 index 0000000000000000000000000000000000000000..5f4858d6888b487ef4c9fb7e75a9eb46a0e727c9 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/realtime_client_event.py @@ -0,0 +1,47 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Union, Optional +from typing_extensions import Literal, Annotated, TypeAlias + +from ...._utils import PropertyInfo +from ...._models import BaseModel +from .session_update_event import SessionUpdateEvent +from .response_cancel_event import ResponseCancelEvent +from .response_create_event import ResponseCreateEvent +from .transcription_session_update import TranscriptionSessionUpdate +from .conversation_item_create_event import ConversationItemCreateEvent +from .conversation_item_delete_event import ConversationItemDeleteEvent +from .input_audio_buffer_clear_event import InputAudioBufferClearEvent +from .input_audio_buffer_append_event import InputAudioBufferAppendEvent +from .input_audio_buffer_commit_event import InputAudioBufferCommitEvent +from .conversation_item_retrieve_event import ConversationItemRetrieveEvent +from .conversation_item_truncate_event import ConversationItemTruncateEvent + +__all__ = ["RealtimeClientEvent", "OutputAudioBufferClear"] + + +class OutputAudioBufferClear(BaseModel): + type: Literal["output_audio_buffer.clear"] + """The event type, must be `output_audio_buffer.clear`.""" + + event_id: Optional[str] = None + """The unique ID of the client event used for error handling.""" + + +RealtimeClientEvent: TypeAlias = Annotated[ + Union[ + ConversationItemCreateEvent, + ConversationItemDeleteEvent, + ConversationItemRetrieveEvent, + ConversationItemTruncateEvent, + InputAudioBufferAppendEvent, + InputAudioBufferClearEvent, + OutputAudioBufferClear, + InputAudioBufferCommitEvent, + ResponseCancelEvent, + ResponseCreateEvent, + SessionUpdateEvent, + TranscriptionSessionUpdate, + ], + PropertyInfo(discriminator="type"), +] diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/realtime_client_event_param.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/realtime_client_event_param.py new file mode 100644 index 0000000000000000000000000000000000000000..e7dfba241e54fbd4a1ae8312ef84096eaad00a83 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/realtime_client_event_param.py @@ -0,0 +1,44 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union +from typing_extensions import Literal, Required, TypeAlias, TypedDict + +from .session_update_event_param import SessionUpdateEventParam +from .response_cancel_event_param import ResponseCancelEventParam +from .response_create_event_param import ResponseCreateEventParam +from .transcription_session_update_param import TranscriptionSessionUpdateParam +from .conversation_item_create_event_param import ConversationItemCreateEventParam +from .conversation_item_delete_event_param import ConversationItemDeleteEventParam +from .input_audio_buffer_clear_event_param import InputAudioBufferClearEventParam +from .input_audio_buffer_append_event_param import InputAudioBufferAppendEventParam +from .input_audio_buffer_commit_event_param import InputAudioBufferCommitEventParam +from .conversation_item_retrieve_event_param import ConversationItemRetrieveEventParam +from .conversation_item_truncate_event_param import ConversationItemTruncateEventParam + +__all__ = ["RealtimeClientEventParam", "OutputAudioBufferClear"] + + +class OutputAudioBufferClear(TypedDict, total=False): + type: Required[Literal["output_audio_buffer.clear"]] + """The event type, must be `output_audio_buffer.clear`.""" + + event_id: str + """The unique ID of the client event used for error handling.""" + + +RealtimeClientEventParam: TypeAlias = Union[ + ConversationItemCreateEventParam, + ConversationItemDeleteEventParam, + ConversationItemRetrieveEventParam, + ConversationItemTruncateEventParam, + InputAudioBufferAppendEventParam, + InputAudioBufferClearEventParam, + OutputAudioBufferClear, + InputAudioBufferCommitEventParam, + ResponseCancelEventParam, + ResponseCreateEventParam, + SessionUpdateEventParam, + TranscriptionSessionUpdateParam, +] diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/realtime_connect_params.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/realtime_connect_params.py new file mode 100644 index 0000000000000000000000000000000000000000..76474f3de4c0bea69e25ae92675f79e127c0c134 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/realtime_connect_params.py @@ -0,0 +1,11 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Required, TypedDict + +__all__ = ["RealtimeConnectParams"] + + +class RealtimeConnectParams(TypedDict, total=False): + model: Required[str] diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/realtime_response.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/realtime_response.py new file mode 100644 index 0000000000000000000000000000000000000000..ccc97c5d22dcecc1ebd45e8de18f0186cd567065 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/realtime_response.py @@ -0,0 +1,87 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Union, Optional +from typing_extensions import Literal + +from ...._models import BaseModel +from ...shared.metadata import Metadata +from .conversation_item import ConversationItem +from .realtime_response_usage import RealtimeResponseUsage +from .realtime_response_status import RealtimeResponseStatus + +__all__ = ["RealtimeResponse"] + + +class RealtimeResponse(BaseModel): + id: Optional[str] = None + """The unique ID of the response.""" + + conversation_id: Optional[str] = None + """ + Which conversation the response is added to, determined by the `conversation` + field in the `response.create` event. If `auto`, the response will be added to + the default conversation and the value of `conversation_id` will be an id like + `conv_1234`. If `none`, the response will not be added to any conversation and + the value of `conversation_id` will be `null`. If responses are being triggered + by server VAD, the response will be added to the default conversation, thus the + `conversation_id` will be an id like `conv_1234`. + """ + + max_output_tokens: Union[int, Literal["inf"], None] = None + """ + Maximum number of output tokens for a single assistant response, inclusive of + tool calls, that was used in this response. + """ + + metadata: Optional[Metadata] = None + """Set of 16 key-value pairs that can be attached to an object. + + This can be useful for storing additional information about the object in a + structured format, and querying for objects via API or the dashboard. + + Keys are strings with a maximum length of 64 characters. Values are strings with + a maximum length of 512 characters. + """ + + modalities: Optional[List[Literal["text", "audio"]]] = None + """The set of modalities the model used to respond. + + If there are multiple modalities, the model will pick one, for example if + `modalities` is `["text", "audio"]`, the model could be responding in either + text or audio. + """ + + object: Optional[Literal["realtime.response"]] = None + """The object type, must be `realtime.response`.""" + + output: Optional[List[ConversationItem]] = None + """The list of output items generated by the response.""" + + output_audio_format: Optional[Literal["pcm16", "g711_ulaw", "g711_alaw"]] = None + """The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.""" + + status: Optional[Literal["completed", "cancelled", "failed", "incomplete", "in_progress"]] = None + """ + The final status of the response (`completed`, `cancelled`, `failed`, or + `incomplete`, `in_progress`). + """ + + status_details: Optional[RealtimeResponseStatus] = None + """Additional details about the status.""" + + temperature: Optional[float] = None + """Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8.""" + + usage: Optional[RealtimeResponseUsage] = None + """Usage statistics for the Response, this will correspond to billing. + + A Realtime API session will maintain a conversation context and append new Items + to the Conversation, thus output from previous turns (text and audio tokens) + will become the input for later turns. + """ + + voice: Union[str, Literal["alloy", "ash", "ballad", "coral", "echo", "sage", "shimmer", "verse"], None] = None + """ + The voice the model used to respond. Current voice options are `alloy`, `ash`, + `ballad`, `coral`, `echo`, `sage`, `shimmer`, and `verse`. + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/realtime_response_status.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/realtime_response_status.py new file mode 100644 index 0000000000000000000000000000000000000000..7189cd58a17395c6f3f4b640cc32f069b27a05d4 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/realtime_response_status.py @@ -0,0 +1,39 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["RealtimeResponseStatus", "Error"] + + +class Error(BaseModel): + code: Optional[str] = None + """Error code, if any.""" + + type: Optional[str] = None + """The type of error.""" + + +class RealtimeResponseStatus(BaseModel): + error: Optional[Error] = None + """ + A description of the error that caused the response to fail, populated when the + `status` is `failed`. + """ + + reason: Optional[Literal["turn_detected", "client_cancelled", "max_output_tokens", "content_filter"]] = None + """The reason the Response did not complete. + + For a `cancelled` Response, one of `turn_detected` (the server VAD detected a + new start of speech) or `client_cancelled` (the client sent a cancel event). For + an `incomplete` Response, one of `max_output_tokens` or `content_filter` (the + server-side safety filter activated and cut off the response). + """ + + type: Optional[Literal["completed", "cancelled", "incomplete", "failed"]] = None + """ + The type of error that caused the response to fail, corresponding with the + `status` field (`completed`, `cancelled`, `incomplete`, `failed`). + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/realtime_response_usage.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/realtime_response_usage.py new file mode 100644 index 0000000000000000000000000000000000000000..7ca822e25e717a0686ddf4387d1143ee642c11df --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/realtime_response_usage.py @@ -0,0 +1,52 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional + +from ...._models import BaseModel + +__all__ = ["RealtimeResponseUsage", "InputTokenDetails", "OutputTokenDetails"] + + +class InputTokenDetails(BaseModel): + audio_tokens: Optional[int] = None + """The number of audio tokens used in the Response.""" + + cached_tokens: Optional[int] = None + """The number of cached tokens used in the Response.""" + + text_tokens: Optional[int] = None + """The number of text tokens used in the Response.""" + + +class OutputTokenDetails(BaseModel): + audio_tokens: Optional[int] = None + """The number of audio tokens used in the Response.""" + + text_tokens: Optional[int] = None + """The number of text tokens used in the Response.""" + + +class RealtimeResponseUsage(BaseModel): + input_token_details: Optional[InputTokenDetails] = None + """Details about the input tokens used in the Response.""" + + input_tokens: Optional[int] = None + """ + The number of input tokens used in the Response, including text and audio + tokens. + """ + + output_token_details: Optional[OutputTokenDetails] = None + """Details about the output tokens used in the Response.""" + + output_tokens: Optional[int] = None + """ + The number of output tokens sent in the Response, including text and audio + tokens. + """ + + total_tokens: Optional[int] = None + """ + The total number of tokens in the Response including input and output text and + audio tokens. + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/realtime_server_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/realtime_server_event.py new file mode 100644 index 0000000000000000000000000000000000000000..c12f5df9777cdcda75ee4813eda7cc2912c4d410 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/realtime_server_event.py @@ -0,0 +1,133 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Union +from typing_extensions import Literal, Annotated, TypeAlias + +from ...._utils import PropertyInfo +from ...._models import BaseModel +from .error_event import ErrorEvent +from .conversation_item import ConversationItem +from .response_done_event import ResponseDoneEvent +from .session_created_event import SessionCreatedEvent +from .session_updated_event import SessionUpdatedEvent +from .response_created_event import ResponseCreatedEvent +from .response_text_done_event import ResponseTextDoneEvent +from .rate_limits_updated_event import RateLimitsUpdatedEvent +from .response_audio_done_event import ResponseAudioDoneEvent +from .response_text_delta_event import ResponseTextDeltaEvent +from .conversation_created_event import ConversationCreatedEvent +from .response_audio_delta_event import ResponseAudioDeltaEvent +from .conversation_item_created_event import ConversationItemCreatedEvent +from .conversation_item_deleted_event import ConversationItemDeletedEvent +from .response_output_item_done_event import ResponseOutputItemDoneEvent +from .input_audio_buffer_cleared_event import InputAudioBufferClearedEvent +from .response_content_part_done_event import ResponseContentPartDoneEvent +from .response_output_item_added_event import ResponseOutputItemAddedEvent +from .conversation_item_truncated_event import ConversationItemTruncatedEvent +from .response_content_part_added_event import ResponseContentPartAddedEvent +from .input_audio_buffer_committed_event import InputAudioBufferCommittedEvent +from .transcription_session_updated_event import TranscriptionSessionUpdatedEvent +from .response_audio_transcript_done_event import ResponseAudioTranscriptDoneEvent +from .response_audio_transcript_delta_event import ResponseAudioTranscriptDeltaEvent +from .input_audio_buffer_speech_started_event import InputAudioBufferSpeechStartedEvent +from .input_audio_buffer_speech_stopped_event import InputAudioBufferSpeechStoppedEvent +from .response_function_call_arguments_done_event import ResponseFunctionCallArgumentsDoneEvent +from .response_function_call_arguments_delta_event import ResponseFunctionCallArgumentsDeltaEvent +from .conversation_item_input_audio_transcription_delta_event import ConversationItemInputAudioTranscriptionDeltaEvent +from .conversation_item_input_audio_transcription_failed_event import ConversationItemInputAudioTranscriptionFailedEvent +from .conversation_item_input_audio_transcription_completed_event import ( + ConversationItemInputAudioTranscriptionCompletedEvent, +) + +__all__ = [ + "RealtimeServerEvent", + "ConversationItemRetrieved", + "OutputAudioBufferStarted", + "OutputAudioBufferStopped", + "OutputAudioBufferCleared", +] + + +class ConversationItemRetrieved(BaseModel): + event_id: str + """The unique ID of the server event.""" + + item: ConversationItem + """The item to add to the conversation.""" + + type: Literal["conversation.item.retrieved"] + """The event type, must be `conversation.item.retrieved`.""" + + +class OutputAudioBufferStarted(BaseModel): + event_id: str + """The unique ID of the server event.""" + + response_id: str + """The unique ID of the response that produced the audio.""" + + type: Literal["output_audio_buffer.started"] + """The event type, must be `output_audio_buffer.started`.""" + + +class OutputAudioBufferStopped(BaseModel): + event_id: str + """The unique ID of the server event.""" + + response_id: str + """The unique ID of the response that produced the audio.""" + + type: Literal["output_audio_buffer.stopped"] + """The event type, must be `output_audio_buffer.stopped`.""" + + +class OutputAudioBufferCleared(BaseModel): + event_id: str + """The unique ID of the server event.""" + + response_id: str + """The unique ID of the response that produced the audio.""" + + type: Literal["output_audio_buffer.cleared"] + """The event type, must be `output_audio_buffer.cleared`.""" + + +RealtimeServerEvent: TypeAlias = Annotated[ + Union[ + ConversationCreatedEvent, + ConversationItemCreatedEvent, + ConversationItemDeletedEvent, + ConversationItemInputAudioTranscriptionCompletedEvent, + ConversationItemInputAudioTranscriptionDeltaEvent, + ConversationItemInputAudioTranscriptionFailedEvent, + ConversationItemRetrieved, + ConversationItemTruncatedEvent, + ErrorEvent, + InputAudioBufferClearedEvent, + InputAudioBufferCommittedEvent, + InputAudioBufferSpeechStartedEvent, + InputAudioBufferSpeechStoppedEvent, + RateLimitsUpdatedEvent, + ResponseAudioDeltaEvent, + ResponseAudioDoneEvent, + ResponseAudioTranscriptDeltaEvent, + ResponseAudioTranscriptDoneEvent, + ResponseContentPartAddedEvent, + ResponseContentPartDoneEvent, + ResponseCreatedEvent, + ResponseDoneEvent, + ResponseFunctionCallArgumentsDeltaEvent, + ResponseFunctionCallArgumentsDoneEvent, + ResponseOutputItemAddedEvent, + ResponseOutputItemDoneEvent, + ResponseTextDeltaEvent, + ResponseTextDoneEvent, + SessionCreatedEvent, + SessionUpdatedEvent, + TranscriptionSessionUpdatedEvent, + OutputAudioBufferStarted, + OutputAudioBufferStopped, + OutputAudioBufferCleared, + ], + PropertyInfo(discriminator="type"), +] diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_audio_delta_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_audio_delta_event.py new file mode 100644 index 0000000000000000000000000000000000000000..8e0128d9429f203612faaa0a05a259ee0ef799f8 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_audio_delta_event.py @@ -0,0 +1,30 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ResponseAudioDeltaEvent"] + + +class ResponseAudioDeltaEvent(BaseModel): + content_index: int + """The index of the content part in the item's content array.""" + + delta: str + """Base64-encoded audio data delta.""" + + event_id: str + """The unique ID of the server event.""" + + item_id: str + """The ID of the item.""" + + output_index: int + """The index of the output item in the response.""" + + response_id: str + """The ID of the response.""" + + type: Literal["response.audio.delta"] + """The event type, must be `response.audio.delta`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_audio_done_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_audio_done_event.py new file mode 100644 index 0000000000000000000000000000000000000000..68e78bc778dd73734e050311092d8e1f9abf359c --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_audio_done_event.py @@ -0,0 +1,27 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ResponseAudioDoneEvent"] + + +class ResponseAudioDoneEvent(BaseModel): + content_index: int + """The index of the content part in the item's content array.""" + + event_id: str + """The unique ID of the server event.""" + + item_id: str + """The ID of the item.""" + + output_index: int + """The index of the output item in the response.""" + + response_id: str + """The ID of the response.""" + + type: Literal["response.audio.done"] + """The event type, must be `response.audio.done`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_audio_transcript_delta_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_audio_transcript_delta_event.py new file mode 100644 index 0000000000000000000000000000000000000000..3609948d1011da9e94e938f2bdba2265b7c0cd81 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_audio_transcript_delta_event.py @@ -0,0 +1,30 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ResponseAudioTranscriptDeltaEvent"] + + +class ResponseAudioTranscriptDeltaEvent(BaseModel): + content_index: int + """The index of the content part in the item's content array.""" + + delta: str + """The transcript delta.""" + + event_id: str + """The unique ID of the server event.""" + + item_id: str + """The ID of the item.""" + + output_index: int + """The index of the output item in the response.""" + + response_id: str + """The ID of the response.""" + + type: Literal["response.audio_transcript.delta"] + """The event type, must be `response.audio_transcript.delta`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_audio_transcript_done_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_audio_transcript_done_event.py new file mode 100644 index 0000000000000000000000000000000000000000..4e4436a95f81a1e718a6d577185ab05e3925fc4a --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_audio_transcript_done_event.py @@ -0,0 +1,30 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ResponseAudioTranscriptDoneEvent"] + + +class ResponseAudioTranscriptDoneEvent(BaseModel): + content_index: int + """The index of the content part in the item's content array.""" + + event_id: str + """The unique ID of the server event.""" + + item_id: str + """The ID of the item.""" + + output_index: int + """The index of the output item in the response.""" + + response_id: str + """The ID of the response.""" + + transcript: str + """The final transcript of the audio.""" + + type: Literal["response.audio_transcript.done"] + """The event type, must be `response.audio_transcript.done`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_cancel_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_cancel_event.py new file mode 100644 index 0000000000000000000000000000000000000000..c5ff991e9a7aac9531362b055c13012983b46a75 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_cancel_event.py @@ -0,0 +1,22 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ResponseCancelEvent"] + + +class ResponseCancelEvent(BaseModel): + type: Literal["response.cancel"] + """The event type, must be `response.cancel`.""" + + event_id: Optional[str] = None + """Optional client-generated ID used to identify this event.""" + + response_id: Optional[str] = None + """ + A specific response ID to cancel - if not provided, will cancel an in-progress + response in the default conversation. + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_cancel_event_param.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_cancel_event_param.py new file mode 100644 index 0000000000000000000000000000000000000000..f33740730af3210602799522684bce3134092d7e --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_cancel_event_param.py @@ -0,0 +1,21 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["ResponseCancelEventParam"] + + +class ResponseCancelEventParam(TypedDict, total=False): + type: Required[Literal["response.cancel"]] + """The event type, must be `response.cancel`.""" + + event_id: str + """Optional client-generated ID used to identify this event.""" + + response_id: str + """ + A specific response ID to cancel - if not provided, will cancel an in-progress + response in the default conversation. + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_content_part_added_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_content_part_added_event.py new file mode 100644 index 0000000000000000000000000000000000000000..45c8f20f97a08426289b21d4b090dd5324f33435 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_content_part_added_event.py @@ -0,0 +1,45 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ResponseContentPartAddedEvent", "Part"] + + +class Part(BaseModel): + audio: Optional[str] = None + """Base64-encoded audio data (if type is "audio").""" + + text: Optional[str] = None + """The text content (if type is "text").""" + + transcript: Optional[str] = None + """The transcript of the audio (if type is "audio").""" + + type: Optional[Literal["text", "audio"]] = None + """The content type ("text", "audio").""" + + +class ResponseContentPartAddedEvent(BaseModel): + content_index: int + """The index of the content part in the item's content array.""" + + event_id: str + """The unique ID of the server event.""" + + item_id: str + """The ID of the item to which the content part was added.""" + + output_index: int + """The index of the output item in the response.""" + + part: Part + """The content part that was added.""" + + response_id: str + """The ID of the response.""" + + type: Literal["response.content_part.added"] + """The event type, must be `response.content_part.added`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_content_part_done_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_content_part_done_event.py new file mode 100644 index 0000000000000000000000000000000000000000..3d16116106f86aaf58d4b24f405bec8b74f5e41d --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_content_part_done_event.py @@ -0,0 +1,45 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ResponseContentPartDoneEvent", "Part"] + + +class Part(BaseModel): + audio: Optional[str] = None + """Base64-encoded audio data (if type is "audio").""" + + text: Optional[str] = None + """The text content (if type is "text").""" + + transcript: Optional[str] = None + """The transcript of the audio (if type is "audio").""" + + type: Optional[Literal["text", "audio"]] = None + """The content type ("text", "audio").""" + + +class ResponseContentPartDoneEvent(BaseModel): + content_index: int + """The index of the content part in the item's content array.""" + + event_id: str + """The unique ID of the server event.""" + + item_id: str + """The ID of the item.""" + + output_index: int + """The index of the output item in the response.""" + + part: Part + """The content part that is done.""" + + response_id: str + """The ID of the response.""" + + type: Literal["response.content_part.done"] + """The event type, must be `response.content_part.done`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_create_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_create_event.py new file mode 100644 index 0000000000000000000000000000000000000000..7219cedbf3854bf387b4c7ff1584769cbcac0da5 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_create_event.py @@ -0,0 +1,121 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Union, Optional +from typing_extensions import Literal + +from ...._models import BaseModel +from ...shared.metadata import Metadata +from .conversation_item_with_reference import ConversationItemWithReference + +__all__ = ["ResponseCreateEvent", "Response", "ResponseTool"] + + +class ResponseTool(BaseModel): + description: Optional[str] = None + """ + The description of the function, including guidance on when and how to call it, + and guidance about what to tell the user when calling (if anything). + """ + + name: Optional[str] = None + """The name of the function.""" + + parameters: Optional[object] = None + """Parameters of the function in JSON Schema.""" + + type: Optional[Literal["function"]] = None + """The type of the tool, i.e. `function`.""" + + +class Response(BaseModel): + conversation: Union[str, Literal["auto", "none"], None] = None + """Controls which conversation the response is added to. + + Currently supports `auto` and `none`, with `auto` as the default value. The + `auto` value means that the contents of the response will be added to the + default conversation. Set this to `none` to create an out-of-band response which + will not add items to default conversation. + """ + + input: Optional[List[ConversationItemWithReference]] = None + """Input items to include in the prompt for the model. + + Using this field creates a new context for this Response instead of using the + default conversation. An empty array `[]` will clear the context for this + Response. Note that this can include references to items from the default + conversation. + """ + + instructions: Optional[str] = None + """The default system instructions (i.e. + + system message) prepended to model calls. This field allows the client to guide + the model on desired responses. The model can be instructed on response content + and format, (e.g. "be extremely succinct", "act friendly", "here are examples of + good responses") and on audio behavior (e.g. "talk quickly", "inject emotion + into your voice", "laugh frequently"). The instructions are not guaranteed to be + followed by the model, but they provide guidance to the model on the desired + behavior. + + Note that the server sets default instructions which will be used if this field + is not set and are visible in the `session.created` event at the start of the + session. + """ + + max_response_output_tokens: Union[int, Literal["inf"], None] = None + """ + Maximum number of output tokens for a single assistant response, inclusive of + tool calls. Provide an integer between 1 and 4096 to limit output tokens, or + `inf` for the maximum available tokens for a given model. Defaults to `inf`. + """ + + metadata: Optional[Metadata] = None + """Set of 16 key-value pairs that can be attached to an object. + + This can be useful for storing additional information about the object in a + structured format, and querying for objects via API or the dashboard. + + Keys are strings with a maximum length of 64 characters. Values are strings with + a maximum length of 512 characters. + """ + + modalities: Optional[List[Literal["text", "audio"]]] = None + """The set of modalities the model can respond with. + + To disable audio, set this to ["text"]. + """ + + output_audio_format: Optional[Literal["pcm16", "g711_ulaw", "g711_alaw"]] = None + """The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.""" + + temperature: Optional[float] = None + """Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8.""" + + tool_choice: Optional[str] = None + """How the model chooses tools. + + Options are `auto`, `none`, `required`, or specify a function, like + `{"type": "function", "function": {"name": "my_function"}}`. + """ + + tools: Optional[List[ResponseTool]] = None + """Tools (functions) available to the model.""" + + voice: Union[str, Literal["alloy", "ash", "ballad", "coral", "echo", "sage", "shimmer", "verse"], None] = None + """The voice the model uses to respond. + + Voice cannot be changed during the session once the model has responded with + audio at least once. Current voice options are `alloy`, `ash`, `ballad`, + `coral`, `echo`, `sage`, `shimmer`, and `verse`. + """ + + +class ResponseCreateEvent(BaseModel): + type: Literal["response.create"] + """The event type, must be `response.create`.""" + + event_id: Optional[str] = None + """Optional client-generated ID used to identify this event.""" + + response: Optional[Response] = None + """Create a new Realtime response with these parameters""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_create_event_param.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_create_event_param.py new file mode 100644 index 0000000000000000000000000000000000000000..b4d54bba92761b715017ceeaeb189bdb48a251a3 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_create_event_param.py @@ -0,0 +1,122 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import List, Union, Iterable, Optional +from typing_extensions import Literal, Required, TypedDict + +from ...shared_params.metadata import Metadata +from .conversation_item_with_reference_param import ConversationItemWithReferenceParam + +__all__ = ["ResponseCreateEventParam", "Response", "ResponseTool"] + + +class ResponseTool(TypedDict, total=False): + description: str + """ + The description of the function, including guidance on when and how to call it, + and guidance about what to tell the user when calling (if anything). + """ + + name: str + """The name of the function.""" + + parameters: object + """Parameters of the function in JSON Schema.""" + + type: Literal["function"] + """The type of the tool, i.e. `function`.""" + + +class Response(TypedDict, total=False): + conversation: Union[str, Literal["auto", "none"]] + """Controls which conversation the response is added to. + + Currently supports `auto` and `none`, with `auto` as the default value. The + `auto` value means that the contents of the response will be added to the + default conversation. Set this to `none` to create an out-of-band response which + will not add items to default conversation. + """ + + input: Iterable[ConversationItemWithReferenceParam] + """Input items to include in the prompt for the model. + + Using this field creates a new context for this Response instead of using the + default conversation. An empty array `[]` will clear the context for this + Response. Note that this can include references to items from the default + conversation. + """ + + instructions: str + """The default system instructions (i.e. + + system message) prepended to model calls. This field allows the client to guide + the model on desired responses. The model can be instructed on response content + and format, (e.g. "be extremely succinct", "act friendly", "here are examples of + good responses") and on audio behavior (e.g. "talk quickly", "inject emotion + into your voice", "laugh frequently"). The instructions are not guaranteed to be + followed by the model, but they provide guidance to the model on the desired + behavior. + + Note that the server sets default instructions which will be used if this field + is not set and are visible in the `session.created` event at the start of the + session. + """ + + max_response_output_tokens: Union[int, Literal["inf"]] + """ + Maximum number of output tokens for a single assistant response, inclusive of + tool calls. Provide an integer between 1 and 4096 to limit output tokens, or + `inf` for the maximum available tokens for a given model. Defaults to `inf`. + """ + + metadata: Optional[Metadata] + """Set of 16 key-value pairs that can be attached to an object. + + This can be useful for storing additional information about the object in a + structured format, and querying for objects via API or the dashboard. + + Keys are strings with a maximum length of 64 characters. Values are strings with + a maximum length of 512 characters. + """ + + modalities: List[Literal["text", "audio"]] + """The set of modalities the model can respond with. + + To disable audio, set this to ["text"]. + """ + + output_audio_format: Literal["pcm16", "g711_ulaw", "g711_alaw"] + """The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.""" + + temperature: float + """Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8.""" + + tool_choice: str + """How the model chooses tools. + + Options are `auto`, `none`, `required`, or specify a function, like + `{"type": "function", "function": {"name": "my_function"}}`. + """ + + tools: Iterable[ResponseTool] + """Tools (functions) available to the model.""" + + voice: Union[str, Literal["alloy", "ash", "ballad", "coral", "echo", "sage", "shimmer", "verse"]] + """The voice the model uses to respond. + + Voice cannot be changed during the session once the model has responded with + audio at least once. Current voice options are `alloy`, `ash`, `ballad`, + `coral`, `echo`, `sage`, `shimmer`, and `verse`. + """ + + +class ResponseCreateEventParam(TypedDict, total=False): + type: Required[Literal["response.create"]] + """The event type, must be `response.create`.""" + + event_id: str + """Optional client-generated ID used to identify this event.""" + + response: Response + """Create a new Realtime response with these parameters""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_created_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_created_event.py new file mode 100644 index 0000000000000000000000000000000000000000..a4990cf095852a6207a9bdb40f8e2b5426785d60 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_created_event.py @@ -0,0 +1,19 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel +from .realtime_response import RealtimeResponse + +__all__ = ["ResponseCreatedEvent"] + + +class ResponseCreatedEvent(BaseModel): + event_id: str + """The unique ID of the server event.""" + + response: RealtimeResponse + """The response resource.""" + + type: Literal["response.created"] + """The event type, must be `response.created`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_done_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_done_event.py new file mode 100644 index 0000000000000000000000000000000000000000..9e655184b6fcc9bfbcd3bb757f370afb64d4f900 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_done_event.py @@ -0,0 +1,19 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel +from .realtime_response import RealtimeResponse + +__all__ = ["ResponseDoneEvent"] + + +class ResponseDoneEvent(BaseModel): + event_id: str + """The unique ID of the server event.""" + + response: RealtimeResponse + """The response resource.""" + + type: Literal["response.done"] + """The event type, must be `response.done`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_function_call_arguments_delta_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_function_call_arguments_delta_event.py new file mode 100644 index 0000000000000000000000000000000000000000..cdbb64e6581180cd243bbb73bf99c58abaeb1256 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_function_call_arguments_delta_event.py @@ -0,0 +1,30 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ResponseFunctionCallArgumentsDeltaEvent"] + + +class ResponseFunctionCallArgumentsDeltaEvent(BaseModel): + call_id: str + """The ID of the function call.""" + + delta: str + """The arguments delta as a JSON string.""" + + event_id: str + """The unique ID of the server event.""" + + item_id: str + """The ID of the function call item.""" + + output_index: int + """The index of the output item in the response.""" + + response_id: str + """The ID of the response.""" + + type: Literal["response.function_call_arguments.delta"] + """The event type, must be `response.function_call_arguments.delta`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_function_call_arguments_done_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_function_call_arguments_done_event.py new file mode 100644 index 0000000000000000000000000000000000000000..0a5db533231a1be3939b8ba126449a8c4103c126 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_function_call_arguments_done_event.py @@ -0,0 +1,30 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ResponseFunctionCallArgumentsDoneEvent"] + + +class ResponseFunctionCallArgumentsDoneEvent(BaseModel): + arguments: str + """The final arguments as a JSON string.""" + + call_id: str + """The ID of the function call.""" + + event_id: str + """The unique ID of the server event.""" + + item_id: str + """The ID of the function call item.""" + + output_index: int + """The index of the output item in the response.""" + + response_id: str + """The ID of the response.""" + + type: Literal["response.function_call_arguments.done"] + """The event type, must be `response.function_call_arguments.done`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_output_item_added_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_output_item_added_event.py new file mode 100644 index 0000000000000000000000000000000000000000..c89bfdc3bee77958053979d983bd0227a89e5bd4 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_output_item_added_event.py @@ -0,0 +1,25 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel +from .conversation_item import ConversationItem + +__all__ = ["ResponseOutputItemAddedEvent"] + + +class ResponseOutputItemAddedEvent(BaseModel): + event_id: str + """The unique ID of the server event.""" + + item: ConversationItem + """The item to add to the conversation.""" + + output_index: int + """The index of the output item in the Response.""" + + response_id: str + """The ID of the Response to which the item belongs.""" + + type: Literal["response.output_item.added"] + """The event type, must be `response.output_item.added`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_output_item_done_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_output_item_done_event.py new file mode 100644 index 0000000000000000000000000000000000000000..b5910e22aa9eb7516f86e63c74034ea95dad64da --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_output_item_done_event.py @@ -0,0 +1,25 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel +from .conversation_item import ConversationItem + +__all__ = ["ResponseOutputItemDoneEvent"] + + +class ResponseOutputItemDoneEvent(BaseModel): + event_id: str + """The unique ID of the server event.""" + + item: ConversationItem + """The item to add to the conversation.""" + + output_index: int + """The index of the output item in the Response.""" + + response_id: str + """The ID of the Response to which the item belongs.""" + + type: Literal["response.output_item.done"] + """The event type, must be `response.output_item.done`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_text_delta_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_text_delta_event.py new file mode 100644 index 0000000000000000000000000000000000000000..c463b3c3d0f654ad52bbb7518370498aa6a6c5e4 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_text_delta_event.py @@ -0,0 +1,30 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ResponseTextDeltaEvent"] + + +class ResponseTextDeltaEvent(BaseModel): + content_index: int + """The index of the content part in the item's content array.""" + + delta: str + """The text delta.""" + + event_id: str + """The unique ID of the server event.""" + + item_id: str + """The ID of the item.""" + + output_index: int + """The index of the output item in the response.""" + + response_id: str + """The ID of the response.""" + + type: Literal["response.text.delta"] + """The event type, must be `response.text.delta`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_text_done_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_text_done_event.py new file mode 100644 index 0000000000000000000000000000000000000000..020ff41d583f9d57ac0f32aa490e2fba34560ffa --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/response_text_done_event.py @@ -0,0 +1,30 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ResponseTextDoneEvent"] + + +class ResponseTextDoneEvent(BaseModel): + content_index: int + """The index of the content part in the item's content array.""" + + event_id: str + """The unique ID of the server event.""" + + item_id: str + """The ID of the item.""" + + output_index: int + """The index of the output item in the response.""" + + response_id: str + """The ID of the response.""" + + text: str + """The final text content.""" + + type: Literal["response.text.done"] + """The event type, must be `response.text.done`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/session.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/session.py new file mode 100644 index 0000000000000000000000000000000000000000..2e099a2e98b0fa066e61c9f5ead07aaa3c63271a --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/session.py @@ -0,0 +1,279 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Union, Optional +from typing_extensions import Literal, TypeAlias + +from ...._models import BaseModel + +__all__ = [ + "Session", + "InputAudioNoiseReduction", + "InputAudioTranscription", + "Tool", + "Tracing", + "TracingTracingConfiguration", + "TurnDetection", +] + + +class InputAudioNoiseReduction(BaseModel): + type: Optional[Literal["near_field", "far_field"]] = None + """Type of noise reduction. + + `near_field` is for close-talking microphones such as headphones, `far_field` is + for far-field microphones such as laptop or conference room microphones. + """ + + +class InputAudioTranscription(BaseModel): + language: Optional[str] = None + """The language of the input audio. + + Supplying the input language in + [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) + format will improve accuracy and latency. + """ + + model: Optional[str] = None + """ + The model to use for transcription, current options are `gpt-4o-transcribe`, + `gpt-4o-mini-transcribe`, and `whisper-1`. + """ + + prompt: Optional[str] = None + """ + An optional text to guide the model's style or continue a previous audio + segment. For `whisper-1`, the + [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting). + For `gpt-4o-transcribe` models, the prompt is a free text string, for example + "expect words related to technology". + """ + + +class Tool(BaseModel): + description: Optional[str] = None + """ + The description of the function, including guidance on when and how to call it, + and guidance about what to tell the user when calling (if anything). + """ + + name: Optional[str] = None + """The name of the function.""" + + parameters: Optional[object] = None + """Parameters of the function in JSON Schema.""" + + type: Optional[Literal["function"]] = None + """The type of the tool, i.e. `function`.""" + + +class TracingTracingConfiguration(BaseModel): + group_id: Optional[str] = None + """ + The group id to attach to this trace to enable filtering and grouping in the + traces dashboard. + """ + + metadata: Optional[object] = None + """ + The arbitrary metadata to attach to this trace to enable filtering in the traces + dashboard. + """ + + workflow_name: Optional[str] = None + """The name of the workflow to attach to this trace. + + This is used to name the trace in the traces dashboard. + """ + + +Tracing: TypeAlias = Union[Literal["auto"], TracingTracingConfiguration] + + +class TurnDetection(BaseModel): + create_response: Optional[bool] = None + """ + Whether or not to automatically generate a response when a VAD stop event + occurs. + """ + + eagerness: Optional[Literal["low", "medium", "high", "auto"]] = None + """Used only for `semantic_vad` mode. + + The eagerness of the model to respond. `low` will wait longer for the user to + continue speaking, `high` will respond more quickly. `auto` is the default and + is equivalent to `medium`. + """ + + interrupt_response: Optional[bool] = None + """ + Whether or not to automatically interrupt any ongoing response with output to + the default conversation (i.e. `conversation` of `auto`) when a VAD start event + occurs. + """ + + prefix_padding_ms: Optional[int] = None + """Used only for `server_vad` mode. + + Amount of audio to include before the VAD detected speech (in milliseconds). + Defaults to 300ms. + """ + + silence_duration_ms: Optional[int] = None + """Used only for `server_vad` mode. + + Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms. + With shorter values the model will respond more quickly, but may jump in on + short pauses from the user. + """ + + threshold: Optional[float] = None + """Used only for `server_vad` mode. + + Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A higher + threshold will require louder audio to activate the model, and thus might + perform better in noisy environments. + """ + + type: Optional[Literal["server_vad", "semantic_vad"]] = None + """Type of turn detection.""" + + +class Session(BaseModel): + id: Optional[str] = None + """Unique identifier for the session that looks like `sess_1234567890abcdef`.""" + + input_audio_format: Optional[Literal["pcm16", "g711_ulaw", "g711_alaw"]] = None + """The format of input audio. + + Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. For `pcm16`, input audio must + be 16-bit PCM at a 24kHz sample rate, single channel (mono), and little-endian + byte order. + """ + + input_audio_noise_reduction: Optional[InputAudioNoiseReduction] = None + """Configuration for input audio noise reduction. + + This can be set to `null` to turn off. Noise reduction filters audio added to + the input audio buffer before it is sent to VAD and the model. Filtering the + audio can improve VAD and turn detection accuracy (reducing false positives) and + model performance by improving perception of the input audio. + """ + + input_audio_transcription: Optional[InputAudioTranscription] = None + """ + Configuration for input audio transcription, defaults to off and can be set to + `null` to turn off once on. Input audio transcription is not native to the + model, since the model consumes audio directly. Transcription runs + asynchronously through + [the /audio/transcriptions endpoint](https://platform.openai.com/docs/api-reference/audio/createTranscription) + and should be treated as guidance of input audio content rather than precisely + what the model heard. The client can optionally set the language and prompt for + transcription, these offer additional guidance to the transcription service. + """ + + instructions: Optional[str] = None + """The default system instructions (i.e. + + system message) prepended to model calls. This field allows the client to guide + the model on desired responses. The model can be instructed on response content + and format, (e.g. "be extremely succinct", "act friendly", "here are examples of + good responses") and on audio behavior (e.g. "talk quickly", "inject emotion + into your voice", "laugh frequently"). The instructions are not guaranteed to be + followed by the model, but they provide guidance to the model on the desired + behavior. + + Note that the server sets default instructions which will be used if this field + is not set and are visible in the `session.created` event at the start of the + session. + """ + + max_response_output_tokens: Union[int, Literal["inf"], None] = None + """ + Maximum number of output tokens for a single assistant response, inclusive of + tool calls. Provide an integer between 1 and 4096 to limit output tokens, or + `inf` for the maximum available tokens for a given model. Defaults to `inf`. + """ + + modalities: Optional[List[Literal["text", "audio"]]] = None + """The set of modalities the model can respond with. + + To disable audio, set this to ["text"]. + """ + + model: Optional[ + Literal[ + "gpt-realtime", + "gpt-realtime-2025-08-28", + "gpt-4o-realtime-preview", + "gpt-4o-realtime-preview-2024-10-01", + "gpt-4o-realtime-preview-2024-12-17", + "gpt-4o-realtime-preview-2025-06-03", + "gpt-4o-mini-realtime-preview", + "gpt-4o-mini-realtime-preview-2024-12-17", + ] + ] = None + """The Realtime model used for this session.""" + + output_audio_format: Optional[Literal["pcm16", "g711_ulaw", "g711_alaw"]] = None + """The format of output audio. + + Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. For `pcm16`, output audio is + sampled at a rate of 24kHz. + """ + + speed: Optional[float] = None + """The speed of the model's spoken response. + + 1.0 is the default speed. 0.25 is the minimum speed. 1.5 is the maximum speed. + This value can only be changed in between model turns, not while a response is + in progress. + """ + + temperature: Optional[float] = None + """Sampling temperature for the model, limited to [0.6, 1.2]. + + For audio models a temperature of 0.8 is highly recommended for best + performance. + """ + + tool_choice: Optional[str] = None + """How the model chooses tools. + + Options are `auto`, `none`, `required`, or specify a function. + """ + + tools: Optional[List[Tool]] = None + """Tools (functions) available to the model.""" + + tracing: Optional[Tracing] = None + """Configuration options for tracing. + + Set to null to disable tracing. Once tracing is enabled for a session, the + configuration cannot be modified. + + `auto` will create a trace for the session with default values for the workflow + name, group id, and metadata. + """ + + turn_detection: Optional[TurnDetection] = None + """Configuration for turn detection, ether Server VAD or Semantic VAD. + + This can be set to `null` to turn off, in which case the client must manually + trigger model response. Server VAD means that the model will detect the start + and end of speech based on audio volume and respond at the end of user speech. + Semantic VAD is more advanced and uses a turn detection model (in conjunction + with VAD) to semantically estimate whether the user has finished speaking, then + dynamically sets a timeout based on this probability. For example, if user audio + trails off with "uhhm", the model will score a low probability of turn end and + wait longer for the user to continue speaking. This can be useful for more + natural conversations, but may have a higher latency. + """ + + voice: Union[str, Literal["alloy", "ash", "ballad", "coral", "echo", "sage", "shimmer", "verse"], None] = None + """The voice the model uses to respond. + + Voice cannot be changed during the session once the model has responded with + audio at least once. Current voice options are `alloy`, `ash`, `ballad`, + `coral`, `echo`, `sage`, `shimmer`, and `verse`. + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/session_create_params.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/session_create_params.py new file mode 100644 index 0000000000000000000000000000000000000000..38465a56c3e552eaf9dac0c3ee384e60dfad2f65 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/session_create_params.py @@ -0,0 +1,298 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import List, Union, Iterable +from typing_extensions import Literal, Required, TypeAlias, TypedDict + +__all__ = [ + "SessionCreateParams", + "ClientSecret", + "ClientSecretExpiresAfter", + "InputAudioNoiseReduction", + "InputAudioTranscription", + "Tool", + "Tracing", + "TracingTracingConfiguration", + "TurnDetection", +] + + +class SessionCreateParams(TypedDict, total=False): + client_secret: ClientSecret + """Configuration options for the generated client secret.""" + + input_audio_format: Literal["pcm16", "g711_ulaw", "g711_alaw"] + """The format of input audio. + + Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. For `pcm16`, input audio must + be 16-bit PCM at a 24kHz sample rate, single channel (mono), and little-endian + byte order. + """ + + input_audio_noise_reduction: InputAudioNoiseReduction + """Configuration for input audio noise reduction. + + This can be set to `null` to turn off. Noise reduction filters audio added to + the input audio buffer before it is sent to VAD and the model. Filtering the + audio can improve VAD and turn detection accuracy (reducing false positives) and + model performance by improving perception of the input audio. + """ + + input_audio_transcription: InputAudioTranscription + """ + Configuration for input audio transcription, defaults to off and can be set to + `null` to turn off once on. Input audio transcription is not native to the + model, since the model consumes audio directly. Transcription runs + asynchronously through + [the /audio/transcriptions endpoint](https://platform.openai.com/docs/api-reference/audio/createTranscription) + and should be treated as guidance of input audio content rather than precisely + what the model heard. The client can optionally set the language and prompt for + transcription, these offer additional guidance to the transcription service. + """ + + instructions: str + """The default system instructions (i.e. + + system message) prepended to model calls. This field allows the client to guide + the model on desired responses. The model can be instructed on response content + and format, (e.g. "be extremely succinct", "act friendly", "here are examples of + good responses") and on audio behavior (e.g. "talk quickly", "inject emotion + into your voice", "laugh frequently"). The instructions are not guaranteed to be + followed by the model, but they provide guidance to the model on the desired + behavior. + + Note that the server sets default instructions which will be used if this field + is not set and are visible in the `session.created` event at the start of the + session. + """ + + max_response_output_tokens: Union[int, Literal["inf"]] + """ + Maximum number of output tokens for a single assistant response, inclusive of + tool calls. Provide an integer between 1 and 4096 to limit output tokens, or + `inf` for the maximum available tokens for a given model. Defaults to `inf`. + """ + + modalities: List[Literal["text", "audio"]] + """The set of modalities the model can respond with. + + To disable audio, set this to ["text"]. + """ + + model: Literal[ + "gpt-realtime", + "gpt-realtime-2025-08-28", + "gpt-4o-realtime-preview", + "gpt-4o-realtime-preview-2024-10-01", + "gpt-4o-realtime-preview-2024-12-17", + "gpt-4o-realtime-preview-2025-06-03", + "gpt-4o-mini-realtime-preview", + "gpt-4o-mini-realtime-preview-2024-12-17", + ] + """The Realtime model used for this session.""" + + output_audio_format: Literal["pcm16", "g711_ulaw", "g711_alaw"] + """The format of output audio. + + Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. For `pcm16`, output audio is + sampled at a rate of 24kHz. + """ + + speed: float + """The speed of the model's spoken response. + + 1.0 is the default speed. 0.25 is the minimum speed. 1.5 is the maximum speed. + This value can only be changed in between model turns, not while a response is + in progress. + """ + + temperature: float + """Sampling temperature for the model, limited to [0.6, 1.2]. + + For audio models a temperature of 0.8 is highly recommended for best + performance. + """ + + tool_choice: str + """How the model chooses tools. + + Options are `auto`, `none`, `required`, or specify a function. + """ + + tools: Iterable[Tool] + """Tools (functions) available to the model.""" + + tracing: Tracing + """Configuration options for tracing. + + Set to null to disable tracing. Once tracing is enabled for a session, the + configuration cannot be modified. + + `auto` will create a trace for the session with default values for the workflow + name, group id, and metadata. + """ + + turn_detection: TurnDetection + """Configuration for turn detection, ether Server VAD or Semantic VAD. + + This can be set to `null` to turn off, in which case the client must manually + trigger model response. Server VAD means that the model will detect the start + and end of speech based on audio volume and respond at the end of user speech. + Semantic VAD is more advanced and uses a turn detection model (in conjunction + with VAD) to semantically estimate whether the user has finished speaking, then + dynamically sets a timeout based on this probability. For example, if user audio + trails off with "uhhm", the model will score a low probability of turn end and + wait longer for the user to continue speaking. This can be useful for more + natural conversations, but may have a higher latency. + """ + + voice: Union[str, Literal["alloy", "ash", "ballad", "coral", "echo", "sage", "shimmer", "verse"]] + """The voice the model uses to respond. + + Voice cannot be changed during the session once the model has responded with + audio at least once. Current voice options are `alloy`, `ash`, `ballad`, + `coral`, `echo`, `sage`, `shimmer`, and `verse`. + """ + + +class ClientSecretExpiresAfter(TypedDict, total=False): + anchor: Required[Literal["created_at"]] + """The anchor point for the ephemeral token expiration. + + Only `created_at` is currently supported. + """ + + seconds: int + """The number of seconds from the anchor point to the expiration. + + Select a value between `10` and `7200`. + """ + + +class ClientSecret(TypedDict, total=False): + expires_after: ClientSecretExpiresAfter + """Configuration for the ephemeral token expiration.""" + + +class InputAudioNoiseReduction(TypedDict, total=False): + type: Literal["near_field", "far_field"] + """Type of noise reduction. + + `near_field` is for close-talking microphones such as headphones, `far_field` is + for far-field microphones such as laptop or conference room microphones. + """ + + +class InputAudioTranscription(TypedDict, total=False): + language: str + """The language of the input audio. + + Supplying the input language in + [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) + format will improve accuracy and latency. + """ + + model: str + """ + The model to use for transcription, current options are `gpt-4o-transcribe`, + `gpt-4o-mini-transcribe`, and `whisper-1`. + """ + + prompt: str + """ + An optional text to guide the model's style or continue a previous audio + segment. For `whisper-1`, the + [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting). + For `gpt-4o-transcribe` models, the prompt is a free text string, for example + "expect words related to technology". + """ + + +class Tool(TypedDict, total=False): + description: str + """ + The description of the function, including guidance on when and how to call it, + and guidance about what to tell the user when calling (if anything). + """ + + name: str + """The name of the function.""" + + parameters: object + """Parameters of the function in JSON Schema.""" + + type: Literal["function"] + """The type of the tool, i.e. `function`.""" + + +class TracingTracingConfiguration(TypedDict, total=False): + group_id: str + """ + The group id to attach to this trace to enable filtering and grouping in the + traces dashboard. + """ + + metadata: object + """ + The arbitrary metadata to attach to this trace to enable filtering in the traces + dashboard. + """ + + workflow_name: str + """The name of the workflow to attach to this trace. + + This is used to name the trace in the traces dashboard. + """ + + +Tracing: TypeAlias = Union[Literal["auto"], TracingTracingConfiguration] + + +class TurnDetection(TypedDict, total=False): + create_response: bool + """ + Whether or not to automatically generate a response when a VAD stop event + occurs. + """ + + eagerness: Literal["low", "medium", "high", "auto"] + """Used only for `semantic_vad` mode. + + The eagerness of the model to respond. `low` will wait longer for the user to + continue speaking, `high` will respond more quickly. `auto` is the default and + is equivalent to `medium`. + """ + + interrupt_response: bool + """ + Whether or not to automatically interrupt any ongoing response with output to + the default conversation (i.e. `conversation` of `auto`) when a VAD start event + occurs. + """ + + prefix_padding_ms: int + """Used only for `server_vad` mode. + + Amount of audio to include before the VAD detected speech (in milliseconds). + Defaults to 300ms. + """ + + silence_duration_ms: int + """Used only for `server_vad` mode. + + Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms. + With shorter values the model will respond more quickly, but may jump in on + short pauses from the user. + """ + + threshold: float + """Used only for `server_vad` mode. + + Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A higher + threshold will require louder audio to activate the model, and thus might + perform better in noisy environments. + """ + + type: Literal["server_vad", "semantic_vad"] + """Type of turn detection.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/session_create_response.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/session_create_response.py new file mode 100644 index 0000000000000000000000000000000000000000..471da03691094cd1700b8eb8f65dc090b71c2a46 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/session_create_response.py @@ -0,0 +1,196 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Union, Optional +from typing_extensions import Literal, TypeAlias + +from ...._models import BaseModel + +__all__ = [ + "SessionCreateResponse", + "ClientSecret", + "InputAudioTranscription", + "Tool", + "Tracing", + "TracingTracingConfiguration", + "TurnDetection", +] + + +class ClientSecret(BaseModel): + expires_at: int + """Timestamp for when the token expires. + + Currently, all tokens expire after one minute. + """ + + value: str + """ + Ephemeral key usable in client environments to authenticate connections to the + Realtime API. Use this in client-side environments rather than a standard API + token, which should only be used server-side. + """ + + +class InputAudioTranscription(BaseModel): + model: Optional[str] = None + """The model to use for transcription.""" + + +class Tool(BaseModel): + description: Optional[str] = None + """ + The description of the function, including guidance on when and how to call it, + and guidance about what to tell the user when calling (if anything). + """ + + name: Optional[str] = None + """The name of the function.""" + + parameters: Optional[object] = None + """Parameters of the function in JSON Schema.""" + + type: Optional[Literal["function"]] = None + """The type of the tool, i.e. `function`.""" + + +class TracingTracingConfiguration(BaseModel): + group_id: Optional[str] = None + """ + The group id to attach to this trace to enable filtering and grouping in the + traces dashboard. + """ + + metadata: Optional[object] = None + """ + The arbitrary metadata to attach to this trace to enable filtering in the traces + dashboard. + """ + + workflow_name: Optional[str] = None + """The name of the workflow to attach to this trace. + + This is used to name the trace in the traces dashboard. + """ + + +Tracing: TypeAlias = Union[Literal["auto"], TracingTracingConfiguration] + + +class TurnDetection(BaseModel): + prefix_padding_ms: Optional[int] = None + """Amount of audio to include before the VAD detected speech (in milliseconds). + + Defaults to 300ms. + """ + + silence_duration_ms: Optional[int] = None + """Duration of silence to detect speech stop (in milliseconds). + + Defaults to 500ms. With shorter values the model will respond more quickly, but + may jump in on short pauses from the user. + """ + + threshold: Optional[float] = None + """Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. + + A higher threshold will require louder audio to activate the model, and thus + might perform better in noisy environments. + """ + + type: Optional[str] = None + """Type of turn detection, only `server_vad` is currently supported.""" + + +class SessionCreateResponse(BaseModel): + client_secret: ClientSecret + """Ephemeral key returned by the API.""" + + input_audio_format: Optional[str] = None + """The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.""" + + input_audio_transcription: Optional[InputAudioTranscription] = None + """ + Configuration for input audio transcription, defaults to off and can be set to + `null` to turn off once on. Input audio transcription is not native to the + model, since the model consumes audio directly. Transcription runs + asynchronously and should be treated as rough guidance rather than the + representation understood by the model. + """ + + instructions: Optional[str] = None + """The default system instructions (i.e. + + system message) prepended to model calls. This field allows the client to guide + the model on desired responses. The model can be instructed on response content + and format, (e.g. "be extremely succinct", "act friendly", "here are examples of + good responses") and on audio behavior (e.g. "talk quickly", "inject emotion + into your voice", "laugh frequently"). The instructions are not guaranteed to be + followed by the model, but they provide guidance to the model on the desired + behavior. + + Note that the server sets default instructions which will be used if this field + is not set and are visible in the `session.created` event at the start of the + session. + """ + + max_response_output_tokens: Union[int, Literal["inf"], None] = None + """ + Maximum number of output tokens for a single assistant response, inclusive of + tool calls. Provide an integer between 1 and 4096 to limit output tokens, or + `inf` for the maximum available tokens for a given model. Defaults to `inf`. + """ + + modalities: Optional[List[Literal["text", "audio"]]] = None + """The set of modalities the model can respond with. + + To disable audio, set this to ["text"]. + """ + + output_audio_format: Optional[str] = None + """The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.""" + + speed: Optional[float] = None + """The speed of the model's spoken response. + + 1.0 is the default speed. 0.25 is the minimum speed. 1.5 is the maximum speed. + This value can only be changed in between model turns, not while a response is + in progress. + """ + + temperature: Optional[float] = None + """Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8.""" + + tool_choice: Optional[str] = None + """How the model chooses tools. + + Options are `auto`, `none`, `required`, or specify a function. + """ + + tools: Optional[List[Tool]] = None + """Tools (functions) available to the model.""" + + tracing: Optional[Tracing] = None + """Configuration options for tracing. + + Set to null to disable tracing. Once tracing is enabled for a session, the + configuration cannot be modified. + + `auto` will create a trace for the session with default values for the workflow + name, group id, and metadata. + """ + + turn_detection: Optional[TurnDetection] = None + """Configuration for turn detection. + + Can be set to `null` to turn off. Server VAD means that the model will detect + the start and end of speech based on audio volume and respond at the end of user + speech. + """ + + voice: Union[str, Literal["alloy", "ash", "ballad", "coral", "echo", "sage", "shimmer", "verse"], None] = None + """The voice the model uses to respond. + + Voice cannot be changed during the session once the model has responded with + audio at least once. Current voice options are `alloy`, `ash`, `ballad`, + `coral`, `echo`, `sage`, `shimmer`, and `verse`. + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/session_created_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/session_created_event.py new file mode 100644 index 0000000000000000000000000000000000000000..baf6af388bad79490067a229c58fefe0bb481f19 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/session_created_event.py @@ -0,0 +1,19 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from .session import Session +from ...._models import BaseModel + +__all__ = ["SessionCreatedEvent"] + + +class SessionCreatedEvent(BaseModel): + event_id: str + """The unique ID of the server event.""" + + session: Session + """Realtime session object configuration.""" + + type: Literal["session.created"] + """The event type, must be `session.created`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/session_update_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/session_update_event.py new file mode 100644 index 0000000000000000000000000000000000000000..78d2e4bb186c6ffe2607d70e88bbd8388d61525a --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/session_update_event.py @@ -0,0 +1,312 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Union, Optional +from typing_extensions import Literal, TypeAlias + +from ...._models import BaseModel + +__all__ = [ + "SessionUpdateEvent", + "Session", + "SessionClientSecret", + "SessionClientSecretExpiresAfter", + "SessionInputAudioNoiseReduction", + "SessionInputAudioTranscription", + "SessionTool", + "SessionTracing", + "SessionTracingTracingConfiguration", + "SessionTurnDetection", +] + + +class SessionClientSecretExpiresAfter(BaseModel): + anchor: Literal["created_at"] + """The anchor point for the ephemeral token expiration. + + Only `created_at` is currently supported. + """ + + seconds: Optional[int] = None + """The number of seconds from the anchor point to the expiration. + + Select a value between `10` and `7200`. + """ + + +class SessionClientSecret(BaseModel): + expires_after: Optional[SessionClientSecretExpiresAfter] = None + """Configuration for the ephemeral token expiration.""" + + +class SessionInputAudioNoiseReduction(BaseModel): + type: Optional[Literal["near_field", "far_field"]] = None + """Type of noise reduction. + + `near_field` is for close-talking microphones such as headphones, `far_field` is + for far-field microphones such as laptop or conference room microphones. + """ + + +class SessionInputAudioTranscription(BaseModel): + language: Optional[str] = None + """The language of the input audio. + + Supplying the input language in + [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) + format will improve accuracy and latency. + """ + + model: Optional[str] = None + """ + The model to use for transcription, current options are `gpt-4o-transcribe`, + `gpt-4o-mini-transcribe`, and `whisper-1`. + """ + + prompt: Optional[str] = None + """ + An optional text to guide the model's style or continue a previous audio + segment. For `whisper-1`, the + [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting). + For `gpt-4o-transcribe` models, the prompt is a free text string, for example + "expect words related to technology". + """ + + +class SessionTool(BaseModel): + description: Optional[str] = None + """ + The description of the function, including guidance on when and how to call it, + and guidance about what to tell the user when calling (if anything). + """ + + name: Optional[str] = None + """The name of the function.""" + + parameters: Optional[object] = None + """Parameters of the function in JSON Schema.""" + + type: Optional[Literal["function"]] = None + """The type of the tool, i.e. `function`.""" + + +class SessionTracingTracingConfiguration(BaseModel): + group_id: Optional[str] = None + """ + The group id to attach to this trace to enable filtering and grouping in the + traces dashboard. + """ + + metadata: Optional[object] = None + """ + The arbitrary metadata to attach to this trace to enable filtering in the traces + dashboard. + """ + + workflow_name: Optional[str] = None + """The name of the workflow to attach to this trace. + + This is used to name the trace in the traces dashboard. + """ + + +SessionTracing: TypeAlias = Union[Literal["auto"], SessionTracingTracingConfiguration] + + +class SessionTurnDetection(BaseModel): + create_response: Optional[bool] = None + """ + Whether or not to automatically generate a response when a VAD stop event + occurs. + """ + + eagerness: Optional[Literal["low", "medium", "high", "auto"]] = None + """Used only for `semantic_vad` mode. + + The eagerness of the model to respond. `low` will wait longer for the user to + continue speaking, `high` will respond more quickly. `auto` is the default and + is equivalent to `medium`. + """ + + interrupt_response: Optional[bool] = None + """ + Whether or not to automatically interrupt any ongoing response with output to + the default conversation (i.e. `conversation` of `auto`) when a VAD start event + occurs. + """ + + prefix_padding_ms: Optional[int] = None + """Used only for `server_vad` mode. + + Amount of audio to include before the VAD detected speech (in milliseconds). + Defaults to 300ms. + """ + + silence_duration_ms: Optional[int] = None + """Used only for `server_vad` mode. + + Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms. + With shorter values the model will respond more quickly, but may jump in on + short pauses from the user. + """ + + threshold: Optional[float] = None + """Used only for `server_vad` mode. + + Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A higher + threshold will require louder audio to activate the model, and thus might + perform better in noisy environments. + """ + + type: Optional[Literal["server_vad", "semantic_vad"]] = None + """Type of turn detection.""" + + +class Session(BaseModel): + client_secret: Optional[SessionClientSecret] = None + """Configuration options for the generated client secret.""" + + input_audio_format: Optional[Literal["pcm16", "g711_ulaw", "g711_alaw"]] = None + """The format of input audio. + + Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. For `pcm16`, input audio must + be 16-bit PCM at a 24kHz sample rate, single channel (mono), and little-endian + byte order. + """ + + input_audio_noise_reduction: Optional[SessionInputAudioNoiseReduction] = None + """Configuration for input audio noise reduction. + + This can be set to `null` to turn off. Noise reduction filters audio added to + the input audio buffer before it is sent to VAD and the model. Filtering the + audio can improve VAD and turn detection accuracy (reducing false positives) and + model performance by improving perception of the input audio. + """ + + input_audio_transcription: Optional[SessionInputAudioTranscription] = None + """ + Configuration for input audio transcription, defaults to off and can be set to + `null` to turn off once on. Input audio transcription is not native to the + model, since the model consumes audio directly. Transcription runs + asynchronously through + [the /audio/transcriptions endpoint](https://platform.openai.com/docs/api-reference/audio/createTranscription) + and should be treated as guidance of input audio content rather than precisely + what the model heard. The client can optionally set the language and prompt for + transcription, these offer additional guidance to the transcription service. + """ + + instructions: Optional[str] = None + """The default system instructions (i.e. + + system message) prepended to model calls. This field allows the client to guide + the model on desired responses. The model can be instructed on response content + and format, (e.g. "be extremely succinct", "act friendly", "here are examples of + good responses") and on audio behavior (e.g. "talk quickly", "inject emotion + into your voice", "laugh frequently"). The instructions are not guaranteed to be + followed by the model, but they provide guidance to the model on the desired + behavior. + + Note that the server sets default instructions which will be used if this field + is not set and are visible in the `session.created` event at the start of the + session. + """ + + max_response_output_tokens: Union[int, Literal["inf"], None] = None + """ + Maximum number of output tokens for a single assistant response, inclusive of + tool calls. Provide an integer between 1 and 4096 to limit output tokens, or + `inf` for the maximum available tokens for a given model. Defaults to `inf`. + """ + + modalities: Optional[List[Literal["text", "audio"]]] = None + """The set of modalities the model can respond with. + + To disable audio, set this to ["text"]. + """ + + model: Optional[ + Literal[ + "gpt-realtime", + "gpt-realtime-2025-08-28", + "gpt-4o-realtime-preview", + "gpt-4o-realtime-preview-2024-10-01", + "gpt-4o-realtime-preview-2024-12-17", + "gpt-4o-realtime-preview-2025-06-03", + "gpt-4o-mini-realtime-preview", + "gpt-4o-mini-realtime-preview-2024-12-17", + ] + ] = None + """The Realtime model used for this session.""" + + output_audio_format: Optional[Literal["pcm16", "g711_ulaw", "g711_alaw"]] = None + """The format of output audio. + + Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. For `pcm16`, output audio is + sampled at a rate of 24kHz. + """ + + speed: Optional[float] = None + """The speed of the model's spoken response. + + 1.0 is the default speed. 0.25 is the minimum speed. 1.5 is the maximum speed. + This value can only be changed in between model turns, not while a response is + in progress. + """ + + temperature: Optional[float] = None + """Sampling temperature for the model, limited to [0.6, 1.2]. + + For audio models a temperature of 0.8 is highly recommended for best + performance. + """ + + tool_choice: Optional[str] = None + """How the model chooses tools. + + Options are `auto`, `none`, `required`, or specify a function. + """ + + tools: Optional[List[SessionTool]] = None + """Tools (functions) available to the model.""" + + tracing: Optional[SessionTracing] = None + """Configuration options for tracing. + + Set to null to disable tracing. Once tracing is enabled for a session, the + configuration cannot be modified. + + `auto` will create a trace for the session with default values for the workflow + name, group id, and metadata. + """ + + turn_detection: Optional[SessionTurnDetection] = None + """Configuration for turn detection, ether Server VAD or Semantic VAD. + + This can be set to `null` to turn off, in which case the client must manually + trigger model response. Server VAD means that the model will detect the start + and end of speech based on audio volume and respond at the end of user speech. + Semantic VAD is more advanced and uses a turn detection model (in conjunction + with VAD) to semantically estimate whether the user has finished speaking, then + dynamically sets a timeout based on this probability. For example, if user audio + trails off with "uhhm", the model will score a low probability of turn end and + wait longer for the user to continue speaking. This can be useful for more + natural conversations, but may have a higher latency. + """ + + voice: Union[str, Literal["alloy", "ash", "ballad", "coral", "echo", "sage", "shimmer", "verse"], None] = None + """The voice the model uses to respond. + + Voice cannot be changed during the session once the model has responded with + audio at least once. Current voice options are `alloy`, `ash`, `ballad`, + `coral`, `echo`, `sage`, `shimmer`, and `verse`. + """ + + +class SessionUpdateEvent(BaseModel): + session: Session + """Realtime session object configuration.""" + + type: Literal["session.update"] + """The event type, must be `session.update`.""" + + event_id: Optional[str] = None + """Optional client-generated ID used to identify this event.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/session_update_event_param.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/session_update_event_param.py new file mode 100644 index 0000000000000000000000000000000000000000..c58b202a71c42b67c29c624ef849004abb259ebd --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/session_update_event_param.py @@ -0,0 +1,310 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import List, Union, Iterable +from typing_extensions import Literal, Required, TypeAlias, TypedDict + +__all__ = [ + "SessionUpdateEventParam", + "Session", + "SessionClientSecret", + "SessionClientSecretExpiresAfter", + "SessionInputAudioNoiseReduction", + "SessionInputAudioTranscription", + "SessionTool", + "SessionTracing", + "SessionTracingTracingConfiguration", + "SessionTurnDetection", +] + + +class SessionClientSecretExpiresAfter(TypedDict, total=False): + anchor: Required[Literal["created_at"]] + """The anchor point for the ephemeral token expiration. + + Only `created_at` is currently supported. + """ + + seconds: int + """The number of seconds from the anchor point to the expiration. + + Select a value between `10` and `7200`. + """ + + +class SessionClientSecret(TypedDict, total=False): + expires_after: SessionClientSecretExpiresAfter + """Configuration for the ephemeral token expiration.""" + + +class SessionInputAudioNoiseReduction(TypedDict, total=False): + type: Literal["near_field", "far_field"] + """Type of noise reduction. + + `near_field` is for close-talking microphones such as headphones, `far_field` is + for far-field microphones such as laptop or conference room microphones. + """ + + +class SessionInputAudioTranscription(TypedDict, total=False): + language: str + """The language of the input audio. + + Supplying the input language in + [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) + format will improve accuracy and latency. + """ + + model: str + """ + The model to use for transcription, current options are `gpt-4o-transcribe`, + `gpt-4o-mini-transcribe`, and `whisper-1`. + """ + + prompt: str + """ + An optional text to guide the model's style or continue a previous audio + segment. For `whisper-1`, the + [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting). + For `gpt-4o-transcribe` models, the prompt is a free text string, for example + "expect words related to technology". + """ + + +class SessionTool(TypedDict, total=False): + description: str + """ + The description of the function, including guidance on when and how to call it, + and guidance about what to tell the user when calling (if anything). + """ + + name: str + """The name of the function.""" + + parameters: object + """Parameters of the function in JSON Schema.""" + + type: Literal["function"] + """The type of the tool, i.e. `function`.""" + + +class SessionTracingTracingConfiguration(TypedDict, total=False): + group_id: str + """ + The group id to attach to this trace to enable filtering and grouping in the + traces dashboard. + """ + + metadata: object + """ + The arbitrary metadata to attach to this trace to enable filtering in the traces + dashboard. + """ + + workflow_name: str + """The name of the workflow to attach to this trace. + + This is used to name the trace in the traces dashboard. + """ + + +SessionTracing: TypeAlias = Union[Literal["auto"], SessionTracingTracingConfiguration] + + +class SessionTurnDetection(TypedDict, total=False): + create_response: bool + """ + Whether or not to automatically generate a response when a VAD stop event + occurs. + """ + + eagerness: Literal["low", "medium", "high", "auto"] + """Used only for `semantic_vad` mode. + + The eagerness of the model to respond. `low` will wait longer for the user to + continue speaking, `high` will respond more quickly. `auto` is the default and + is equivalent to `medium`. + """ + + interrupt_response: bool + """ + Whether or not to automatically interrupt any ongoing response with output to + the default conversation (i.e. `conversation` of `auto`) when a VAD start event + occurs. + """ + + prefix_padding_ms: int + """Used only for `server_vad` mode. + + Amount of audio to include before the VAD detected speech (in milliseconds). + Defaults to 300ms. + """ + + silence_duration_ms: int + """Used only for `server_vad` mode. + + Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms. + With shorter values the model will respond more quickly, but may jump in on + short pauses from the user. + """ + + threshold: float + """Used only for `server_vad` mode. + + Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A higher + threshold will require louder audio to activate the model, and thus might + perform better in noisy environments. + """ + + type: Literal["server_vad", "semantic_vad"] + """Type of turn detection.""" + + +class Session(TypedDict, total=False): + client_secret: SessionClientSecret + """Configuration options for the generated client secret.""" + + input_audio_format: Literal["pcm16", "g711_ulaw", "g711_alaw"] + """The format of input audio. + + Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. For `pcm16`, input audio must + be 16-bit PCM at a 24kHz sample rate, single channel (mono), and little-endian + byte order. + """ + + input_audio_noise_reduction: SessionInputAudioNoiseReduction + """Configuration for input audio noise reduction. + + This can be set to `null` to turn off. Noise reduction filters audio added to + the input audio buffer before it is sent to VAD and the model. Filtering the + audio can improve VAD and turn detection accuracy (reducing false positives) and + model performance by improving perception of the input audio. + """ + + input_audio_transcription: SessionInputAudioTranscription + """ + Configuration for input audio transcription, defaults to off and can be set to + `null` to turn off once on. Input audio transcription is not native to the + model, since the model consumes audio directly. Transcription runs + asynchronously through + [the /audio/transcriptions endpoint](https://platform.openai.com/docs/api-reference/audio/createTranscription) + and should be treated as guidance of input audio content rather than precisely + what the model heard. The client can optionally set the language and prompt for + transcription, these offer additional guidance to the transcription service. + """ + + instructions: str + """The default system instructions (i.e. + + system message) prepended to model calls. This field allows the client to guide + the model on desired responses. The model can be instructed on response content + and format, (e.g. "be extremely succinct", "act friendly", "here are examples of + good responses") and on audio behavior (e.g. "talk quickly", "inject emotion + into your voice", "laugh frequently"). The instructions are not guaranteed to be + followed by the model, but they provide guidance to the model on the desired + behavior. + + Note that the server sets default instructions which will be used if this field + is not set and are visible in the `session.created` event at the start of the + session. + """ + + max_response_output_tokens: Union[int, Literal["inf"]] + """ + Maximum number of output tokens for a single assistant response, inclusive of + tool calls. Provide an integer between 1 and 4096 to limit output tokens, or + `inf` for the maximum available tokens for a given model. Defaults to `inf`. + """ + + modalities: List[Literal["text", "audio"]] + """The set of modalities the model can respond with. + + To disable audio, set this to ["text"]. + """ + + model: Literal[ + "gpt-realtime", + "gpt-realtime-2025-08-28", + "gpt-4o-realtime-preview", + "gpt-4o-realtime-preview-2024-10-01", + "gpt-4o-realtime-preview-2024-12-17", + "gpt-4o-realtime-preview-2025-06-03", + "gpt-4o-mini-realtime-preview", + "gpt-4o-mini-realtime-preview-2024-12-17", + ] + """The Realtime model used for this session.""" + + output_audio_format: Literal["pcm16", "g711_ulaw", "g711_alaw"] + """The format of output audio. + + Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. For `pcm16`, output audio is + sampled at a rate of 24kHz. + """ + + speed: float + """The speed of the model's spoken response. + + 1.0 is the default speed. 0.25 is the minimum speed. 1.5 is the maximum speed. + This value can only be changed in between model turns, not while a response is + in progress. + """ + + temperature: float + """Sampling temperature for the model, limited to [0.6, 1.2]. + + For audio models a temperature of 0.8 is highly recommended for best + performance. + """ + + tool_choice: str + """How the model chooses tools. + + Options are `auto`, `none`, `required`, or specify a function. + """ + + tools: Iterable[SessionTool] + """Tools (functions) available to the model.""" + + tracing: SessionTracing + """Configuration options for tracing. + + Set to null to disable tracing. Once tracing is enabled for a session, the + configuration cannot be modified. + + `auto` will create a trace for the session with default values for the workflow + name, group id, and metadata. + """ + + turn_detection: SessionTurnDetection + """Configuration for turn detection, ether Server VAD or Semantic VAD. + + This can be set to `null` to turn off, in which case the client must manually + trigger model response. Server VAD means that the model will detect the start + and end of speech based on audio volume and respond at the end of user speech. + Semantic VAD is more advanced and uses a turn detection model (in conjunction + with VAD) to semantically estimate whether the user has finished speaking, then + dynamically sets a timeout based on this probability. For example, if user audio + trails off with "uhhm", the model will score a low probability of turn end and + wait longer for the user to continue speaking. This can be useful for more + natural conversations, but may have a higher latency. + """ + + voice: Union[str, Literal["alloy", "ash", "ballad", "coral", "echo", "sage", "shimmer", "verse"]] + """The voice the model uses to respond. + + Voice cannot be changed during the session once the model has responded with + audio at least once. Current voice options are `alloy`, `ash`, `ballad`, + `coral`, `echo`, `sage`, `shimmer`, and `verse`. + """ + + +class SessionUpdateEventParam(TypedDict, total=False): + session: Required[Session] + """Realtime session object configuration.""" + + type: Required[Literal["session.update"]] + """The event type, must be `session.update`.""" + + event_id: str + """Optional client-generated ID used to identify this event.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/session_updated_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/session_updated_event.py new file mode 100644 index 0000000000000000000000000000000000000000..b9b6488eb3aa5d892c8c08dfb4f3e276df42412f --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/session_updated_event.py @@ -0,0 +1,19 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from .session import Session +from ...._models import BaseModel + +__all__ = ["SessionUpdatedEvent"] + + +class SessionUpdatedEvent(BaseModel): + event_id: str + """The unique ID of the server event.""" + + session: Session + """Realtime session object configuration.""" + + type: Literal["session.updated"] + """The event type, must be `session.updated`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/transcription_session.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/transcription_session.py new file mode 100644 index 0000000000000000000000000000000000000000..7c7abf37b65e70559857efe585cc9af2ea34ad8c --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/transcription_session.py @@ -0,0 +1,100 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["TranscriptionSession", "ClientSecret", "InputAudioTranscription", "TurnDetection"] + + +class ClientSecret(BaseModel): + expires_at: int + """Timestamp for when the token expires. + + Currently, all tokens expire after one minute. + """ + + value: str + """ + Ephemeral key usable in client environments to authenticate connections to the + Realtime API. Use this in client-side environments rather than a standard API + token, which should only be used server-side. + """ + + +class InputAudioTranscription(BaseModel): + language: Optional[str] = None + """The language of the input audio. + + Supplying the input language in + [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) + format will improve accuracy and latency. + """ + + model: Optional[Literal["gpt-4o-transcribe", "gpt-4o-mini-transcribe", "whisper-1"]] = None + """The model to use for transcription. + + Can be `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, or `whisper-1`. + """ + + prompt: Optional[str] = None + """An optional text to guide the model's style or continue a previous audio + segment. + + The [prompt](https://platform.openai.com/docs/guides/speech-to-text#prompting) + should match the audio language. + """ + + +class TurnDetection(BaseModel): + prefix_padding_ms: Optional[int] = None + """Amount of audio to include before the VAD detected speech (in milliseconds). + + Defaults to 300ms. + """ + + silence_duration_ms: Optional[int] = None + """Duration of silence to detect speech stop (in milliseconds). + + Defaults to 500ms. With shorter values the model will respond more quickly, but + may jump in on short pauses from the user. + """ + + threshold: Optional[float] = None + """Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. + + A higher threshold will require louder audio to activate the model, and thus + might perform better in noisy environments. + """ + + type: Optional[str] = None + """Type of turn detection, only `server_vad` is currently supported.""" + + +class TranscriptionSession(BaseModel): + client_secret: ClientSecret + """Ephemeral key returned by the API. + + Only present when the session is created on the server via REST API. + """ + + input_audio_format: Optional[str] = None + """The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.""" + + input_audio_transcription: Optional[InputAudioTranscription] = None + """Configuration of the transcription model.""" + + modalities: Optional[List[Literal["text", "audio"]]] = None + """The set of modalities the model can respond with. + + To disable audio, set this to ["text"]. + """ + + turn_detection: Optional[TurnDetection] = None + """Configuration for turn detection. + + Can be set to `null` to turn off. Server VAD means that the model will detect + the start and end of speech based on audio volume and respond at the end of user + speech. + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/transcription_session_create_params.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/transcription_session_create_params.py new file mode 100644 index 0000000000000000000000000000000000000000..3ac3af4fa953d27faf3dd09ad7cfb10b2924f4fa --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/transcription_session_create_params.py @@ -0,0 +1,173 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import List +from typing_extensions import Literal, TypedDict + +__all__ = [ + "TranscriptionSessionCreateParams", + "ClientSecret", + "ClientSecretExpiresAt", + "InputAudioNoiseReduction", + "InputAudioTranscription", + "TurnDetection", +] + + +class TranscriptionSessionCreateParams(TypedDict, total=False): + client_secret: ClientSecret + """Configuration options for the generated client secret.""" + + include: List[str] + """The set of items to include in the transcription. Current available items are: + + - `item.input_audio_transcription.logprobs` + """ + + input_audio_format: Literal["pcm16", "g711_ulaw", "g711_alaw"] + """The format of input audio. + + Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. For `pcm16`, input audio must + be 16-bit PCM at a 24kHz sample rate, single channel (mono), and little-endian + byte order. + """ + + input_audio_noise_reduction: InputAudioNoiseReduction + """Configuration for input audio noise reduction. + + This can be set to `null` to turn off. Noise reduction filters audio added to + the input audio buffer before it is sent to VAD and the model. Filtering the + audio can improve VAD and turn detection accuracy (reducing false positives) and + model performance by improving perception of the input audio. + """ + + input_audio_transcription: InputAudioTranscription + """Configuration for input audio transcription. + + The client can optionally set the language and prompt for transcription, these + offer additional guidance to the transcription service. + """ + + modalities: List[Literal["text", "audio"]] + """The set of modalities the model can respond with. + + To disable audio, set this to ["text"]. + """ + + turn_detection: TurnDetection + """Configuration for turn detection, ether Server VAD or Semantic VAD. + + This can be set to `null` to turn off, in which case the client must manually + trigger model response. Server VAD means that the model will detect the start + and end of speech based on audio volume and respond at the end of user speech. + Semantic VAD is more advanced and uses a turn detection model (in conjunction + with VAD) to semantically estimate whether the user has finished speaking, then + dynamically sets a timeout based on this probability. For example, if user audio + trails off with "uhhm", the model will score a low probability of turn end and + wait longer for the user to continue speaking. This can be useful for more + natural conversations, but may have a higher latency. + """ + + +class ClientSecretExpiresAt(TypedDict, total=False): + anchor: Literal["created_at"] + """The anchor point for the ephemeral token expiration. + + Only `created_at` is currently supported. + """ + + seconds: int + """The number of seconds from the anchor point to the expiration. + + Select a value between `10` and `7200`. + """ + + +class ClientSecret(TypedDict, total=False): + expires_at: ClientSecretExpiresAt + """Configuration for the ephemeral token expiration.""" + + +class InputAudioNoiseReduction(TypedDict, total=False): + type: Literal["near_field", "far_field"] + """Type of noise reduction. + + `near_field` is for close-talking microphones such as headphones, `far_field` is + for far-field microphones such as laptop or conference room microphones. + """ + + +class InputAudioTranscription(TypedDict, total=False): + language: str + """The language of the input audio. + + Supplying the input language in + [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) + format will improve accuracy and latency. + """ + + model: Literal["gpt-4o-transcribe", "gpt-4o-mini-transcribe", "whisper-1"] + """ + The model to use for transcription, current options are `gpt-4o-transcribe`, + `gpt-4o-mini-transcribe`, and `whisper-1`. + """ + + prompt: str + """ + An optional text to guide the model's style or continue a previous audio + segment. For `whisper-1`, the + [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting). + For `gpt-4o-transcribe` models, the prompt is a free text string, for example + "expect words related to technology". + """ + + +class TurnDetection(TypedDict, total=False): + create_response: bool + """Whether or not to automatically generate a response when a VAD stop event + occurs. + + Not available for transcription sessions. + """ + + eagerness: Literal["low", "medium", "high", "auto"] + """Used only for `semantic_vad` mode. + + The eagerness of the model to respond. `low` will wait longer for the user to + continue speaking, `high` will respond more quickly. `auto` is the default and + is equivalent to `medium`. + """ + + interrupt_response: bool + """ + Whether or not to automatically interrupt any ongoing response with output to + the default conversation (i.e. `conversation` of `auto`) when a VAD start event + occurs. Not available for transcription sessions. + """ + + prefix_padding_ms: int + """Used only for `server_vad` mode. + + Amount of audio to include before the VAD detected speech (in milliseconds). + Defaults to 300ms. + """ + + silence_duration_ms: int + """Used only for `server_vad` mode. + + Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms. + With shorter values the model will respond more quickly, but may jump in on + short pauses from the user. + """ + + threshold: float + """Used only for `server_vad` mode. + + Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A higher + threshold will require louder audio to activate the model, and thus might + perform better in noisy environments. + """ + + type: Literal["server_vad", "semantic_vad"] + """Type of turn detection.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/transcription_session_update.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/transcription_session_update.py new file mode 100644 index 0000000000000000000000000000000000000000..5ae1ad226d4f92e66c190465cb402e8fa100ab0c --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/transcription_session_update.py @@ -0,0 +1,185 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = [ + "TranscriptionSessionUpdate", + "Session", + "SessionClientSecret", + "SessionClientSecretExpiresAt", + "SessionInputAudioNoiseReduction", + "SessionInputAudioTranscription", + "SessionTurnDetection", +] + + +class SessionClientSecretExpiresAt(BaseModel): + anchor: Optional[Literal["created_at"]] = None + """The anchor point for the ephemeral token expiration. + + Only `created_at` is currently supported. + """ + + seconds: Optional[int] = None + """The number of seconds from the anchor point to the expiration. + + Select a value between `10` and `7200`. + """ + + +class SessionClientSecret(BaseModel): + expires_at: Optional[SessionClientSecretExpiresAt] = None + """Configuration for the ephemeral token expiration.""" + + +class SessionInputAudioNoiseReduction(BaseModel): + type: Optional[Literal["near_field", "far_field"]] = None + """Type of noise reduction. + + `near_field` is for close-talking microphones such as headphones, `far_field` is + for far-field microphones such as laptop or conference room microphones. + """ + + +class SessionInputAudioTranscription(BaseModel): + language: Optional[str] = None + """The language of the input audio. + + Supplying the input language in + [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) + format will improve accuracy and latency. + """ + + model: Optional[Literal["gpt-4o-transcribe", "gpt-4o-mini-transcribe", "whisper-1"]] = None + """ + The model to use for transcription, current options are `gpt-4o-transcribe`, + `gpt-4o-mini-transcribe`, and `whisper-1`. + """ + + prompt: Optional[str] = None + """ + An optional text to guide the model's style or continue a previous audio + segment. For `whisper-1`, the + [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting). + For `gpt-4o-transcribe` models, the prompt is a free text string, for example + "expect words related to technology". + """ + + +class SessionTurnDetection(BaseModel): + create_response: Optional[bool] = None + """Whether or not to automatically generate a response when a VAD stop event + occurs. + + Not available for transcription sessions. + """ + + eagerness: Optional[Literal["low", "medium", "high", "auto"]] = None + """Used only for `semantic_vad` mode. + + The eagerness of the model to respond. `low` will wait longer for the user to + continue speaking, `high` will respond more quickly. `auto` is the default and + is equivalent to `medium`. + """ + + interrupt_response: Optional[bool] = None + """ + Whether or not to automatically interrupt any ongoing response with output to + the default conversation (i.e. `conversation` of `auto`) when a VAD start event + occurs. Not available for transcription sessions. + """ + + prefix_padding_ms: Optional[int] = None + """Used only for `server_vad` mode. + + Amount of audio to include before the VAD detected speech (in milliseconds). + Defaults to 300ms. + """ + + silence_duration_ms: Optional[int] = None + """Used only for `server_vad` mode. + + Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms. + With shorter values the model will respond more quickly, but may jump in on + short pauses from the user. + """ + + threshold: Optional[float] = None + """Used only for `server_vad` mode. + + Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A higher + threshold will require louder audio to activate the model, and thus might + perform better in noisy environments. + """ + + type: Optional[Literal["server_vad", "semantic_vad"]] = None + """Type of turn detection.""" + + +class Session(BaseModel): + client_secret: Optional[SessionClientSecret] = None + """Configuration options for the generated client secret.""" + + include: Optional[List[str]] = None + """The set of items to include in the transcription. Current available items are: + + - `item.input_audio_transcription.logprobs` + """ + + input_audio_format: Optional[Literal["pcm16", "g711_ulaw", "g711_alaw"]] = None + """The format of input audio. + + Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. For `pcm16`, input audio must + be 16-bit PCM at a 24kHz sample rate, single channel (mono), and little-endian + byte order. + """ + + input_audio_noise_reduction: Optional[SessionInputAudioNoiseReduction] = None + """Configuration for input audio noise reduction. + + This can be set to `null` to turn off. Noise reduction filters audio added to + the input audio buffer before it is sent to VAD and the model. Filtering the + audio can improve VAD and turn detection accuracy (reducing false positives) and + model performance by improving perception of the input audio. + """ + + input_audio_transcription: Optional[SessionInputAudioTranscription] = None + """Configuration for input audio transcription. + + The client can optionally set the language and prompt for transcription, these + offer additional guidance to the transcription service. + """ + + modalities: Optional[List[Literal["text", "audio"]]] = None + """The set of modalities the model can respond with. + + To disable audio, set this to ["text"]. + """ + + turn_detection: Optional[SessionTurnDetection] = None + """Configuration for turn detection, ether Server VAD or Semantic VAD. + + This can be set to `null` to turn off, in which case the client must manually + trigger model response. Server VAD means that the model will detect the start + and end of speech based on audio volume and respond at the end of user speech. + Semantic VAD is more advanced and uses a turn detection model (in conjunction + with VAD) to semantically estimate whether the user has finished speaking, then + dynamically sets a timeout based on this probability. For example, if user audio + trails off with "uhhm", the model will score a low probability of turn end and + wait longer for the user to continue speaking. This can be useful for more + natural conversations, but may have a higher latency. + """ + + +class TranscriptionSessionUpdate(BaseModel): + session: Session + """Realtime transcription session object configuration.""" + + type: Literal["transcription_session.update"] + """The event type, must be `transcription_session.update`.""" + + event_id: Optional[str] = None + """Optional client-generated ID used to identify this event.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/transcription_session_update_param.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/transcription_session_update_param.py new file mode 100644 index 0000000000000000000000000000000000000000..d7065f61c7c7ef5ef746d35d4c61e70cdadfd4f5 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/transcription_session_update_param.py @@ -0,0 +1,185 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import List +from typing_extensions import Literal, Required, TypedDict + +__all__ = [ + "TranscriptionSessionUpdateParam", + "Session", + "SessionClientSecret", + "SessionClientSecretExpiresAt", + "SessionInputAudioNoiseReduction", + "SessionInputAudioTranscription", + "SessionTurnDetection", +] + + +class SessionClientSecretExpiresAt(TypedDict, total=False): + anchor: Literal["created_at"] + """The anchor point for the ephemeral token expiration. + + Only `created_at` is currently supported. + """ + + seconds: int + """The number of seconds from the anchor point to the expiration. + + Select a value between `10` and `7200`. + """ + + +class SessionClientSecret(TypedDict, total=False): + expires_at: SessionClientSecretExpiresAt + """Configuration for the ephemeral token expiration.""" + + +class SessionInputAudioNoiseReduction(TypedDict, total=False): + type: Literal["near_field", "far_field"] + """Type of noise reduction. + + `near_field` is for close-talking microphones such as headphones, `far_field` is + for far-field microphones such as laptop or conference room microphones. + """ + + +class SessionInputAudioTranscription(TypedDict, total=False): + language: str + """The language of the input audio. + + Supplying the input language in + [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) + format will improve accuracy and latency. + """ + + model: Literal["gpt-4o-transcribe", "gpt-4o-mini-transcribe", "whisper-1"] + """ + The model to use for transcription, current options are `gpt-4o-transcribe`, + `gpt-4o-mini-transcribe`, and `whisper-1`. + """ + + prompt: str + """ + An optional text to guide the model's style or continue a previous audio + segment. For `whisper-1`, the + [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting). + For `gpt-4o-transcribe` models, the prompt is a free text string, for example + "expect words related to technology". + """ + + +class SessionTurnDetection(TypedDict, total=False): + create_response: bool + """Whether or not to automatically generate a response when a VAD stop event + occurs. + + Not available for transcription sessions. + """ + + eagerness: Literal["low", "medium", "high", "auto"] + """Used only for `semantic_vad` mode. + + The eagerness of the model to respond. `low` will wait longer for the user to + continue speaking, `high` will respond more quickly. `auto` is the default and + is equivalent to `medium`. + """ + + interrupt_response: bool + """ + Whether or not to automatically interrupt any ongoing response with output to + the default conversation (i.e. `conversation` of `auto`) when a VAD start event + occurs. Not available for transcription sessions. + """ + + prefix_padding_ms: int + """Used only for `server_vad` mode. + + Amount of audio to include before the VAD detected speech (in milliseconds). + Defaults to 300ms. + """ + + silence_duration_ms: int + """Used only for `server_vad` mode. + + Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms. + With shorter values the model will respond more quickly, but may jump in on + short pauses from the user. + """ + + threshold: float + """Used only for `server_vad` mode. + + Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A higher + threshold will require louder audio to activate the model, and thus might + perform better in noisy environments. + """ + + type: Literal["server_vad", "semantic_vad"] + """Type of turn detection.""" + + +class Session(TypedDict, total=False): + client_secret: SessionClientSecret + """Configuration options for the generated client secret.""" + + include: List[str] + """The set of items to include in the transcription. Current available items are: + + - `item.input_audio_transcription.logprobs` + """ + + input_audio_format: Literal["pcm16", "g711_ulaw", "g711_alaw"] + """The format of input audio. + + Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. For `pcm16`, input audio must + be 16-bit PCM at a 24kHz sample rate, single channel (mono), and little-endian + byte order. + """ + + input_audio_noise_reduction: SessionInputAudioNoiseReduction + """Configuration for input audio noise reduction. + + This can be set to `null` to turn off. Noise reduction filters audio added to + the input audio buffer before it is sent to VAD and the model. Filtering the + audio can improve VAD and turn detection accuracy (reducing false positives) and + model performance by improving perception of the input audio. + """ + + input_audio_transcription: SessionInputAudioTranscription + """Configuration for input audio transcription. + + The client can optionally set the language and prompt for transcription, these + offer additional guidance to the transcription service. + """ + + modalities: List[Literal["text", "audio"]] + """The set of modalities the model can respond with. + + To disable audio, set this to ["text"]. + """ + + turn_detection: SessionTurnDetection + """Configuration for turn detection, ether Server VAD or Semantic VAD. + + This can be set to `null` to turn off, in which case the client must manually + trigger model response. Server VAD means that the model will detect the start + and end of speech based on audio volume and respond at the end of user speech. + Semantic VAD is more advanced and uses a turn detection model (in conjunction + with VAD) to semantically estimate whether the user has finished speaking, then + dynamically sets a timeout based on this probability. For example, if user audio + trails off with "uhhm", the model will score a low probability of turn end and + wait longer for the user to continue speaking. This can be useful for more + natural conversations, but may have a higher latency. + """ + + +class TranscriptionSessionUpdateParam(TypedDict, total=False): + session: Required[Session] + """Realtime transcription session object configuration.""" + + type: Required[Literal["transcription_session.update"]] + """The event type, must be `transcription_session.update`.""" + + event_id: str + """Optional client-generated ID used to identify this event.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/realtime/transcription_session_updated_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/transcription_session_updated_event.py new file mode 100644 index 0000000000000000000000000000000000000000..1f1fbdae14b359bdf693f9b3d2ab03d5a99a7b30 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/realtime/transcription_session_updated_event.py @@ -0,0 +1,24 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel +from .transcription_session import TranscriptionSession + +__all__ = ["TranscriptionSessionUpdatedEvent"] + + +class TranscriptionSessionUpdatedEvent(BaseModel): + event_id: str + """The unique ID of the server event.""" + + session: TranscriptionSession + """A new Realtime transcription session configuration. + + When a session is created on the server via REST API, the session object also + contains an ephemeral key. Default TTL for keys is 10 minutes. This property is + not present when a session is updated via the WebSocket API. + """ + + type: Literal["transcription_session.updated"] + """The event type, must be `transcription_session.updated`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/__init__.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e8aea8aa4e467152ed9f77b8868adbf591911006 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/__init__.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/annotation.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/annotation.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7c02875477faa7b18a3defc94820792c7c9afa80 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/annotation.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/annotation_delta.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/annotation_delta.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..10b17485f4f63c70fcb284c4fe1ed39597a560b8 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/annotation_delta.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/file_citation_annotation.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/file_citation_annotation.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..78d4a6e2f247efbabdb504c19f71ae4c05faec28 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/file_citation_annotation.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/file_citation_delta_annotation.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/file_citation_delta_annotation.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..dd56892544e508560ded62b84efa712444b60aa1 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/file_citation_delta_annotation.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/file_path_annotation.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/file_path_annotation.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..adf4c11c43d0943392559596697bf515e6f60e6e Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/file_path_annotation.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/file_path_delta_annotation.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/file_path_delta_annotation.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6c7b0fb75fd0781651c8cfa81d603e9455e77b03 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/file_path_delta_annotation.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_file.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_file.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d10c4304e0727c9627d79f1e3bf78e9668f2ad89 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_file.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_file_content_block.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_file_content_block.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7685aeabe1ee4aee0f33e7e3488e70139bf27635 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_file_content_block.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_file_content_block_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_file_content_block_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0a7241a93b8a5783df32fd8f22370657f9303686 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_file_content_block_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_file_delta.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_file_delta.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9886719f5d46cd47c184296aa8481533ec5ac058 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_file_delta.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_file_delta_block.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_file_delta_block.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2fc01a658a1757eef85521c01c8936bbeed57669 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_file_delta_block.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_file_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_file_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7966d57af20483c4a9627ff8ccf300e1e9dc7e6d Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_file_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_url.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_url.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a094ee752d3f7b854466a05ece68fb4182e4adbb Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_url.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_url_content_block.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_url_content_block.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4f4fea16e78fbbcdc9053f8e22c2785e9299d0d4 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_url_content_block.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_url_content_block_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_url_content_block_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5bce11872dcd1e94208604f9cdedee4ad6c55135 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_url_content_block_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_url_delta.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_url_delta.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..824d29fa666f41c5454194bb743641c9d6711e82 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_url_delta.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_url_delta_block.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_url_delta_block.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e160b27ad45a25fae934985e2aea1a94c88756a4 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_url_delta_block.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_url_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_url_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9147af33e52a051253745acabc13e1e8542e3a6e Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/image_url_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/message.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/message.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..70bc1b9d718a33ed05a5cb481141c82670225ed6 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/message.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/message_content.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/message_content.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..25df43847983987f8e7c0c7b1518020cd58ebeb9 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/message_content.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/message_content_delta.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/message_content_delta.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..90cadc3ac5f0ab3f8da2bbc625295c3889e99322 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/message_content_delta.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/message_content_part_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/message_content_part_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c8fe7d189d43b1d4a9367ce50ffb2bc56aebb200 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/message_content_part_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/message_create_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/message_create_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6f4f69ac93892b9bad57914d4e70382a9c18bef4 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/message_create_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/message_deleted.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/message_deleted.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..89c0d0d5e4fb9c980137e75e2d197d9b680ea4d6 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/message_deleted.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/message_delta.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/message_delta.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c3f988463e065300320c13f8adbfc0daefeea40c Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/message_delta.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/message_delta_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/message_delta_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0393a56b769a9c635415aa7cf1d6107f63926a8c Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/message_delta_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/message_list_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/message_list_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2a8941d8e001ca79d3c5722a48607cff6cb5dfe8 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/message_list_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/message_update_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/message_update_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fcc88b6af58446be6070ae3f6143b61f55951a76 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/message_update_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/refusal_content_block.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/refusal_content_block.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0fc8bf22e2f77e88e94e51df0ea47321be1495fb Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/refusal_content_block.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/refusal_delta_block.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/refusal_delta_block.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..736825ba8b919078dc2058297bdd62018c74d098 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/refusal_delta_block.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/required_action_function_tool_call.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/required_action_function_tool_call.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bcb3b05475fc55ae2e5604ba7f04db574aa4f91b Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/required_action_function_tool_call.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/run.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/run.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d9287439ce1004cdab1a39168c3416d8a61f8a96 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/run.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/run_create_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/run_create_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e2584d080a3f46813a3713e897933547a6090196 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/run_create_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/run_list_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/run_list_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fb5235e9459e345835b47fcd4890f11398e41142 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/run_list_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/run_status.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/run_status.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..351e012b848ba45a202a89e600a1c0998f8fbffa Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/run_status.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/run_submit_tool_outputs_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/run_submit_tool_outputs_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..df3c266ff967c645db35341abec701d3c9b894a2 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/run_submit_tool_outputs_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/run_update_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/run_update_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..699a1e52491a1fbc8f7ff56760651d1efdbbf66e Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/run_update_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/text.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/text.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7631c923c74484149e954b2cc987fa51a51a841d Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/text.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/text_content_block.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/text_content_block.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0c7be16055dbea59e932d8eef18c5c6d3a1c7c17 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/text_content_block.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/text_content_block_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/text_content_block_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9100423f7c9ac870cdfc87bdedf80d031df9209f Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/text_content_block_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/text_delta.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/text_delta.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6399bfcffb4b3dacbb619bd1267a69be7023faa4 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/text_delta.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/text_delta_block.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/text_delta_block.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4ccad7f2aa1dfcce62da8cef1ea141e967009ec9 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/__pycache__/text_delta_block.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/annotation.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/annotation.py new file mode 100644 index 0000000000000000000000000000000000000000..13c10abf4d840c51453a26ce7b2d0e38476f4f20 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/annotation.py @@ -0,0 +1,12 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Union +from typing_extensions import Annotated, TypeAlias + +from ...._utils import PropertyInfo +from .file_path_annotation import FilePathAnnotation +from .file_citation_annotation import FileCitationAnnotation + +__all__ = ["Annotation"] + +Annotation: TypeAlias = Annotated[Union[FileCitationAnnotation, FilePathAnnotation], PropertyInfo(discriminator="type")] diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/annotation_delta.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/annotation_delta.py new file mode 100644 index 0000000000000000000000000000000000000000..c7c6c89837c21f845c8b56a208627e6751c4b161 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/annotation_delta.py @@ -0,0 +1,14 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Union +from typing_extensions import Annotated, TypeAlias + +from ...._utils import PropertyInfo +from .file_path_delta_annotation import FilePathDeltaAnnotation +from .file_citation_delta_annotation import FileCitationDeltaAnnotation + +__all__ = ["AnnotationDelta"] + +AnnotationDelta: TypeAlias = Annotated[ + Union[FileCitationDeltaAnnotation, FilePathDeltaAnnotation], PropertyInfo(discriminator="type") +] diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/file_citation_annotation.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/file_citation_annotation.py new file mode 100644 index 0000000000000000000000000000000000000000..929da0ac563f3a511d23bae1aa0462e1e2cbaa7e --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/file_citation_annotation.py @@ -0,0 +1,30 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["FileCitationAnnotation", "FileCitation"] + + +class FileCitation(BaseModel): + file_id: str + """The ID of the specific File the citation is from.""" + + +class FileCitationAnnotation(BaseModel): + """ + A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the "file_search" tool to search files. + """ + + end_index: int + + file_citation: FileCitation + + start_index: int + + text: str + """The text in the message content that needs to be replaced.""" + + type: Literal["file_citation"] + """Always `file_citation`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/file_citation_delta_annotation.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/file_citation_delta_annotation.py new file mode 100644 index 0000000000000000000000000000000000000000..591e322332a7c3939170c94364d415a1a3b99765 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/file_citation_delta_annotation.py @@ -0,0 +1,37 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["FileCitationDeltaAnnotation", "FileCitation"] + + +class FileCitation(BaseModel): + file_id: Optional[str] = None + """The ID of the specific File the citation is from.""" + + quote: Optional[str] = None + """The specific quote in the file.""" + + +class FileCitationDeltaAnnotation(BaseModel): + """ + A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the "file_search" tool to search files. + """ + + index: int + """The index of the annotation in the text content part.""" + + type: Literal["file_citation"] + """Always `file_citation`.""" + + end_index: Optional[int] = None + + file_citation: Optional[FileCitation] = None + + start_index: Optional[int] = None + + text: Optional[str] = None + """The text in the message content that needs to be replaced.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/file_path_delta_annotation.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/file_path_delta_annotation.py new file mode 100644 index 0000000000000000000000000000000000000000..541687474971a7bf154e3a3b47499d5b7ed85c22 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/file_path_delta_annotation.py @@ -0,0 +1,34 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["FilePathDeltaAnnotation", "FilePath"] + + +class FilePath(BaseModel): + file_id: Optional[str] = None + """The ID of the file that was generated.""" + + +class FilePathDeltaAnnotation(BaseModel): + """ + A URL for the file that's generated when the assistant used the `code_interpreter` tool to generate a file. + """ + + index: int + """The index of the annotation in the text content part.""" + + type: Literal["file_path"] + """Always `file_path`.""" + + end_index: Optional[int] = None + + file_path: Optional[FilePath] = None + + start_index: Optional[int] = None + + text: Optional[str] = None + """The text in the message content that needs to be replaced.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/image_file.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/image_file.py new file mode 100644 index 0000000000000000000000000000000000000000..6000d97500580e64134b0a5f7b39dbbc90fe2444 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/image_file.py @@ -0,0 +1,23 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ImageFile"] + + +class ImageFile(BaseModel): + file_id: str + """ + The [File](https://platform.openai.com/docs/api-reference/files) ID of the image + in the message content. Set `purpose="vision"` when uploading the File if you + need to later display the file content. + """ + + detail: Optional[Literal["auto", "low", "high"]] = None + """Specifies the detail level of the image if specified by the user. + + `low` uses fewer tokens, you can opt in to high resolution using `high`. + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/image_file_content_block_param.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/image_file_content_block_param.py new file mode 100644 index 0000000000000000000000000000000000000000..da095a5ff65f3dffffb9038677cff5232d95f4d3 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/image_file_content_block_param.py @@ -0,0 +1,20 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +from .image_file_param import ImageFileParam + +__all__ = ["ImageFileContentBlockParam"] + + +class ImageFileContentBlockParam(TypedDict, total=False): + """ + References an image [File](https://platform.openai.com/docs/api-reference/files) in the content of a message. + """ + + image_file: Required[ImageFileParam] + + type: Required[Literal["image_file"]] + """Always `image_file`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/image_url.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/image_url.py new file mode 100644 index 0000000000000000000000000000000000000000..d1fac147b244931b99c3fd1148e6c25cf3e027d2 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/image_url.py @@ -0,0 +1,23 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["ImageURL"] + + +class ImageURL(BaseModel): + url: str + """ + The external URL of the image, must be a supported image types: jpeg, jpg, png, + gif, webp. + """ + + detail: Optional[Literal["auto", "low", "high"]] = None + """Specifies the detail level of the image. + + `low` uses fewer tokens, you can opt in to high resolution using `high`. Default + value is `auto` + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/image_url_content_block_param.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/image_url_content_block_param.py new file mode 100644 index 0000000000000000000000000000000000000000..a5c59e02c253219538c2db9795aa59df44eb9cb2 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/image_url_content_block_param.py @@ -0,0 +1,18 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +from .image_url_param import ImageURLParam + +__all__ = ["ImageURLContentBlockParam"] + + +class ImageURLContentBlockParam(TypedDict, total=False): + """References an image URL in the content of a message.""" + + image_url: Required[ImageURLParam] + + type: Required[Literal["image_url"]] + """The type of the content part.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/image_url_delta_block.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/image_url_delta_block.py new file mode 100644 index 0000000000000000000000000000000000000000..3128d8e709823420d3dbf6469e14ae1f73afd78b --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/image_url_delta_block.py @@ -0,0 +1,21 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel +from .image_url_delta import ImageURLDelta + +__all__ = ["ImageURLDeltaBlock"] + + +class ImageURLDeltaBlock(BaseModel): + """References an image URL in the content of a message.""" + + index: int + """The index of the content part in the message.""" + + type: Literal["image_url"] + """Always `image_url`.""" + + image_url: Optional[ImageURLDelta] = None diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/image_url_param.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/image_url_param.py new file mode 100644 index 0000000000000000000000000000000000000000..6b7e427eddab862e69bd8aedf8ad42d5f22caf32 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/image_url_param.py @@ -0,0 +1,22 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["ImageURLParam"] + + +class ImageURLParam(TypedDict, total=False): + url: Required[str] + """ + The external URL of the image, must be a supported image types: jpeg, jpg, png, + gif, webp. + """ + + detail: Literal["auto", "low", "high"] + """Specifies the detail level of the image. + + `low` uses fewer tokens, you can opt in to high resolution using `high`. Default + value is `auto` + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/message.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/message.py new file mode 100644 index 0000000000000000000000000000000000000000..fc7f73f091d7c0c134e3d927bd6f7899a903ed0e --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/message.py @@ -0,0 +1,109 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Union, Optional +from typing_extensions import Literal, TypeAlias + +from ...._models import BaseModel +from .message_content import MessageContent +from ...shared.metadata import Metadata +from ..code_interpreter_tool import CodeInterpreterTool + +__all__ = [ + "Message", + "Attachment", + "AttachmentTool", + "AttachmentToolAssistantToolsFileSearchTypeOnly", + "IncompleteDetails", +] + + +class AttachmentToolAssistantToolsFileSearchTypeOnly(BaseModel): + type: Literal["file_search"] + """The type of tool being defined: `file_search`""" + + +AttachmentTool: TypeAlias = Union[CodeInterpreterTool, AttachmentToolAssistantToolsFileSearchTypeOnly] + + +class Attachment(BaseModel): + file_id: Optional[str] = None + """The ID of the file to attach to the message.""" + + tools: Optional[List[AttachmentTool]] = None + """The tools to add this file to.""" + + +class IncompleteDetails(BaseModel): + """On an incomplete message, details about why the message is incomplete.""" + + reason: Literal["content_filter", "max_tokens", "run_cancelled", "run_expired", "run_failed"] + """The reason the message is incomplete.""" + + +class Message(BaseModel): + """ + Represents a message within a [thread](https://platform.openai.com/docs/api-reference/threads). + """ + + id: str + """The identifier, which can be referenced in API endpoints.""" + + assistant_id: Optional[str] = None + """ + If applicable, the ID of the + [assistant](https://platform.openai.com/docs/api-reference/assistants) that + authored this message. + """ + + attachments: Optional[List[Attachment]] = None + """A list of files attached to the message, and the tools they were added to.""" + + completed_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the message was completed.""" + + content: List[MessageContent] + """The content of the message in array of text and/or images.""" + + created_at: int + """The Unix timestamp (in seconds) for when the message was created.""" + + incomplete_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the message was marked as incomplete.""" + + incomplete_details: Optional[IncompleteDetails] = None + """On an incomplete message, details about why the message is incomplete.""" + + metadata: Optional[Metadata] = None + """Set of 16 key-value pairs that can be attached to an object. + + This can be useful for storing additional information about the object in a + structured format, and querying for objects via API or the dashboard. + + Keys are strings with a maximum length of 64 characters. Values are strings with + a maximum length of 512 characters. + """ + + object: Literal["thread.message"] + """The object type, which is always `thread.message`.""" + + role: Literal["user", "assistant"] + """The entity that produced the message. One of `user` or `assistant`.""" + + run_id: Optional[str] = None + """ + The ID of the [run](https://platform.openai.com/docs/api-reference/runs) + associated with the creation of this message. Value is `null` when messages are + created manually using the create message or create thread endpoints. + """ + + status: Literal["in_progress", "incomplete", "completed"] + """ + The status of the message, which can be either `in_progress`, `incomplete`, or + `completed`. + """ + + thread_id: str + """ + The [thread](https://platform.openai.com/docs/api-reference/threads) ID that + this message belongs to. + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/message_content.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/message_content.py new file mode 100644 index 0000000000000000000000000000000000000000..9523c1e1b9059f4a5af30485d5dbcb46c95d6b2e --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/message_content.py @@ -0,0 +1,18 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Union +from typing_extensions import Annotated, TypeAlias + +from ...._utils import PropertyInfo +from .text_content_block import TextContentBlock +from .refusal_content_block import RefusalContentBlock +from .image_url_content_block import ImageURLContentBlock +from .image_file_content_block import ImageFileContentBlock + +__all__ = ["MessageContent"] + + +MessageContent: TypeAlias = Annotated[ + Union[ImageFileContentBlock, ImageURLContentBlock, TextContentBlock, RefusalContentBlock], + PropertyInfo(discriminator="type"), +] diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/message_content_delta.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/message_content_delta.py new file mode 100644 index 0000000000000000000000000000000000000000..b6e7dfa45ad7a2cf013f9e0a2c41335a76c497b7 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/message_content_delta.py @@ -0,0 +1,17 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Union +from typing_extensions import Annotated, TypeAlias + +from ...._utils import PropertyInfo +from .text_delta_block import TextDeltaBlock +from .refusal_delta_block import RefusalDeltaBlock +from .image_url_delta_block import ImageURLDeltaBlock +from .image_file_delta_block import ImageFileDeltaBlock + +__all__ = ["MessageContentDelta"] + +MessageContentDelta: TypeAlias = Annotated[ + Union[ImageFileDeltaBlock, TextDeltaBlock, RefusalDeltaBlock, ImageURLDeltaBlock], + PropertyInfo(discriminator="type"), +] diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/message_content_part_param.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/message_content_part_param.py new file mode 100644 index 0000000000000000000000000000000000000000..dc09a01c2706324aee2cafba19004973018956e8 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/message_content_part_param.py @@ -0,0 +1,14 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union +from typing_extensions import TypeAlias + +from .text_content_block_param import TextContentBlockParam +from .image_url_content_block_param import ImageURLContentBlockParam +from .image_file_content_block_param import ImageFileContentBlockParam + +__all__ = ["MessageContentPartParam"] + +MessageContentPartParam: TypeAlias = Union[ImageFileContentBlockParam, ImageURLContentBlockParam, TextContentBlockParam] diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/message_create_params.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/message_create_params.py new file mode 100644 index 0000000000000000000000000000000000000000..b52386824acd3d3ac2b9c3b4cac24087f2f51a7b --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/message_create_params.py @@ -0,0 +1,55 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union, Iterable, Optional +from typing_extensions import Literal, Required, TypeAlias, TypedDict + +from ...shared_params.metadata import Metadata +from .message_content_part_param import MessageContentPartParam +from ..code_interpreter_tool_param import CodeInterpreterToolParam + +__all__ = ["MessageCreateParams", "Attachment", "AttachmentTool", "AttachmentToolFileSearch"] + + +class MessageCreateParams(TypedDict, total=False): + content: Required[Union[str, Iterable[MessageContentPartParam]]] + """The text contents of the message.""" + + role: Required[Literal["user", "assistant"]] + """The role of the entity that is creating the message. Allowed values include: + + - `user`: Indicates the message is sent by an actual user and should be used in + most cases to represent user-generated messages. + - `assistant`: Indicates the message is generated by the assistant. Use this + value to insert messages from the assistant into the conversation. + """ + + attachments: Optional[Iterable[Attachment]] + """A list of files attached to the message, and the tools they should be added to.""" + + metadata: Optional[Metadata] + """Set of 16 key-value pairs that can be attached to an object. + + This can be useful for storing additional information about the object in a + structured format, and querying for objects via API or the dashboard. + + Keys are strings with a maximum length of 64 characters. Values are strings with + a maximum length of 512 characters. + """ + + +class AttachmentToolFileSearch(TypedDict, total=False): + type: Required[Literal["file_search"]] + """The type of tool being defined: `file_search`""" + + +AttachmentTool: TypeAlias = Union[CodeInterpreterToolParam, AttachmentToolFileSearch] + + +class Attachment(TypedDict, total=False): + file_id: str + """The ID of the file to attach to the message.""" + + tools: Iterable[AttachmentTool] + """The tools to add this file to.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/message_deleted.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/message_deleted.py new file mode 100644 index 0000000000000000000000000000000000000000..48210777fa5f79652a82c76a162bea1d728b107c --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/message_deleted.py @@ -0,0 +1,15 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["MessageDeleted"] + + +class MessageDeleted(BaseModel): + id: str + + deleted: bool + + object: Literal["thread.message.deleted"] diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/message_delta.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/message_delta.py new file mode 100644 index 0000000000000000000000000000000000000000..fdeebb3a121b393da3158a4f8f095569ae675b50 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/message_delta.py @@ -0,0 +1,19 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from typing_extensions import Literal + +from ...._models import BaseModel +from .message_content_delta import MessageContentDelta + +__all__ = ["MessageDelta"] + + +class MessageDelta(BaseModel): + """The delta containing the fields that have changed on the Message.""" + + content: Optional[List[MessageContentDelta]] = None + """The content of the message in array of text and/or images.""" + + role: Optional[Literal["user", "assistant"]] = None + """The entity that produced the message. One of `user` or `assistant`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/message_delta_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/message_delta_event.py new file mode 100644 index 0000000000000000000000000000000000000000..d5ba1e172d7308d9d2e2781a00790db72abd25d8 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/message_delta_event.py @@ -0,0 +1,24 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel +from .message_delta import MessageDelta + +__all__ = ["MessageDeltaEvent"] + + +class MessageDeltaEvent(BaseModel): + """Represents a message delta i.e. + + any changed fields on a message during streaming. + """ + + id: str + """The identifier of the message, which can be referenced in API endpoints.""" + + delta: MessageDelta + """The delta containing the fields that have changed on the Message.""" + + object: Literal["thread.message.delta"] + """The object type, which is always `thread.message.delta`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/message_list_params.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/message_list_params.py new file mode 100644 index 0000000000000000000000000000000000000000..a7c22a66fb14e2c8c8aeb4409cdab69548b3f7dc --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/message_list_params.py @@ -0,0 +1,42 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, TypedDict + +__all__ = ["MessageListParams"] + + +class MessageListParams(TypedDict, total=False): + after: str + """A cursor for use in pagination. + + `after` is an object ID that defines your place in the list. For instance, if + you make a list request and receive 100 objects, ending with obj_foo, your + subsequent call can include after=obj_foo in order to fetch the next page of the + list. + """ + + before: str + """A cursor for use in pagination. + + `before` is an object ID that defines your place in the list. For instance, if + you make a list request and receive 100 objects, starting with obj_foo, your + subsequent call can include before=obj_foo in order to fetch the previous page + of the list. + """ + + limit: int + """A limit on the number of objects to be returned. + + Limit can range between 1 and 100, and the default is 20. + """ + + order: Literal["asc", "desc"] + """Sort order by the `created_at` timestamp of the objects. + + `asc` for ascending order and `desc` for descending order. + """ + + run_id: str + """Filter messages by the run ID that generated them.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/message_update_params.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/message_update_params.py new file mode 100644 index 0000000000000000000000000000000000000000..bb078281e6bbf8fd85ac45f15cd49435362b1570 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/message_update_params.py @@ -0,0 +1,24 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Optional +from typing_extensions import Required, TypedDict + +from ...shared_params.metadata import Metadata + +__all__ = ["MessageUpdateParams"] + + +class MessageUpdateParams(TypedDict, total=False): + thread_id: Required[str] + + metadata: Optional[Metadata] + """Set of 16 key-value pairs that can be attached to an object. + + This can be useful for storing additional information about the object in a + structured format, and querying for objects via API or the dashboard. + + Keys are strings with a maximum length of 64 characters. Values are strings with + a maximum length of 512 characters. + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/refusal_content_block.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/refusal_content_block.py new file mode 100644 index 0000000000000000000000000000000000000000..b4512b3ccbf3bc632353f7fc355f952edb4136b7 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/refusal_content_block.py @@ -0,0 +1,16 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["RefusalContentBlock"] + + +class RefusalContentBlock(BaseModel): + """The refusal content generated by the assistant.""" + + refusal: str + + type: Literal["refusal"] + """Always `refusal`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/refusal_delta_block.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/refusal_delta_block.py new file mode 100644 index 0000000000000000000000000000000000000000..85a1f08db16a452be0cdede61c188c278e09724e --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/refusal_delta_block.py @@ -0,0 +1,20 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["RefusalDeltaBlock"] + + +class RefusalDeltaBlock(BaseModel): + """The refusal content that is part of a message.""" + + index: int + """The index of the refusal part in the message.""" + + type: Literal["refusal"] + """Always `refusal`.""" + + refusal: Optional[str] = None diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/run.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/run.py new file mode 100644 index 0000000000000000000000000000000000000000..8a88fa167341d2c1c059f49c6f2271613982ad67 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/run.py @@ -0,0 +1,273 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from typing_extensions import Literal + +from ...._models import BaseModel +from .run_status import RunStatus +from ..assistant_tool import AssistantTool +from ...shared.metadata import Metadata +from ..assistant_tool_choice_option import AssistantToolChoiceOption +from ..assistant_response_format_option import AssistantResponseFormatOption +from .required_action_function_tool_call import RequiredActionFunctionToolCall + +__all__ = [ + "Run", + "IncompleteDetails", + "LastError", + "RequiredAction", + "RequiredActionSubmitToolOutputs", + "TruncationStrategy", + "Usage", +] + + +class IncompleteDetails(BaseModel): + """Details on why the run is incomplete. + + Will be `null` if the run is not incomplete. + """ + + reason: Optional[Literal["max_completion_tokens", "max_prompt_tokens"]] = None + """The reason why the run is incomplete. + + This will point to which specific token limit was reached over the course of the + run. + """ + + +class LastError(BaseModel): + """The last error associated with this run. Will be `null` if there are no errors.""" + + code: Literal["server_error", "rate_limit_exceeded", "invalid_prompt"] + """One of `server_error`, `rate_limit_exceeded`, or `invalid_prompt`.""" + + message: str + """A human-readable description of the error.""" + + +class RequiredActionSubmitToolOutputs(BaseModel): + """Details on the tool outputs needed for this run to continue.""" + + tool_calls: List[RequiredActionFunctionToolCall] + """A list of the relevant tool calls.""" + + +class RequiredAction(BaseModel): + """Details on the action required to continue the run. + + Will be `null` if no action is required. + """ + + submit_tool_outputs: RequiredActionSubmitToolOutputs + """Details on the tool outputs needed for this run to continue.""" + + type: Literal["submit_tool_outputs"] + """For now, this is always `submit_tool_outputs`.""" + + +class TruncationStrategy(BaseModel): + """Controls for how a thread will be truncated prior to the run. + + Use this to control the initial context window of the run. + """ + + type: Literal["auto", "last_messages"] + """The truncation strategy to use for the thread. + + The default is `auto`. If set to `last_messages`, the thread will be truncated + to the n most recent messages in the thread. When set to `auto`, messages in the + middle of the thread will be dropped to fit the context length of the model, + `max_prompt_tokens`. + """ + + last_messages: Optional[int] = None + """ + The number of most recent messages from the thread when constructing the context + for the run. + """ + + +class Usage(BaseModel): + """Usage statistics related to the run. + + This value will be `null` if the run is not in a terminal state (i.e. `in_progress`, `queued`, etc.). + """ + + completion_tokens: int + """Number of completion tokens used over the course of the run.""" + + prompt_tokens: int + """Number of prompt tokens used over the course of the run.""" + + total_tokens: int + """Total number of tokens used (prompt + completion).""" + + +class Run(BaseModel): + """ + Represents an execution run on a [thread](https://platform.openai.com/docs/api-reference/threads). + """ + + id: str + """The identifier, which can be referenced in API endpoints.""" + + assistant_id: str + """ + The ID of the + [assistant](https://platform.openai.com/docs/api-reference/assistants) used for + execution of this run. + """ + + cancelled_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the run was cancelled.""" + + completed_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the run was completed.""" + + created_at: int + """The Unix timestamp (in seconds) for when the run was created.""" + + expires_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the run will expire.""" + + failed_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the run failed.""" + + incomplete_details: Optional[IncompleteDetails] = None + """Details on why the run is incomplete. + + Will be `null` if the run is not incomplete. + """ + + instructions: str + """ + The instructions that the + [assistant](https://platform.openai.com/docs/api-reference/assistants) used for + this run. + """ + + last_error: Optional[LastError] = None + """The last error associated with this run. Will be `null` if there are no errors.""" + + max_completion_tokens: Optional[int] = None + """ + The maximum number of completion tokens specified to have been used over the + course of the run. + """ + + max_prompt_tokens: Optional[int] = None + """ + The maximum number of prompt tokens specified to have been used over the course + of the run. + """ + + metadata: Optional[Metadata] = None + """Set of 16 key-value pairs that can be attached to an object. + + This can be useful for storing additional information about the object in a + structured format, and querying for objects via API or the dashboard. + + Keys are strings with a maximum length of 64 characters. Values are strings with + a maximum length of 512 characters. + """ + + model: str + """ + The model that the + [assistant](https://platform.openai.com/docs/api-reference/assistants) used for + this run. + """ + + object: Literal["thread.run"] + """The object type, which is always `thread.run`.""" + + parallel_tool_calls: bool + """ + Whether to enable + [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) + during tool use. + """ + + required_action: Optional[RequiredAction] = None + """Details on the action required to continue the run. + + Will be `null` if no action is required. + """ + + response_format: Optional[AssistantResponseFormatOption] = None + """Specifies the format that the model must output. + + Compatible with [GPT-4o](https://platform.openai.com/docs/models#gpt-4o), + [GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4), + and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`. + + Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured + Outputs which ensures the model will match your supplied JSON schema. Learn more + in the + [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + + Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the + message the model generates is valid JSON. + + **Important:** when using JSON mode, you **must** also instruct the model to + produce JSON yourself via a system or user message. Without this, the model may + generate an unending stream of whitespace until the generation reaches the token + limit, resulting in a long-running and seemingly "stuck" request. Also note that + the message content may be partially cut off if `finish_reason="length"`, which + indicates the generation exceeded `max_tokens` or the conversation exceeded the + max context length. + """ + + started_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the run was started.""" + + status: RunStatus + """ + The status of the run, which can be either `queued`, `in_progress`, + `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, + `incomplete`, or `expired`. + """ + + thread_id: str + """ + The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) + that was executed on as a part of this run. + """ + + tool_choice: Optional[AssistantToolChoiceOption] = None + """ + Controls which (if any) tool is called by the model. `none` means the model will + not call any tools and instead generates a message. `auto` is the default value + and means the model can pick between generating a message or calling one or more + tools. `required` means the model must call one or more tools before responding + to the user. Specifying a particular tool like `{"type": "file_search"}` or + `{"type": "function", "function": {"name": "my_function"}}` forces the model to + call that tool. + """ + + tools: List[AssistantTool] + """ + The list of tools that the + [assistant](https://platform.openai.com/docs/api-reference/assistants) used for + this run. + """ + + truncation_strategy: Optional[TruncationStrategy] = None + """Controls for how a thread will be truncated prior to the run. + + Use this to control the initial context window of the run. + """ + + usage: Optional[Usage] = None + """Usage statistics related to the run. + + This value will be `null` if the run is not in a terminal state (i.e. + `in_progress`, `queued`, etc.). + """ + + temperature: Optional[float] = None + """The sampling temperature used for this run. If not set, defaults to 1.""" + + top_p: Optional[float] = None + """The nucleus sampling value used for this run. If not set, defaults to 1.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/run_list_params.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/run_list_params.py new file mode 100644 index 0000000000000000000000000000000000000000..fbea54f6f206294891a8e2fa8a65690c84d4d051 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/run_list_params.py @@ -0,0 +1,39 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, TypedDict + +__all__ = ["RunListParams"] + + +class RunListParams(TypedDict, total=False): + after: str + """A cursor for use in pagination. + + `after` is an object ID that defines your place in the list. For instance, if + you make a list request and receive 100 objects, ending with obj_foo, your + subsequent call can include after=obj_foo in order to fetch the next page of the + list. + """ + + before: str + """A cursor for use in pagination. + + `before` is an object ID that defines your place in the list. For instance, if + you make a list request and receive 100 objects, starting with obj_foo, your + subsequent call can include before=obj_foo in order to fetch the previous page + of the list. + """ + + limit: int + """A limit on the number of objects to be returned. + + Limit can range between 1 and 100, and the default is 20. + """ + + order: Literal["asc", "desc"] + """Sort order by the `created_at` timestamp of the objects. + + `asc` for ascending order and `desc` for descending order. + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/run_status.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/run_status.py new file mode 100644 index 0000000000000000000000000000000000000000..47c7cbd0073571fd2085a6ab69dc2ed106104e39 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/run_status.py @@ -0,0 +1,17 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal, TypeAlias + +__all__ = ["RunStatus"] + +RunStatus: TypeAlias = Literal[ + "queued", + "in_progress", + "requires_action", + "cancelling", + "cancelled", + "failed", + "completed", + "incomplete", + "expired", +] diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/run_submit_tool_outputs_params.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/run_submit_tool_outputs_params.py new file mode 100644 index 0000000000000000000000000000000000000000..147728603a2dec6b9f341f358beeecc05d6ee69b --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/run_submit_tool_outputs_params.py @@ -0,0 +1,52 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union, Iterable, Optional +from typing_extensions import Literal, Required, TypedDict + +__all__ = [ + "RunSubmitToolOutputsParamsBase", + "ToolOutput", + "RunSubmitToolOutputsParamsNonStreaming", + "RunSubmitToolOutputsParamsStreaming", +] + + +class RunSubmitToolOutputsParamsBase(TypedDict, total=False): + thread_id: Required[str] + + tool_outputs: Required[Iterable[ToolOutput]] + """A list of tools for which the outputs are being submitted.""" + + +class ToolOutput(TypedDict, total=False): + output: str + """The output of the tool call to be submitted to continue the run.""" + + tool_call_id: str + """ + The ID of the tool call in the `required_action` object within the run object + the output is being submitted for. + """ + + +class RunSubmitToolOutputsParamsNonStreaming(RunSubmitToolOutputsParamsBase, total=False): + stream: Optional[Literal[False]] + """ + If `true`, returns a stream of events that happen during the Run as server-sent + events, terminating when the Run enters a terminal state with a `data: [DONE]` + message. + """ + + +class RunSubmitToolOutputsParamsStreaming(RunSubmitToolOutputsParamsBase): + stream: Required[Literal[True]] + """ + If `true`, returns a stream of events that happen during the Run as server-sent + events, terminating when the Run enters a terminal state with a `data: [DONE]` + message. + """ + + +RunSubmitToolOutputsParams = Union[RunSubmitToolOutputsParamsNonStreaming, RunSubmitToolOutputsParamsStreaming] diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/run_update_params.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/run_update_params.py new file mode 100644 index 0000000000000000000000000000000000000000..fbcbd3fb14e30d956d7a032f73cb7604cd89ac94 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/run_update_params.py @@ -0,0 +1,24 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Optional +from typing_extensions import Required, TypedDict + +from ...shared_params.metadata import Metadata + +__all__ = ["RunUpdateParams"] + + +class RunUpdateParams(TypedDict, total=False): + thread_id: Required[str] + + metadata: Optional[Metadata] + """Set of 16 key-value pairs that can be attached to an object. + + This can be useful for storing additional information about the object in a + structured format, and querying for objects via API or the dashboard. + + Keys are strings with a maximum length of 64 characters. Values are strings with + a maximum length of 512 characters. + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__init__.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..467d5d793dbad7150335722eaab0503d67ad456a --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__init__.py @@ -0,0 +1,24 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from .run_step import RunStep as RunStep +from .tool_call import ToolCall as ToolCall +from .run_step_delta import RunStepDelta as RunStepDelta +from .tool_call_delta import ToolCallDelta as ToolCallDelta +from .run_step_include import RunStepInclude as RunStepInclude +from .step_list_params import StepListParams as StepListParams +from .function_tool_call import FunctionToolCall as FunctionToolCall +from .run_step_delta_event import RunStepDeltaEvent as RunStepDeltaEvent +from .step_retrieve_params import StepRetrieveParams as StepRetrieveParams +from .code_interpreter_logs import CodeInterpreterLogs as CodeInterpreterLogs +from .file_search_tool_call import FileSearchToolCall as FileSearchToolCall +from .tool_call_delta_object import ToolCallDeltaObject as ToolCallDeltaObject +from .tool_calls_step_details import ToolCallsStepDetails as ToolCallsStepDetails +from .function_tool_call_delta import FunctionToolCallDelta as FunctionToolCallDelta +from .code_interpreter_tool_call import CodeInterpreterToolCall as CodeInterpreterToolCall +from .file_search_tool_call_delta import FileSearchToolCallDelta as FileSearchToolCallDelta +from .run_step_delta_message_delta import RunStepDeltaMessageDelta as RunStepDeltaMessageDelta +from .code_interpreter_output_image import CodeInterpreterOutputImage as CodeInterpreterOutputImage +from .message_creation_step_details import MessageCreationStepDetails as MessageCreationStepDetails +from .code_interpreter_tool_call_delta import CodeInterpreterToolCallDelta as CodeInterpreterToolCallDelta diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/__init__.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..98286c630502f452d0cbe8daa30efefe67f5224a Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/__init__.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/code_interpreter_logs.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/code_interpreter_logs.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fef162a92caa1e37bf3ce80e59b8b4f4bd446498 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/code_interpreter_logs.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/code_interpreter_output_image.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/code_interpreter_output_image.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f1c31be84023b00b282ccb1f6ac5ce21fab09214 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/code_interpreter_output_image.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/code_interpreter_tool_call.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/code_interpreter_tool_call.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c0beaf45ad146216f8bf16cb173fbc4497559386 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/code_interpreter_tool_call.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/code_interpreter_tool_call_delta.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/code_interpreter_tool_call_delta.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6eee044c1f69f29f9fa38cb8be43df7ab2271379 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/code_interpreter_tool_call_delta.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/file_search_tool_call.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/file_search_tool_call.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..28e1a74de5b1b7bc3cfa78295f5ff967519ef50d Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/file_search_tool_call.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/file_search_tool_call_delta.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/file_search_tool_call_delta.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6c64ccb760b0209399cdb697945f19783b8326d6 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/file_search_tool_call_delta.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/function_tool_call.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/function_tool_call.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..261d6ae8c809c212ec14dd2e159b312f3bd9d30b Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/function_tool_call.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/function_tool_call_delta.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/function_tool_call_delta.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ca7ed5b31aece7c626eaaeaa49aa74ab9ac677e2 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/function_tool_call_delta.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/message_creation_step_details.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/message_creation_step_details.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..38550fe0bef489f105180b1f872517e9a95fe2a1 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/message_creation_step_details.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/run_step.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/run_step.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..25388c87904044e5fd626d07df16bab00200fb2e Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/run_step.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/run_step_delta.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/run_step_delta.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b9d9e19d5e68aec9ce4bf39218f20df981779dcf Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/run_step_delta.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/run_step_delta_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/run_step_delta_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..67d69fca68391829e0c9f8422c369a9bce25e9f5 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/run_step_delta_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/run_step_delta_message_delta.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/run_step_delta_message_delta.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5d13190b54d7cd8bf79a092292ee86522e5dbb05 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/run_step_delta_message_delta.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/run_step_include.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/run_step_include.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cdcbf7410d51a1291539b4357fef6dad084609cd Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/run_step_include.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/step_list_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/step_list_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..87aca4eb624db9ddc7b6fa0ac29123150da1b9a0 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/step_list_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/step_retrieve_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/step_retrieve_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f072a82ccf14c7684fb1039bc79d226438240fda Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/step_retrieve_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/tool_call.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/tool_call.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..131231bb400f01398f436ef3cbcb0d5b72d0c13b Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/tool_call.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/tool_call_delta.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/tool_call_delta.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fca74af31fc39aca4c0521e35d8719ec8dbb651e Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/tool_call_delta.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/tool_call_delta_object.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/tool_call_delta_object.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e843367aaa6b86d0ff56c74eb76524235bf0e78c Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/tool_call_delta_object.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/tool_calls_step_details.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/tool_calls_step_details.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1cb04982c0b59cdd7c5fad3518032142e480dfac Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/__pycache__/tool_calls_step_details.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/code_interpreter_logs.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/code_interpreter_logs.py new file mode 100644 index 0000000000000000000000000000000000000000..722fd2b4c43bc226a3731f78f0f994cd4032c7fb --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/code_interpreter_logs.py @@ -0,0 +1,21 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ....._models import BaseModel + +__all__ = ["CodeInterpreterLogs"] + + +class CodeInterpreterLogs(BaseModel): + """Text output from the Code Interpreter tool call as part of a run step.""" + + index: int + """The index of the output in the outputs array.""" + + type: Literal["logs"] + """Always `logs`.""" + + logs: Optional[str] = None + """The text output from the Code Interpreter tool call.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/code_interpreter_output_image.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/code_interpreter_output_image.py new file mode 100644 index 0000000000000000000000000000000000000000..2257f37e41d53598831c1fb6db6ec4e1d292a12a --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/code_interpreter_output_image.py @@ -0,0 +1,26 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ....._models import BaseModel + +__all__ = ["CodeInterpreterOutputImage", "Image"] + + +class Image(BaseModel): + file_id: Optional[str] = None + """ + The [file](https://platform.openai.com/docs/api-reference/files) ID of the + image. + """ + + +class CodeInterpreterOutputImage(BaseModel): + index: int + """The index of the output in the outputs array.""" + + type: Literal["image"] + """Always `image`.""" + + image: Optional[Image] = None diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/code_interpreter_tool_call.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/code_interpreter_tool_call.py new file mode 100644 index 0000000000000000000000000000000000000000..bc78b5fa3df13fd22aa448170b15b16a8d44bc7c --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/code_interpreter_tool_call.py @@ -0,0 +1,76 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Union +from typing_extensions import Literal, Annotated, TypeAlias + +from ....._utils import PropertyInfo +from ....._models import BaseModel + +__all__ = [ + "CodeInterpreterToolCall", + "CodeInterpreter", + "CodeInterpreterOutput", + "CodeInterpreterOutputLogs", + "CodeInterpreterOutputImage", + "CodeInterpreterOutputImageImage", +] + + +class CodeInterpreterOutputLogs(BaseModel): + """Text output from the Code Interpreter tool call as part of a run step.""" + + logs: str + """The text output from the Code Interpreter tool call.""" + + type: Literal["logs"] + """Always `logs`.""" + + +class CodeInterpreterOutputImageImage(BaseModel): + file_id: str + """ + The [file](https://platform.openai.com/docs/api-reference/files) ID of the + image. + """ + + +class CodeInterpreterOutputImage(BaseModel): + image: CodeInterpreterOutputImageImage + + type: Literal["image"] + """Always `image`.""" + + +CodeInterpreterOutput: TypeAlias = Annotated[ + Union[CodeInterpreterOutputLogs, CodeInterpreterOutputImage], PropertyInfo(discriminator="type") +] + + +class CodeInterpreter(BaseModel): + """The Code Interpreter tool call definition.""" + + input: str + """The input to the Code Interpreter tool call.""" + + outputs: List[CodeInterpreterOutput] + """The outputs from the Code Interpreter tool call. + + Code Interpreter can output one or more items, including text (`logs`) or images + (`image`). Each of these are represented by a different object type. + """ + + +class CodeInterpreterToolCall(BaseModel): + """Details of the Code Interpreter tool call the run step was involved in.""" + + id: str + """The ID of the tool call.""" + + code_interpreter: CodeInterpreter + """The Code Interpreter tool call definition.""" + + type: Literal["code_interpreter"] + """The type of tool call. + + This is always going to be `code_interpreter` for this type of tool call. + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/code_interpreter_tool_call_delta.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/code_interpreter_tool_call_delta.py new file mode 100644 index 0000000000000000000000000000000000000000..efedac795c2f2810b51f9c0750602e5c48206b07 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/code_interpreter_tool_call_delta.py @@ -0,0 +1,48 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Union, Optional +from typing_extensions import Literal, Annotated, TypeAlias + +from ....._utils import PropertyInfo +from ....._models import BaseModel +from .code_interpreter_logs import CodeInterpreterLogs +from .code_interpreter_output_image import CodeInterpreterOutputImage + +__all__ = ["CodeInterpreterToolCallDelta", "CodeInterpreter", "CodeInterpreterOutput"] + +CodeInterpreterOutput: TypeAlias = Annotated[ + Union[CodeInterpreterLogs, CodeInterpreterOutputImage], PropertyInfo(discriminator="type") +] + + +class CodeInterpreter(BaseModel): + """The Code Interpreter tool call definition.""" + + input: Optional[str] = None + """The input to the Code Interpreter tool call.""" + + outputs: Optional[List[CodeInterpreterOutput]] = None + """The outputs from the Code Interpreter tool call. + + Code Interpreter can output one or more items, including text (`logs`) or images + (`image`). Each of these are represented by a different object type. + """ + + +class CodeInterpreterToolCallDelta(BaseModel): + """Details of the Code Interpreter tool call the run step was involved in.""" + + index: int + """The index of the tool call in the tool calls array.""" + + type: Literal["code_interpreter"] + """The type of tool call. + + This is always going to be `code_interpreter` for this type of tool call. + """ + + id: Optional[str] = None + """The ID of the tool call.""" + + code_interpreter: Optional[CodeInterpreter] = None + """The Code Interpreter tool call definition.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/file_search_tool_call.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/file_search_tool_call.py new file mode 100644 index 0000000000000000000000000000000000000000..291a93ec656abb9621d80347a1af53178ff0d552 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/file_search_tool_call.py @@ -0,0 +1,84 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from typing_extensions import Literal + +from ....._models import BaseModel + +__all__ = [ + "FileSearchToolCall", + "FileSearch", + "FileSearchRankingOptions", + "FileSearchResult", + "FileSearchResultContent", +] + + +class FileSearchRankingOptions(BaseModel): + """The ranking options for the file search.""" + + ranker: Literal["auto", "default_2024_08_21"] + """The ranker to use for the file search. + + If not specified will use the `auto` ranker. + """ + + score_threshold: float + """The score threshold for the file search. + + All values must be a floating point number between 0 and 1. + """ + + +class FileSearchResultContent(BaseModel): + text: Optional[str] = None + """The text content of the file.""" + + type: Optional[Literal["text"]] = None + """The type of the content.""" + + +class FileSearchResult(BaseModel): + """A result instance of the file search.""" + + file_id: str + """The ID of the file that result was found in.""" + + file_name: str + """The name of the file that result was found in.""" + + score: float + """The score of the result. + + All values must be a floating point number between 0 and 1. + """ + + content: Optional[List[FileSearchResultContent]] = None + """The content of the result that was found. + + The content is only included if requested via the include query parameter. + """ + + +class FileSearch(BaseModel): + """For now, this is always going to be an empty object.""" + + ranking_options: Optional[FileSearchRankingOptions] = None + """The ranking options for the file search.""" + + results: Optional[List[FileSearchResult]] = None + """The results of the file search.""" + + +class FileSearchToolCall(BaseModel): + id: str + """The ID of the tool call object.""" + + file_search: FileSearch + """For now, this is always going to be an empty object.""" + + type: Literal["file_search"] + """The type of tool call. + + This is always going to be `file_search` for this type of tool call. + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/file_search_tool_call_delta.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/file_search_tool_call_delta.py new file mode 100644 index 0000000000000000000000000000000000000000..df5ac217dc09bafacd8a4dbb764ffd9c05742c0c --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/file_search_tool_call_delta.py @@ -0,0 +1,25 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ....._models import BaseModel + +__all__ = ["FileSearchToolCallDelta"] + + +class FileSearchToolCallDelta(BaseModel): + file_search: object + """For now, this is always going to be an empty object.""" + + index: int + """The index of the tool call in the tool calls array.""" + + type: Literal["file_search"] + """The type of tool call. + + This is always going to be `file_search` for this type of tool call. + """ + + id: Optional[str] = None + """The ID of the tool call object.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/function_tool_call.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/function_tool_call.py new file mode 100644 index 0000000000000000000000000000000000000000..dd0e22cfb1a28504b2324465e152127e3db58c3f --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/function_tool_call.py @@ -0,0 +1,40 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ....._models import BaseModel + +__all__ = ["FunctionToolCall", "Function"] + + +class Function(BaseModel): + """The definition of the function that was called.""" + + arguments: str + """The arguments passed to the function.""" + + name: str + """The name of the function.""" + + output: Optional[str] = None + """The output of the function. + + This will be `null` if the outputs have not been + [submitted](https://platform.openai.com/docs/api-reference/runs/submitToolOutputs) + yet. + """ + + +class FunctionToolCall(BaseModel): + id: str + """The ID of the tool call object.""" + + function: Function + """The definition of the function that was called.""" + + type: Literal["function"] + """The type of tool call. + + This is always going to be `function` for this type of tool call. + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/function_tool_call_delta.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/function_tool_call_delta.py new file mode 100644 index 0000000000000000000000000000000000000000..4107e1b873a7090b221fc95ac9b7fbaa9db03c96 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/function_tool_call_delta.py @@ -0,0 +1,43 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ....._models import BaseModel + +__all__ = ["FunctionToolCallDelta", "Function"] + + +class Function(BaseModel): + """The definition of the function that was called.""" + + arguments: Optional[str] = None + """The arguments passed to the function.""" + + name: Optional[str] = None + """The name of the function.""" + + output: Optional[str] = None + """The output of the function. + + This will be `null` if the outputs have not been + [submitted](https://platform.openai.com/docs/api-reference/runs/submitToolOutputs) + yet. + """ + + +class FunctionToolCallDelta(BaseModel): + index: int + """The index of the tool call in the tool calls array.""" + + type: Literal["function"] + """The type of tool call. + + This is always going to be `function` for this type of tool call. + """ + + id: Optional[str] = None + """The ID of the tool call object.""" + + function: Optional[Function] = None + """The definition of the function that was called.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/message_creation_step_details.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/message_creation_step_details.py new file mode 100644 index 0000000000000000000000000000000000000000..cd925b57ce7fd81c06cf6d158bae0467570b6fc1 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/message_creation_step_details.py @@ -0,0 +1,21 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ....._models import BaseModel + +__all__ = ["MessageCreationStepDetails", "MessageCreation"] + + +class MessageCreation(BaseModel): + message_id: str + """The ID of the message that was created by this run step.""" + + +class MessageCreationStepDetails(BaseModel): + """Details of the message creation by the run step.""" + + message_creation: MessageCreation + + type: Literal["message_creation"] + """Always `message_creation`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/run_step.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/run_step.py new file mode 100644 index 0000000000000000000000000000000000000000..97451229fca65cdeaa3325638c21576701309218 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/run_step.py @@ -0,0 +1,127 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Union, Optional +from typing_extensions import Literal, Annotated, TypeAlias + +from ....._utils import PropertyInfo +from ....._models import BaseModel +from ....shared.metadata import Metadata +from .tool_calls_step_details import ToolCallsStepDetails +from .message_creation_step_details import MessageCreationStepDetails + +__all__ = ["RunStep", "LastError", "StepDetails", "Usage"] + + +class LastError(BaseModel): + """The last error associated with this run step. + + Will be `null` if there are no errors. + """ + + code: Literal["server_error", "rate_limit_exceeded"] + """One of `server_error` or `rate_limit_exceeded`.""" + + message: str + """A human-readable description of the error.""" + + +StepDetails: TypeAlias = Annotated[ + Union[MessageCreationStepDetails, ToolCallsStepDetails], PropertyInfo(discriminator="type") +] + + +class Usage(BaseModel): + """Usage statistics related to the run step. + + This value will be `null` while the run step's status is `in_progress`. + """ + + completion_tokens: int + """Number of completion tokens used over the course of the run step.""" + + prompt_tokens: int + """Number of prompt tokens used over the course of the run step.""" + + total_tokens: int + """Total number of tokens used (prompt + completion).""" + + +class RunStep(BaseModel): + """Represents a step in execution of a run.""" + + id: str + """The identifier of the run step, which can be referenced in API endpoints.""" + + assistant_id: str + """ + The ID of the + [assistant](https://platform.openai.com/docs/api-reference/assistants) + associated with the run step. + """ + + cancelled_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the run step was cancelled.""" + + completed_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the run step completed.""" + + created_at: int + """The Unix timestamp (in seconds) for when the run step was created.""" + + expired_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the run step expired. + + A step is considered expired if the parent run is expired. + """ + + failed_at: Optional[int] = None + """The Unix timestamp (in seconds) for when the run step failed.""" + + last_error: Optional[LastError] = None + """The last error associated with this run step. + + Will be `null` if there are no errors. + """ + + metadata: Optional[Metadata] = None + """Set of 16 key-value pairs that can be attached to an object. + + This can be useful for storing additional information about the object in a + structured format, and querying for objects via API or the dashboard. + + Keys are strings with a maximum length of 64 characters. Values are strings with + a maximum length of 512 characters. + """ + + object: Literal["thread.run.step"] + """The object type, which is always `thread.run.step`.""" + + run_id: str + """ + The ID of the [run](https://platform.openai.com/docs/api-reference/runs) that + this run step is a part of. + """ + + status: Literal["in_progress", "cancelled", "failed", "completed", "expired"] + """ + The status of the run step, which can be either `in_progress`, `cancelled`, + `failed`, `completed`, or `expired`. + """ + + step_details: StepDetails + """The details of the run step.""" + + thread_id: str + """ + The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) + that was run. + """ + + type: Literal["message_creation", "tool_calls"] + """The type of run step, which can be either `message_creation` or `tool_calls`.""" + + usage: Optional[Usage] = None + """Usage statistics related to the run step. + + This value will be `null` while the run step's status is `in_progress`. + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/run_step_delta.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/run_step_delta.py new file mode 100644 index 0000000000000000000000000000000000000000..2ccb770d572514c943582e43ffdc2f43512f5dad --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/run_step_delta.py @@ -0,0 +1,22 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Union, Optional +from typing_extensions import Annotated, TypeAlias + +from ....._utils import PropertyInfo +from ....._models import BaseModel +from .tool_call_delta_object import ToolCallDeltaObject +from .run_step_delta_message_delta import RunStepDeltaMessageDelta + +__all__ = ["RunStepDelta", "StepDetails"] + +StepDetails: TypeAlias = Annotated[ + Union[RunStepDeltaMessageDelta, ToolCallDeltaObject], PropertyInfo(discriminator="type") +] + + +class RunStepDelta(BaseModel): + """The delta containing the fields that have changed on the run step.""" + + step_details: Optional[StepDetails] = None + """The details of the run step.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/run_step_delta_event.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/run_step_delta_event.py new file mode 100644 index 0000000000000000000000000000000000000000..8f1c095ae4347dc770ef0f4455c82c3dbf9a271c --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/run_step_delta_event.py @@ -0,0 +1,24 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ....._models import BaseModel +from .run_step_delta import RunStepDelta + +__all__ = ["RunStepDeltaEvent"] + + +class RunStepDeltaEvent(BaseModel): + """Represents a run step delta i.e. + + any changed fields on a run step during streaming. + """ + + id: str + """The identifier of the run step, which can be referenced in API endpoints.""" + + delta: RunStepDelta + """The delta containing the fields that have changed on the run step.""" + + object: Literal["thread.run.step.delta"] + """The object type, which is always `thread.run.step.delta`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/run_step_delta_message_delta.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/run_step_delta_message_delta.py new file mode 100644 index 0000000000000000000000000000000000000000..4b18277c1823fba8869d6f7bfb7357e2d07802f9 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/run_step_delta_message_delta.py @@ -0,0 +1,22 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ....._models import BaseModel + +__all__ = ["RunStepDeltaMessageDelta", "MessageCreation"] + + +class MessageCreation(BaseModel): + message_id: Optional[str] = None + """The ID of the message that was created by this run step.""" + + +class RunStepDeltaMessageDelta(BaseModel): + """Details of the message creation by the run step.""" + + type: Literal["message_creation"] + """Always `message_creation`.""" + + message_creation: Optional[MessageCreation] = None diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/run_step_include.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/run_step_include.py new file mode 100644 index 0000000000000000000000000000000000000000..8e76c1b716a9e1efcb8b3727daee04c6927d870f --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/run_step_include.py @@ -0,0 +1,7 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal, TypeAlias + +__all__ = ["RunStepInclude"] + +RunStepInclude: TypeAlias = Literal["step_details.tool_calls[*].file_search.results[*].content"] diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/step_list_params.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/step_list_params.py new file mode 100644 index 0000000000000000000000000000000000000000..a6be771d9f9e5d299bb31404c5b03a9d206ea8e0 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/step_list_params.py @@ -0,0 +1,56 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import List +from typing_extensions import Literal, Required, TypedDict + +from .run_step_include import RunStepInclude + +__all__ = ["StepListParams"] + + +class StepListParams(TypedDict, total=False): + thread_id: Required[str] + + after: str + """A cursor for use in pagination. + + `after` is an object ID that defines your place in the list. For instance, if + you make a list request and receive 100 objects, ending with obj_foo, your + subsequent call can include after=obj_foo in order to fetch the next page of the + list. + """ + + before: str + """A cursor for use in pagination. + + `before` is an object ID that defines your place in the list. For instance, if + you make a list request and receive 100 objects, starting with obj_foo, your + subsequent call can include before=obj_foo in order to fetch the previous page + of the list. + """ + + include: List[RunStepInclude] + """A list of additional fields to include in the response. + + Currently the only supported value is + `step_details.tool_calls[*].file_search.results[*].content` to fetch the file + search result content. + + See the + [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings) + for more information. + """ + + limit: int + """A limit on the number of objects to be returned. + + Limit can range between 1 and 100, and the default is 20. + """ + + order: Literal["asc", "desc"] + """Sort order by the `created_at` timestamp of the objects. + + `asc` for ascending order and `desc` for descending order. + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/step_retrieve_params.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/step_retrieve_params.py new file mode 100644 index 0000000000000000000000000000000000000000..ecbb72edbd1dd8a82ef426fc2db04dc243778f63 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/step_retrieve_params.py @@ -0,0 +1,28 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import List +from typing_extensions import Required, TypedDict + +from .run_step_include import RunStepInclude + +__all__ = ["StepRetrieveParams"] + + +class StepRetrieveParams(TypedDict, total=False): + thread_id: Required[str] + + run_id: Required[str] + + include: List[RunStepInclude] + """A list of additional fields to include in the response. + + Currently the only supported value is + `step_details.tool_calls[*].file_search.results[*].content` to fetch the file + search result content. + + See the + [file search tool documentation](https://platform.openai.com/docs/assistants/tools/file-search#customizing-file-search-settings) + for more information. + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/tool_call.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/tool_call.py new file mode 100644 index 0000000000000000000000000000000000000000..565e3109bec29bd8b7189ea2acfddc07b6438f09 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/tool_call.py @@ -0,0 +1,15 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Union +from typing_extensions import Annotated, TypeAlias + +from ....._utils import PropertyInfo +from .function_tool_call import FunctionToolCall +from .file_search_tool_call import FileSearchToolCall +from .code_interpreter_tool_call import CodeInterpreterToolCall + +__all__ = ["ToolCall"] + +ToolCall: TypeAlias = Annotated[ + Union[CodeInterpreterToolCall, FileSearchToolCall, FunctionToolCall], PropertyInfo(discriminator="type") +] diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/tool_call_delta.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/tool_call_delta.py new file mode 100644 index 0000000000000000000000000000000000000000..f0b8070c9752e65008557f073e066a005b5f9f8e --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/tool_call_delta.py @@ -0,0 +1,16 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Union +from typing_extensions import Annotated, TypeAlias + +from ....._utils import PropertyInfo +from .function_tool_call_delta import FunctionToolCallDelta +from .file_search_tool_call_delta import FileSearchToolCallDelta +from .code_interpreter_tool_call_delta import CodeInterpreterToolCallDelta + +__all__ = ["ToolCallDelta"] + +ToolCallDelta: TypeAlias = Annotated[ + Union[CodeInterpreterToolCallDelta, FileSearchToolCallDelta, FunctionToolCallDelta], + PropertyInfo(discriminator="type"), +] diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/tool_call_delta_object.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/tool_call_delta_object.py new file mode 100644 index 0000000000000000000000000000000000000000..dbd1096ad61de7fdbb2d265cc742151241b2a238 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/tool_call_delta_object.py @@ -0,0 +1,23 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from typing_extensions import Literal + +from ....._models import BaseModel +from .tool_call_delta import ToolCallDelta + +__all__ = ["ToolCallDeltaObject"] + + +class ToolCallDeltaObject(BaseModel): + """Details of the tool call.""" + + type: Literal["tool_calls"] + """Always `tool_calls`.""" + + tool_calls: Optional[List[ToolCallDelta]] = None + """An array of tool calls the run step was involved in. + + These can be associated with one of three types of tools: `code_interpreter`, + `file_search`, or `function`. + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/tool_calls_step_details.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/tool_calls_step_details.py new file mode 100644 index 0000000000000000000000000000000000000000..1f54a6aa713f311ef920197c64aed2341ebcf02b --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/runs/tool_calls_step_details.py @@ -0,0 +1,23 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List +from typing_extensions import Literal + +from .tool_call import ToolCall +from ....._models import BaseModel + +__all__ = ["ToolCallsStepDetails"] + + +class ToolCallsStepDetails(BaseModel): + """Details of the tool call.""" + + tool_calls: List[ToolCall] + """An array of tool calls the run step was involved in. + + These can be associated with one of three types of tools: `code_interpreter`, + `file_search`, or `function`. + """ + + type: Literal["tool_calls"] + """Always `tool_calls`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/text.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/text.py new file mode 100644 index 0000000000000000000000000000000000000000..853bec29556cf8031185fe36eacbbc8f7864cc67 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/text.py @@ -0,0 +1,15 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List + +from ...._models import BaseModel +from .annotation import Annotation + +__all__ = ["Text"] + + +class Text(BaseModel): + annotations: List[Annotation] + + value: str + """The data that makes up the text.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/text_content_block_param.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/text_content_block_param.py new file mode 100644 index 0000000000000000000000000000000000000000..22c864438d0129f525aa70433238498a79d6e44a --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/text_content_block_param.py @@ -0,0 +1,17 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["TextContentBlockParam"] + + +class TextContentBlockParam(TypedDict, total=False): + """The text content that is part of a message.""" + + text: Required[str] + """Text content to be sent to the model""" + + type: Required[Literal["text"]] + """Always `text`.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/text_delta.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/text_delta.py new file mode 100644 index 0000000000000000000000000000000000000000..09cd357027867f15c24bff1ec59e0b059e6341c8 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/text_delta.py @@ -0,0 +1,15 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional + +from ...._models import BaseModel +from .annotation_delta import AnnotationDelta + +__all__ = ["TextDelta"] + + +class TextDelta(BaseModel): + annotations: Optional[List[AnnotationDelta]] = None + + value: Optional[str] = None + """The data that makes up the text.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/beta/threads/text_delta_block.py b/py311/lib/python3.11/site-packages/openai/types/beta/threads/text_delta_block.py new file mode 100644 index 0000000000000000000000000000000000000000..a3d339ccad8fd4283d44e962c2d66b790d169719 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/beta/threads/text_delta_block.py @@ -0,0 +1,21 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel +from .text_delta import TextDelta + +__all__ = ["TextDeltaBlock"] + + +class TextDeltaBlock(BaseModel): + """The text content that is part of a message.""" + + index: int + """The index of the content part in the message.""" + + type: Literal["text"] + """Always `text`.""" + + text: Optional[TextDelta] = None diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/__init__.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ba6e39eb9512ab425873c625baf2a97ee607a152 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/__init__.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9c897e4b264fe41fb4581fc638f42578911c9489 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_allowed_tool_choice_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_allowed_tool_choice_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5f903defc9cc66c0c4f2f7dbed57610f31b74842 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_allowed_tool_choice_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_allowed_tools_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_allowed_tools_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..70e2cc3bbcce7860638494a59d7f36aaee23e505 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_allowed_tools_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_assistant_message_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_assistant_message_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5776fb58ab85c54ecb82843d4c07795e4f56369a Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_assistant_message_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_audio.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_audio.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4e1e6cccf759383c6abe4ca9c0e6d18dc504552b Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_audio.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_audio_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_audio_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fa98ed95c9f7155173c041748906ed85a4d27d22 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_audio_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_chunk.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_chunk.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..dc018582c4994d2e981512e89508008e2ee6d338 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_chunk.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_content_part_image.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_content_part_image.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7559edcef1e013e98aa7554dcfc8b29962e62fdd Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_content_part_image.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_content_part_image_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_content_part_image_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..34c4df772eb74c4ce16883757523ff9703961a6e Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_content_part_image_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_content_part_input_audio_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_content_part_input_audio_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3a3ed4462d6fcbd2e2c9938fa8fdf11fee0dc5e9 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_content_part_input_audio_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_content_part_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_content_part_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..81772cdffc776aeef3d972fe645a4392d97ddf61 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_content_part_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_content_part_refusal_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_content_part_refusal_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..319b4c2bd1b2bd6a2d1dfb0b767ea58abdf3e015 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_content_part_refusal_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_content_part_text.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_content_part_text.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..44a542268d740e6d17ab9b0dbf6f3fa781d65576 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_content_part_text.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_content_part_text_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_content_part_text_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fd0a532e6a04b25d84ea04b1649bc325d8096aea Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_content_part_text_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_custom_tool_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_custom_tool_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1c872e19e4d64cf6139a3ff24cb1209e990750f3 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_custom_tool_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_deleted.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_deleted.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3291f74c5d5b542d09b8237d86bf8f222d1ec71c Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_deleted.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_developer_message_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_developer_message_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e53c953ae43b4ed3d05f1fff927d08b0fa0601c0 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_developer_message_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_function_call_option_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_function_call_option_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..dfa1884c5a8e9762fdb13a70b18f3ef7a6123c5c Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_function_call_option_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_function_message_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_function_message_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6c2829f322681c68adbb5459f20ed1fbcefaf7d9 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_function_message_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_function_tool.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_function_tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8bf33ede96c82f235fe3c896f5ab448c787f28df Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_function_tool.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_function_tool_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_function_tool_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9627e48b5b0399ae0a575f27c59f9a0707cc3220 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_function_tool_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_message.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_message.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..db2b2ffc0976540d68100a1012821e93a7bc0f3c Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_message.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_message_custom_tool_call.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_message_custom_tool_call.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7c5af28a4b1bbe760a8acf68ff362d9764093e63 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_message_custom_tool_call.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_message_custom_tool_call_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_message_custom_tool_call_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..01b38e9fdb72789dfeb4287822805c2ad5bc5639 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_message_custom_tool_call_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_message_function_tool_call.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_message_function_tool_call.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ad3ef74950c256faeceb5c583147b59f6629c2ed Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_message_function_tool_call.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_message_function_tool_call_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_message_function_tool_call_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ffb6489a0f97c1a869365bb2a1968da0d0e2705c Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_message_function_tool_call_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_message_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_message_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..072eeb4f2d45e726495c279d60d4f51e8ec84130 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_message_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_message_tool_call.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_message_tool_call.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e4fb246af99fa99c114e4713b4f44bff55e15f95 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_message_tool_call.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_message_tool_call_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_message_tool_call_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..22f0a94d1597dcbf1c0cef731f5ef5db52a1d35c Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_message_tool_call_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_message_tool_call_union_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_message_tool_call_union_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..085ec77489e4a358f7331920e61c3615888cf78b Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_message_tool_call_union_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_modality.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_modality.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d3ea3afabc602070079560f41b819f33285658df Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_modality.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_named_tool_choice_custom_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_named_tool_choice_custom_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..91fa6f2ba2cec9984f2e340ee748adc051240ed3 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_named_tool_choice_custom_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_named_tool_choice_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_named_tool_choice_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b059cb3e7ecef0de62756e9e15be78aa875502c0 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_named_tool_choice_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_prediction_content_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_prediction_content_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b51ca77c8fc3090096854dd109bc590aa6445fa5 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_prediction_content_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_reasoning_effort.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_reasoning_effort.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d09ebe04f2dd41f211426e1898e82388caf44f09 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_reasoning_effort.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_role.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_role.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..110a3f22adb54bb7898a6bb153551a5ef7618fdd Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_role.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_store_message.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_store_message.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3b98a8f58f357b5bafe89e2b577be55b7919953b Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_store_message.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_stream_options_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_stream_options_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..dce2b4f480a772bddffe376faacab6908812a461 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_stream_options_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_system_message_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_system_message_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..eb3ef1191eb63f2b59f8e6b365b8004b916ccaea Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_system_message_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_token_logprob.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_token_logprob.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b3a21c676d02128b45256a66b676aab877a5f578 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_token_logprob.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_tool_choice_option_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_tool_choice_option_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..13e0e05afa32582a15bbd4acda80af015ec619cc Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_tool_choice_option_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_tool_message_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_tool_message_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6f2037a81b34d2e0e67329adf653e71579aedb26 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_tool_message_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_tool_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_tool_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..754f7a91a26d89067aa35a431a36cc3b9e57d3a5 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_tool_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_tool_union_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_tool_union_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7b471d988f537047405ed2ef1244ad8801b34895 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_tool_union_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_user_message_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_user_message_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5f45de43019a601acab73b9800b29ccabc3232cf Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/chat_completion_user_message_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/completion_create_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/completion_create_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..dd512354ac29a2581a865b92d6304c6c4c591a27 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/completion_create_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/completion_list_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/completion_list_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..70b5ce823ba84b6861edb8ae11ec6b1047931f44 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/completion_list_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/completion_update_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/completion_update_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..db58c2909a23e028b11db331ac08e8a94034ffe6 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/completion_update_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/parsed_chat_completion.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/parsed_chat_completion.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f0b66b3e8a03575fd8b92c050fc3e6e6d114d538 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/parsed_chat_completion.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/parsed_function_tool_call.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/parsed_function_tool_call.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e6b6b079b70fe50c8ce0e835e3147513ad5ebfaf Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/__pycache__/parsed_function_tool_call.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/completions/__init__.py b/py311/lib/python3.11/site-packages/openai/types/chat/completions/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..b8e62d6a64afa1627c8b4b2b660e02965180841c --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/chat/completions/__init__.py @@ -0,0 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from .message_list_params import MessageListParams as MessageListParams diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/completions/__pycache__/__init__.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/completions/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3a4f6bf3243175b713275a624cd8f61aef166314 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/completions/__pycache__/__init__.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/completions/__pycache__/message_list_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/chat/completions/__pycache__/message_list_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a5df74286285b914c59871a0d27ac67802df921e Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/chat/completions/__pycache__/message_list_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/chat/completions/message_list_params.py b/py311/lib/python3.11/site-packages/openai/types/chat/completions/message_list_params.py new file mode 100644 index 0000000000000000000000000000000000000000..4e694e83ea271846b1c2533e38300da78a55c367 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/chat/completions/message_list_params.py @@ -0,0 +1,21 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, TypedDict + +__all__ = ["MessageListParams"] + + +class MessageListParams(TypedDict, total=False): + after: str + """Identifier for the last message from the previous pagination request.""" + + limit: int + """Number of messages to retrieve.""" + + order: Literal["asc", "desc"] + """Sort order for messages by timestamp. + + Use `asc` for ascending order or `desc` for descending order. Defaults to `asc`. + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/containers/__pycache__/__init__.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/containers/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6a4f92550a086aba052bcc1330c05390cb9c0c6b Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/containers/__pycache__/__init__.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/containers/__pycache__/file_create_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/containers/__pycache__/file_create_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..91bfbd9a7ffaead9428a09bc7489b7a8362273d7 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/containers/__pycache__/file_create_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/containers/__pycache__/file_create_response.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/containers/__pycache__/file_create_response.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3b3ee71648867ad1cf09d2d0d056eac519fc845e Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/containers/__pycache__/file_create_response.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/containers/__pycache__/file_list_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/containers/__pycache__/file_list_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..020b2f5941fb599f71c7a4b23a87240b34381be8 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/containers/__pycache__/file_list_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/containers/__pycache__/file_list_response.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/containers/__pycache__/file_list_response.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..55d9b93d3fca378bd4481a3f5d33f272d0735acf Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/containers/__pycache__/file_list_response.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/containers/__pycache__/file_retrieve_response.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/containers/__pycache__/file_retrieve_response.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7e55649ee42126b85eb483f658f4c03b9649f419 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/containers/__pycache__/file_retrieve_response.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/containers/files/__init__.py b/py311/lib/python3.11/site-packages/openai/types/containers/files/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..f8ee8b14b1c9672e41196e26a6080eebf45914b6 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/containers/files/__init__.py @@ -0,0 +1,3 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations diff --git a/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/__init__.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..99e963bed3efb2c3205d7970953faf8cc9822732 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/__init__.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/create_eval_completions_run_data_source.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/create_eval_completions_run_data_source.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4de6adc4739c2be960d02328c2ec644a1d01030f Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/create_eval_completions_run_data_source.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/create_eval_completions_run_data_source_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/create_eval_completions_run_data_source_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..16be469ace6ea2b7339b2e669fa575c5f7a88844 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/create_eval_completions_run_data_source_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/create_eval_jsonl_run_data_source.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/create_eval_jsonl_run_data_source.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..155f0747e33d5c41e0fce88d67c5c4c6a9c6e8d1 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/create_eval_jsonl_run_data_source.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/create_eval_jsonl_run_data_source_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/create_eval_jsonl_run_data_source_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..68e8b30dae04e88eb39c024cc083c26cf6045615 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/create_eval_jsonl_run_data_source_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/eval_api_error.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/eval_api_error.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a68ffa685fa81731c9cdd5bbe48a3de80f19e204 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/eval_api_error.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/run_cancel_response.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/run_cancel_response.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d52a13f63874039d328286d18778bdebba16694b Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/run_cancel_response.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/run_create_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/run_create_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7ccdaed96ec4dee8651760ae147c9596469db0d1 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/run_create_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/run_create_response.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/run_create_response.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..10c6b6c9bed2f12425fbc6ca863baf1f5d957c4c Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/run_create_response.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/run_delete_response.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/run_delete_response.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..952deaf2c4f45527ddabf9217eb7033e7c7dca40 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/run_delete_response.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/run_list_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/run_list_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..328a190a65da9cead84315bc75a9f8f63cd6c44e Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/run_list_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/run_list_response.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/run_list_response.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..dc8c19aaf11d86853188d62d8e2e1723c224a932 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/run_list_response.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/run_retrieve_response.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/run_retrieve_response.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b2ade294f8d73cfa1afc9f0b6db0975e79bd58ec Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/evals/__pycache__/run_retrieve_response.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/evals/runs/__init__.py b/py311/lib/python3.11/site-packages/openai/types/evals/runs/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..b77cbb6acd6081ad51ac61921a9c93a51a9ff67a --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/evals/runs/__init__.py @@ -0,0 +1,7 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from .output_item_list_params import OutputItemListParams as OutputItemListParams +from .output_item_list_response import OutputItemListResponse as OutputItemListResponse +from .output_item_retrieve_response import OutputItemRetrieveResponse as OutputItemRetrieveResponse diff --git a/py311/lib/python3.11/site-packages/openai/types/evals/runs/__pycache__/__init__.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/evals/runs/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f25c373f1b777b8de7a17ac93c151597e676fab5 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/evals/runs/__pycache__/__init__.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/evals/runs/__pycache__/output_item_list_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/evals/runs/__pycache__/output_item_list_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..49697236859db622bbfbdaf2d060604da1e709ce Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/evals/runs/__pycache__/output_item_list_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/evals/runs/__pycache__/output_item_list_response.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/evals/runs/__pycache__/output_item_list_response.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a884a6b7c6a4fa79f439cb75ad464714a6bfdcfc Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/evals/runs/__pycache__/output_item_list_response.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/evals/runs/__pycache__/output_item_retrieve_response.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/evals/runs/__pycache__/output_item_retrieve_response.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2970afcdf93b1d9c52f7557b3d26f8808dc90d29 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/evals/runs/__pycache__/output_item_retrieve_response.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/evals/runs/output_item_list_params.py b/py311/lib/python3.11/site-packages/openai/types/evals/runs/output_item_list_params.py new file mode 100644 index 0000000000000000000000000000000000000000..073bfc69a7ae83145b0807448bc2d031541015e3 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/evals/runs/output_item_list_params.py @@ -0,0 +1,30 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["OutputItemListParams"] + + +class OutputItemListParams(TypedDict, total=False): + eval_id: Required[str] + + after: str + """Identifier for the last output item from the previous pagination request.""" + + limit: int + """Number of output items to retrieve.""" + + order: Literal["asc", "desc"] + """Sort order for output items by timestamp. + + Use `asc` for ascending order or `desc` for descending order. Defaults to `asc`. + """ + + status: Literal["fail", "pass"] + """Filter output items by status. + + Use `failed` to filter by failed output items or `pass` to filter by passed + output items. + """ diff --git a/py311/lib/python3.11/site-packages/openai/types/evals/runs/output_item_list_response.py b/py311/lib/python3.11/site-packages/openai/types/evals/runs/output_item_list_response.py new file mode 100644 index 0000000000000000000000000000000000000000..a906a29df7c71cb9f5c6ce4528476dd7df982f3a --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/evals/runs/output_item_list_response.py @@ -0,0 +1,144 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import TYPE_CHECKING, Dict, List, Optional +from typing_extensions import Literal + +from pydantic import Field as FieldInfo + +from ...._models import BaseModel +from ..eval_api_error import EvalAPIError + +__all__ = ["OutputItemListResponse", "Result", "Sample", "SampleInput", "SampleOutput", "SampleUsage"] + + +class Result(BaseModel): + """A single grader result for an evaluation run output item.""" + + name: str + """The name of the grader.""" + + passed: bool + """Whether the grader considered the output a pass.""" + + score: float + """The numeric score produced by the grader.""" + + sample: Optional[Dict[str, object]] = None + """Optional sample or intermediate data produced by the grader.""" + + type: Optional[str] = None + """The grader type (for example, "string-check-grader").""" + + if TYPE_CHECKING: + # Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a + # value to this field, so for compatibility we avoid doing it at runtime. + __pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride] + + # Stub to indicate that arbitrary properties are accepted. + # To access properties that are not valid identifiers you can use `getattr`, e.g. + # `getattr(obj, '$type')` + def __getattr__(self, attr: str) -> object: ... + else: + __pydantic_extra__: Dict[str, object] + + +class SampleInput(BaseModel): + """An input message.""" + + content: str + """The content of the message.""" + + role: str + """The role of the message sender (e.g., system, user, developer).""" + + +class SampleOutput(BaseModel): + content: Optional[str] = None + """The content of the message.""" + + role: Optional[str] = None + """The role of the message (e.g. "system", "assistant", "user").""" + + +class SampleUsage(BaseModel): + """Token usage details for the sample.""" + + cached_tokens: int + """The number of tokens retrieved from cache.""" + + completion_tokens: int + """The number of completion tokens generated.""" + + prompt_tokens: int + """The number of prompt tokens used.""" + + total_tokens: int + """The total number of tokens used.""" + + +class Sample(BaseModel): + """A sample containing the input and output of the evaluation run.""" + + error: EvalAPIError + """An object representing an error response from the Eval API.""" + + finish_reason: str + """The reason why the sample generation was finished.""" + + input: List[SampleInput] + """An array of input messages.""" + + max_completion_tokens: int + """The maximum number of tokens allowed for completion.""" + + model: str + """The model used for generating the sample.""" + + output: List[SampleOutput] + """An array of output messages.""" + + seed: int + """The seed used for generating the sample.""" + + temperature: float + """The sampling temperature used.""" + + top_p: float + """The top_p value used for sampling.""" + + usage: SampleUsage + """Token usage details for the sample.""" + + +class OutputItemListResponse(BaseModel): + """A schema representing an evaluation run output item.""" + + id: str + """Unique identifier for the evaluation run output item.""" + + created_at: int + """Unix timestamp (in seconds) when the evaluation run was created.""" + + datasource_item: Dict[str, object] + """Details of the input data source item.""" + + datasource_item_id: int + """The identifier for the data source item.""" + + eval_id: str + """The identifier of the evaluation group.""" + + object: Literal["eval.run.output_item"] + """The type of the object. Always "eval.run.output_item".""" + + results: List[Result] + """A list of grader results for this output item.""" + + run_id: str + """The identifier of the evaluation run associated with this output item.""" + + sample: Sample + """A sample containing the input and output of the evaluation run.""" + + status: str + """The status of the evaluation run.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/evals/runs/output_item_retrieve_response.py b/py311/lib/python3.11/site-packages/openai/types/evals/runs/output_item_retrieve_response.py new file mode 100644 index 0000000000000000000000000000000000000000..42ba4b286405483dd9890ce6421c344944a99a7e --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/evals/runs/output_item_retrieve_response.py @@ -0,0 +1,144 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import TYPE_CHECKING, Dict, List, Optional +from typing_extensions import Literal + +from pydantic import Field as FieldInfo + +from ...._models import BaseModel +from ..eval_api_error import EvalAPIError + +__all__ = ["OutputItemRetrieveResponse", "Result", "Sample", "SampleInput", "SampleOutput", "SampleUsage"] + + +class Result(BaseModel): + """A single grader result for an evaluation run output item.""" + + name: str + """The name of the grader.""" + + passed: bool + """Whether the grader considered the output a pass.""" + + score: float + """The numeric score produced by the grader.""" + + sample: Optional[Dict[str, object]] = None + """Optional sample or intermediate data produced by the grader.""" + + type: Optional[str] = None + """The grader type (for example, "string-check-grader").""" + + if TYPE_CHECKING: + # Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a + # value to this field, so for compatibility we avoid doing it at runtime. + __pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride] + + # Stub to indicate that arbitrary properties are accepted. + # To access properties that are not valid identifiers you can use `getattr`, e.g. + # `getattr(obj, '$type')` + def __getattr__(self, attr: str) -> object: ... + else: + __pydantic_extra__: Dict[str, object] + + +class SampleInput(BaseModel): + """An input message.""" + + content: str + """The content of the message.""" + + role: str + """The role of the message sender (e.g., system, user, developer).""" + + +class SampleOutput(BaseModel): + content: Optional[str] = None + """The content of the message.""" + + role: Optional[str] = None + """The role of the message (e.g. "system", "assistant", "user").""" + + +class SampleUsage(BaseModel): + """Token usage details for the sample.""" + + cached_tokens: int + """The number of tokens retrieved from cache.""" + + completion_tokens: int + """The number of completion tokens generated.""" + + prompt_tokens: int + """The number of prompt tokens used.""" + + total_tokens: int + """The total number of tokens used.""" + + +class Sample(BaseModel): + """A sample containing the input and output of the evaluation run.""" + + error: EvalAPIError + """An object representing an error response from the Eval API.""" + + finish_reason: str + """The reason why the sample generation was finished.""" + + input: List[SampleInput] + """An array of input messages.""" + + max_completion_tokens: int + """The maximum number of tokens allowed for completion.""" + + model: str + """The model used for generating the sample.""" + + output: List[SampleOutput] + """An array of output messages.""" + + seed: int + """The seed used for generating the sample.""" + + temperature: float + """The sampling temperature used.""" + + top_p: float + """The top_p value used for sampling.""" + + usage: SampleUsage + """Token usage details for the sample.""" + + +class OutputItemRetrieveResponse(BaseModel): + """A schema representing an evaluation run output item.""" + + id: str + """Unique identifier for the evaluation run output item.""" + + created_at: int + """Unix timestamp (in seconds) when the evaluation run was created.""" + + datasource_item: Dict[str, object] + """Details of the input data source item.""" + + datasource_item_id: int + """The identifier for the data source item.""" + + eval_id: str + """The identifier of the evaluation group.""" + + object: Literal["eval.run.output_item"] + """The type of the object. Always "eval.run.output_item".""" + + results: List[Result] + """A list of grader results for this output item.""" + + run_id: str + """The identifier of the evaluation run associated with this output item.""" + + sample: Sample + """A sample containing the input and output of the evaluation run.""" + + status: str + """The status of the evaluation run.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/__init__.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..66bc54822098587ffd5618ec20bcca7831093f7c Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/__init__.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/dpo_hyperparameters.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/dpo_hyperparameters.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..61a2b69bbff957cf11c9412b42eb41887a5ab9cf Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/dpo_hyperparameters.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/dpo_hyperparameters_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/dpo_hyperparameters_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fe2a68a3aca9af39fc7a6061ca8a7172b2ea8da9 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/dpo_hyperparameters_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/dpo_method.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/dpo_method.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0200347321c3f6955c3b4ec169c6b403f360bf8e Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/dpo_method.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/dpo_method_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/dpo_method_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ad80f49516f88aaf7ff249664cc8b00f194d3062 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/dpo_method_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/fine_tuning_job.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/fine_tuning_job.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..26e7a184e132f48558f416a599befa9e452c69c3 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/fine_tuning_job.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/fine_tuning_job_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/fine_tuning_job_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..67c3a4aabf4ec6e8817562e68348db06833f1a37 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/fine_tuning_job_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/fine_tuning_job_integration.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/fine_tuning_job_integration.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7cbd6684f607652d6e56823d85d57b93cdb77cee Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/fine_tuning_job_integration.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/fine_tuning_job_wandb_integration.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/fine_tuning_job_wandb_integration.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c65bd90f562c4bc7e4f2e431ea3e3eb002f43141 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/fine_tuning_job_wandb_integration.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/fine_tuning_job_wandb_integration_object.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/fine_tuning_job_wandb_integration_object.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7302e21f82239fd13c1824c1ee4b2658c675f1cf Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/fine_tuning_job_wandb_integration_object.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/job_create_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/job_create_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6a8220d803040d5bced81e3f3259822bba3f3d97 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/job_create_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/job_list_events_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/job_list_events_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c248305270c5eb6955a98fb3838aea3e1b9d6e24 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/job_list_events_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/job_list_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/job_list_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..67f9b4fbf62a8e9baf64ae55fd92a3c7f7837c04 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/job_list_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/reinforcement_hyperparameters.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/reinforcement_hyperparameters.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..60a8c3ec9d0146ec8c90cf4312cead5cb5d02140 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/reinforcement_hyperparameters.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/reinforcement_hyperparameters_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/reinforcement_hyperparameters_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..af1830938cc22aa8381b892f36a4e9abd82250ba Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/reinforcement_hyperparameters_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/reinforcement_method.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/reinforcement_method.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..25c139c849b863ebbda8476cb996cbfad850fda9 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/reinforcement_method.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/reinforcement_method_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/reinforcement_method_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a3f40fe660d6aa0b38e0e8dd81fff506276dbbca Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/reinforcement_method_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/supervised_hyperparameters.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/supervised_hyperparameters.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a868388631b58290be3fe32375f403b9175ceb05 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/supervised_hyperparameters.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/supervised_hyperparameters_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/supervised_hyperparameters_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8e2c5d7b48e80ec33c03ceb0af5369679d6f2155 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/supervised_hyperparameters_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/supervised_method.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/supervised_method.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..44896a377c16f0bea5e3927a3f20e68231bf5a2a Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/supervised_method.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/supervised_method_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/supervised_method_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1cfe60b73e6b46771c707a14e73499e39983f095 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/__pycache__/supervised_method_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/alpha/__init__.py b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/alpha/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..6394961b0b76af24d7c75fdfa5d8d50f8ff9319e --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/alpha/__init__.py @@ -0,0 +1,8 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from .grader_run_params import GraderRunParams as GraderRunParams +from .grader_run_response import GraderRunResponse as GraderRunResponse +from .grader_validate_params import GraderValidateParams as GraderValidateParams +from .grader_validate_response import GraderValidateResponse as GraderValidateResponse diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/alpha/__pycache__/__init__.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/alpha/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1be6b4d24daf9b23d2d05413eb0f5879076f110a Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/alpha/__pycache__/__init__.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/alpha/__pycache__/grader_run_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/alpha/__pycache__/grader_run_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0d8084b3cada4d131bd022a0837329dabd71d3b7 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/alpha/__pycache__/grader_run_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/alpha/__pycache__/grader_run_response.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/alpha/__pycache__/grader_run_response.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cb08716fdad01c9428fa7ac3fc7637cc6cf18228 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/alpha/__pycache__/grader_run_response.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/alpha/__pycache__/grader_validate_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/alpha/__pycache__/grader_validate_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c238a6b7d45b30c4bf372f99fcddfd6d9af55035 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/alpha/__pycache__/grader_validate_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/alpha/__pycache__/grader_validate_response.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/alpha/__pycache__/grader_validate_response.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d075c342367239b19fd200adf2a422b9e088aa3b Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/alpha/__pycache__/grader_validate_response.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/alpha/grader_run_params.py b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/alpha/grader_run_params.py new file mode 100644 index 0000000000000000000000000000000000000000..646407fe0924f41c13585013a3193e6d6fbe75b1 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/alpha/grader_run_params.py @@ -0,0 +1,40 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union +from typing_extensions import Required, TypeAlias, TypedDict + +from ...graders.multi_grader_param import MultiGraderParam +from ...graders.python_grader_param import PythonGraderParam +from ...graders.score_model_grader_param import ScoreModelGraderParam +from ...graders.string_check_grader_param import StringCheckGraderParam +from ...graders.text_similarity_grader_param import TextSimilarityGraderParam + +__all__ = ["GraderRunParams", "Grader"] + + +class GraderRunParams(TypedDict, total=False): + grader: Required[Grader] + """The grader used for the fine-tuning job.""" + + model_sample: Required[str] + """The model sample to be evaluated. + + This value will be used to populate the `sample` namespace. See + [the guide](https://platform.openai.com/docs/guides/graders) for more details. + The `output_json` variable will be populated if the model sample is a valid JSON + string. + """ + + item: object + """The dataset item provided to the grader. + + This will be used to populate the `item` namespace. See + [the guide](https://platform.openai.com/docs/guides/graders) for more details. + """ + + +Grader: TypeAlias = Union[ + StringCheckGraderParam, TextSimilarityGraderParam, PythonGraderParam, ScoreModelGraderParam, MultiGraderParam +] diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/alpha/grader_run_response.py b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/alpha/grader_run_response.py new file mode 100644 index 0000000000000000000000000000000000000000..8ef046d1334ed33e5ef92e15b7076f2caa4e3d82 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/alpha/grader_run_response.py @@ -0,0 +1,67 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Dict, Optional + +from pydantic import Field as FieldInfo + +from ...._models import BaseModel + +__all__ = ["GraderRunResponse", "Metadata", "MetadataErrors"] + + +class MetadataErrors(BaseModel): + formula_parse_error: bool + + invalid_variable_error: bool + + api_model_grader_parse_error: bool = FieldInfo(alias="model_grader_parse_error") + + api_model_grader_refusal_error: bool = FieldInfo(alias="model_grader_refusal_error") + + api_model_grader_server_error: bool = FieldInfo(alias="model_grader_server_error") + + api_model_grader_server_error_details: Optional[str] = FieldInfo( + alias="model_grader_server_error_details", default=None + ) + + other_error: bool + + python_grader_runtime_error: bool + + python_grader_runtime_error_details: Optional[str] = None + + python_grader_server_error: bool + + python_grader_server_error_type: Optional[str] = None + + sample_parse_error: bool + + truncated_observation_error: bool + + unresponsive_reward_error: bool + + +class Metadata(BaseModel): + errors: MetadataErrors + + execution_time: float + + name: str + + sampled_model_name: Optional[str] = None + + scores: Dict[str, object] + + token_usage: Optional[int] = None + + type: str + + +class GraderRunResponse(BaseModel): + metadata: Metadata + + api_model_grader_token_usage_per_model: Dict[str, object] = FieldInfo(alias="model_grader_token_usage_per_model") + + reward: float + + sub_rewards: Dict[str, object] diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/alpha/grader_validate_params.py b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/alpha/grader_validate_params.py new file mode 100644 index 0000000000000000000000000000000000000000..fe9eb44e328399f9979c6067d74d3ec959c0cc1f --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/alpha/grader_validate_params.py @@ -0,0 +1,24 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union +from typing_extensions import Required, TypeAlias, TypedDict + +from ...graders.multi_grader_param import MultiGraderParam +from ...graders.python_grader_param import PythonGraderParam +from ...graders.score_model_grader_param import ScoreModelGraderParam +from ...graders.string_check_grader_param import StringCheckGraderParam +from ...graders.text_similarity_grader_param import TextSimilarityGraderParam + +__all__ = ["GraderValidateParams", "Grader"] + + +class GraderValidateParams(TypedDict, total=False): + grader: Required[Grader] + """The grader used for the fine-tuning job.""" + + +Grader: TypeAlias = Union[ + StringCheckGraderParam, TextSimilarityGraderParam, PythonGraderParam, ScoreModelGraderParam, MultiGraderParam +] diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/alpha/grader_validate_response.py b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/alpha/grader_validate_response.py new file mode 100644 index 0000000000000000000000000000000000000000..b373292d80ca94b22240e4f10641855f1fd404c9 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/alpha/grader_validate_response.py @@ -0,0 +1,20 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Union, Optional +from typing_extensions import TypeAlias + +from ...._models import BaseModel +from ...graders.multi_grader import MultiGrader +from ...graders.python_grader import PythonGrader +from ...graders.score_model_grader import ScoreModelGrader +from ...graders.string_check_grader import StringCheckGrader +from ...graders.text_similarity_grader import TextSimilarityGrader + +__all__ = ["GraderValidateResponse", "Grader"] + +Grader: TypeAlias = Union[StringCheckGrader, TextSimilarityGrader, PythonGrader, ScoreModelGrader, MultiGrader] + + +class GraderValidateResponse(BaseModel): + grader: Optional[Grader] = None + """The grader used for the fine-tuning job.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/__init__.py b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..2947b33145f8a3f494f400198127e9f11c21b952 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/__init__.py @@ -0,0 +1,9 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from .permission_create_params import PermissionCreateParams as PermissionCreateParams +from .permission_create_response import PermissionCreateResponse as PermissionCreateResponse +from .permission_delete_response import PermissionDeleteResponse as PermissionDeleteResponse +from .permission_retrieve_params import PermissionRetrieveParams as PermissionRetrieveParams +from .permission_retrieve_response import PermissionRetrieveResponse as PermissionRetrieveResponse diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/__pycache__/__init__.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..59be1e8f91b1ba1d633831368bc56315402e7722 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/__pycache__/__init__.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/__pycache__/permission_create_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/__pycache__/permission_create_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..07b901a31e2aa205ed5c7dae27b78c50ab2f37ae Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/__pycache__/permission_create_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/__pycache__/permission_create_response.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/__pycache__/permission_create_response.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f217e906f9e13ff6e47665919fba0e0c8a949fe4 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/__pycache__/permission_create_response.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/__pycache__/permission_delete_response.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/__pycache__/permission_delete_response.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5caa8a85afd2484bccbbbad045da7a65edc5cfc4 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/__pycache__/permission_delete_response.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/__pycache__/permission_retrieve_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/__pycache__/permission_retrieve_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4df8c2575f121861b6acd1d514e005144ba648c6 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/__pycache__/permission_retrieve_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/__pycache__/permission_retrieve_response.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/__pycache__/permission_retrieve_response.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d83034d42ba29249819aac4280f5885a08f18f83 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/__pycache__/permission_retrieve_response.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/permission_create_params.py b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/permission_create_params.py new file mode 100644 index 0000000000000000000000000000000000000000..e7cf4e4ee401767a5cb8d2c838b46070197972f9 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/permission_create_params.py @@ -0,0 +1,14 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Required, TypedDict + +from ...._types import SequenceNotStr + +__all__ = ["PermissionCreateParams"] + + +class PermissionCreateParams(TypedDict, total=False): + project_ids: Required[SequenceNotStr[str]] + """The project identifiers to grant access to.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/permission_create_response.py b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/permission_create_response.py new file mode 100644 index 0000000000000000000000000000000000000000..459fa9dee744348460d8cda0decaeec802ae579d --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/permission_create_response.py @@ -0,0 +1,25 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["PermissionCreateResponse"] + + +class PermissionCreateResponse(BaseModel): + """ + The `checkpoint.permission` object represents a permission for a fine-tuned model checkpoint. + """ + + id: str + """The permission identifier, which can be referenced in the API endpoints.""" + + created_at: int + """The Unix timestamp (in seconds) for when the permission was created.""" + + object: Literal["checkpoint.permission"] + """The object type, which is always "checkpoint.permission".""" + + project_id: str + """The project identifier that the permission is for.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/permission_delete_response.py b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/permission_delete_response.py new file mode 100644 index 0000000000000000000000000000000000000000..1a92d912facbc602d271b8e346e52b595d7df1a1 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/permission_delete_response.py @@ -0,0 +1,18 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["PermissionDeleteResponse"] + + +class PermissionDeleteResponse(BaseModel): + id: str + """The ID of the fine-tuned model checkpoint permission that was deleted.""" + + deleted: bool + """Whether the fine-tuned model checkpoint permission was successfully deleted.""" + + object: Literal["checkpoint.permission"] + """The object type, which is always "checkpoint.permission".""" diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/permission_retrieve_params.py b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/permission_retrieve_params.py new file mode 100644 index 0000000000000000000000000000000000000000..6e66a867ca4f01cec6f467ff27826ef24c147723 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/permission_retrieve_params.py @@ -0,0 +1,21 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, TypedDict + +__all__ = ["PermissionRetrieveParams"] + + +class PermissionRetrieveParams(TypedDict, total=False): + after: str + """Identifier for the last permission ID from the previous pagination request.""" + + limit: int + """Number of permissions to retrieve.""" + + order: Literal["ascending", "descending"] + """The order in which to retrieve permissions.""" + + project_id: str + """The ID of the project to get permissions for.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/permission_retrieve_response.py b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/permission_retrieve_response.py new file mode 100644 index 0000000000000000000000000000000000000000..34208958efbb1897353baa0391aef31bd944cec9 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/checkpoints/permission_retrieve_response.py @@ -0,0 +1,38 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["PermissionRetrieveResponse", "Data"] + + +class Data(BaseModel): + """ + The `checkpoint.permission` object represents a permission for a fine-tuned model checkpoint. + """ + + id: str + """The permission identifier, which can be referenced in the API endpoints.""" + + created_at: int + """The Unix timestamp (in seconds) for when the permission was created.""" + + object: Literal["checkpoint.permission"] + """The object type, which is always "checkpoint.permission".""" + + project_id: str + """The project identifier that the permission is for.""" + + +class PermissionRetrieveResponse(BaseModel): + data: List[Data] + + has_more: bool + + object: Literal["list"] + + first_id: Optional[str] = None + + last_id: Optional[str] = None diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/jobs/__init__.py b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/jobs/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..6c93da1b69f90552c97167f86cd345fd8dc05867 --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/jobs/__init__.py @@ -0,0 +1,6 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from .checkpoint_list_params import CheckpointListParams as CheckpointListParams +from .fine_tuning_job_checkpoint import FineTuningJobCheckpoint as FineTuningJobCheckpoint diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/jobs/__pycache__/__init__.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/jobs/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ca856f7f062e071e0c6e3e679088ebf55fdebbba Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/jobs/__pycache__/__init__.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/jobs/__pycache__/checkpoint_list_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/jobs/__pycache__/checkpoint_list_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6ee6996229789a45360d8351614fa1c90a1cd04b Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/jobs/__pycache__/checkpoint_list_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/jobs/__pycache__/fine_tuning_job_checkpoint.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/jobs/__pycache__/fine_tuning_job_checkpoint.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8d524781392b1762b2c43924c046ebb6046c150c Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/jobs/__pycache__/fine_tuning_job_checkpoint.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/jobs/checkpoint_list_params.py b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/jobs/checkpoint_list_params.py new file mode 100644 index 0000000000000000000000000000000000000000..adceb3b218c8c2cf5eb6c6ce8b975766e5a93c7a --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/jobs/checkpoint_list_params.py @@ -0,0 +1,15 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import TypedDict + +__all__ = ["CheckpointListParams"] + + +class CheckpointListParams(TypedDict, total=False): + after: str + """Identifier for the last checkpoint ID from the previous pagination request.""" + + limit: int + """Number of checkpoints to retrieve.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/fine_tuning/jobs/fine_tuning_job_checkpoint.py b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/jobs/fine_tuning_job_checkpoint.py new file mode 100644 index 0000000000000000000000000000000000000000..f8a04b6395f6dcacc42efcb724f0c5a1c7e8c0bf --- /dev/null +++ b/py311/lib/python3.11/site-packages/openai/types/fine_tuning/jobs/fine_tuning_job_checkpoint.py @@ -0,0 +1,53 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ...._models import BaseModel + +__all__ = ["FineTuningJobCheckpoint", "Metrics"] + + +class Metrics(BaseModel): + """Metrics at the step number during the fine-tuning job.""" + + full_valid_loss: Optional[float] = None + + full_valid_mean_token_accuracy: Optional[float] = None + + step: Optional[float] = None + + train_loss: Optional[float] = None + + train_mean_token_accuracy: Optional[float] = None + + valid_loss: Optional[float] = None + + valid_mean_token_accuracy: Optional[float] = None + + +class FineTuningJobCheckpoint(BaseModel): + """ + The `fine_tuning.job.checkpoint` object represents a model checkpoint for a fine-tuning job that is ready to use. + """ + + id: str + """The checkpoint identifier, which can be referenced in the API endpoints.""" + + created_at: int + """The Unix timestamp (in seconds) for when the checkpoint was created.""" + + fine_tuned_model_checkpoint: str + """The name of the fine-tuned checkpoint model that is created.""" + + fine_tuning_job_id: str + """The name of the fine-tuning job that this checkpoint was created from.""" + + metrics: Metrics + """Metrics at the step number during the fine-tuning job.""" + + object: Literal["fine_tuning.job.checkpoint"] + """The object type, which is always "fine_tuning.job.checkpoint".""" + + step_number: int + """The step number that the checkpoint was created at.""" diff --git a/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/__init__.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..70ff16d5e472c8f82062d27c8e713f8642332eb1 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/__init__.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/grader_inputs.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/grader_inputs.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e224e7abd0908a7d57138b636bc775b1bf4ade48 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/grader_inputs.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/grader_inputs_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/grader_inputs_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ab4f6bf0b0831f2084cbc13128daf3bd5403a5da Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/grader_inputs_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/label_model_grader.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/label_model_grader.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..26d3e1dde127b4c3fc6f345d17634b63727deb32 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/label_model_grader.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/label_model_grader_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/label_model_grader_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..85d0c2237e303a7fa1958c183d9d8d2b29c33e24 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/label_model_grader_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/multi_grader.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/multi_grader.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d329313bded7cdf380fa1b10a29c123d800bf437 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/multi_grader.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/multi_grader_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/multi_grader_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..59794597bbed1fb6b6726c11387dfea6f067fb86 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/multi_grader_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/python_grader.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/python_grader.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3a6c408eab4dd9f09e8f9633929e6f0f7f8b6c40 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/python_grader.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/python_grader_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/python_grader_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..870cabf2a58266fa8ef1072f34ede205f443791a Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/python_grader_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/score_model_grader.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/score_model_grader.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..12538cc1932764493ab52935ad97672823ab2e8e Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/score_model_grader.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/score_model_grader_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/score_model_grader_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..36c52bc07335dea4fcc93b4884d37e3e6c212867 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/score_model_grader_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/string_check_grader.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/string_check_grader.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a1d2ba299cfdeebef6979f5381871423a133f70e Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/string_check_grader.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/string_check_grader_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/string_check_grader_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c1d1747fe916f9e77021e9579f5abf071223128e Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/string_check_grader_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/text_similarity_grader.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/text_similarity_grader.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ebc61450dbcdd39bc05591823ee6d88817287007 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/text_similarity_grader.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/text_similarity_grader_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/text_similarity_grader_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..90b580e74a17f56db1b69c831c32a4455f50ab25 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/graders/__pycache__/text_similarity_grader_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/__init__.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4d1c7dcf35c505e7fc081c034bd1c78bdf9fd892 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/__init__.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/computer_tool.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/computer_tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4a10ae971da3d6e6dfd0ed8a01570e9d88648cb5 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/computer_tool.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/custom_tool.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/custom_tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..19cad87a4566c345be9b4beff8fb460175538ec5 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/custom_tool.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/file_search_tool_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/file_search_tool_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4d56cd828ffc5289dad81c91b77e0fed5fa50c95 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/file_search_tool_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/function_shell_tool.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/function_shell_tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f1f0a7f554e1b22aa9b01d8edfa89b93507af362 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/function_shell_tool.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/function_shell_tool_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/function_shell_tool_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8c904179bd166e3c6cbc07868b00d38aca3a9d36 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/function_shell_tool_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/function_tool_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/function_tool_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c120399921da555e70b90d0d1c50cbf44b4791f1 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/function_tool_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/input_item_list_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/input_item_list_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..648d533337113bc50653539870f9951d04612f04 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/input_item_list_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/input_token_count_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/input_token_count_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..66969a871100ac4698bc1f86efc3cfe635de7ac6 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/input_token_count_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_apply_patch_tool_call_output.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_apply_patch_tool_call_output.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2290110d25ffba646a240c9413a513f929550d0c Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_apply_patch_tool_call_output.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_audio_transcript_delta_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_audio_transcript_delta_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5f3095a1aff96ae2c740e59933a4b11beccbe3d3 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_audio_transcript_delta_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_code_interpreter_call_code_done_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_code_interpreter_call_code_done_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6d8369d536a96e1f7efb23117e24c1f5d9bba9b4 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_code_interpreter_call_code_done_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_code_interpreter_call_completed_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_code_interpreter_call_completed_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2e1aafead8acf2eafdb12795289399b261588c75 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_code_interpreter_call_completed_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_code_interpreter_call_in_progress_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_code_interpreter_call_in_progress_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8c5a0db2ec5af08352970a77cb1c76666b3b63fd Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_code_interpreter_call_in_progress_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_code_interpreter_tool_call.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_code_interpreter_tool_call.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..22b9aeb594579b3659ed7969477d9b60b81cdafe Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_code_interpreter_tool_call.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_code_interpreter_tool_call_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_code_interpreter_tool_call_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..68c97dde4b41be898b1c9ade6ca2872ef953e95a Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_code_interpreter_tool_call_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_compact_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_compact_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e280ef2955b5645baebeff1db888fedd6104fe70 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_compact_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_compaction_item_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_compaction_item_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7ffdd4c6b760a6865d5e2ebb9b6cf65b3ef655ab Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_compaction_item_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_compaction_item_param_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_compaction_item_param_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4746507acfdbc348464793ff253fcadf67e5d5f7 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_compaction_item_param_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_completed_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_completed_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..76da25a716c7feeeb9591a8eecf029703a84d52a Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_completed_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_computer_tool_call_output_screenshot.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_computer_tool_call_output_screenshot.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7f6fbebc9bb73c00967efbe607f978d564107c7d Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_computer_tool_call_output_screenshot.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_computer_tool_call_output_screenshot_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_computer_tool_call_output_screenshot_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..074df0173848e85c7f03c51a528c9536610a07a2 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_computer_tool_call_output_screenshot_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_computer_tool_call_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_computer_tool_call_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..885a25813ee5da01d001c62a411ffa63e47a59a8 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_computer_tool_call_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_content_part_added_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_content_part_added_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..dc2ab77f97842a62443c4bc642a3a1d77a4e5180 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_content_part_added_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_conversation_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_conversation_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ac5a9c77c24ddddc81264f8c6ff981af9dd7be88 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_conversation_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_custom_tool_call_input_delta_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_custom_tool_call_input_delta_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4ec830d38cf6a8d03011837b8ca08b242f6b98eb Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_custom_tool_call_input_delta_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_custom_tool_call_output.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_custom_tool_call_output.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5eb4d50cd01bc1abd3d865e7e51949fee1522cdc Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_custom_tool_call_output.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_custom_tool_call_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_custom_tool_call_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ffbd9f209f7499f610608bdb116f7bedbd63f885 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_custom_tool_call_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_error_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_error_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5ed074e76d01c703a2e210724aab8c87f19604dc Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_error_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_failed_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_failed_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d7178b9832e305226939875581b289d27d2974f7 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_failed_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_file_search_call_completed_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_file_search_call_completed_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6bf48681d3816198140af09d862d914d42844579 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_file_search_call_completed_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_file_search_call_in_progress_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_file_search_call_in_progress_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9565832828f75605368b72882f7374bb41ec5187 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_file_search_call_in_progress_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_file_search_tool_call.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_file_search_tool_call.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f6f6897ab63b6c0b3442a514134dc1c801d009cf Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_file_search_tool_call.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_file_search_tool_call_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_file_search_tool_call_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e200491152e77bb528bee0ce12a1b3460e801768 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_file_search_tool_call_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_format_text_json_schema_config.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_format_text_json_schema_config.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..36034804854a19edba729ae941da5c39cb02014d Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_format_text_json_schema_config.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_function_call_arguments_done_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_function_call_arguments_done_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..27ca8625a6509a42016848294fc5bd483c02c869 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_function_call_arguments_done_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_function_call_output_item.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_function_call_output_item.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..95c21e7818ce186c9ceabcbfe5f276117338f86a Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_function_call_output_item.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_function_call_output_item_list.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_function_call_output_item_list.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..24ddd11f8b772f2304207571dde1cea135cdf570 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_function_call_output_item_list.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_function_call_output_item_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_function_call_output_item_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a599904bc46d60e348a53f73b7018ea464e303eb Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_function_call_output_item_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_function_shell_call_output_content_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_function_shell_call_output_content_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8072f0d69fca7f84336244f8a1a4fcd36bedd0c7 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_function_shell_call_output_content_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_function_shell_tool_call.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_function_shell_tool_call.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..de529f6a26c8546b515ae1833d82516ebdd64c64 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_function_shell_tool_call.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_function_shell_tool_call_output.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_function_shell_tool_call_output.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..79fa52e5b33a157629cfe1d96a2bb0389e63d077 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_function_shell_tool_call_output.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_function_tool_call_output_item.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_function_tool_call_output_item.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..956c71cfbdb003016fb2f5cf5898d9aa6b0a855e Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_function_tool_call_output_item.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_function_web_search.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_function_web_search.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..334e4af07d82d7348c46a167cedeeaa51197cc88 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_function_web_search.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_function_web_search_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_function_web_search_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..777aa5f0e0cbd9b09f3c6c826ced4a448f700fe7 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_function_web_search_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_in_progress_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_in_progress_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c862028806b2e3a22ab27689676f5ad027c3631e Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_in_progress_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_input_content_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_input_content_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2393f6e91ac2358744550f7f0cd7aa9002c08a52 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_input_content_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_input_file.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_input_file.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bea2bd3b55fea85d716588ea0f47032ebb912dcd Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_input_file.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_input_file_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_input_file_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3aa5422389382ded5b45a66f42dd9f257a7b84ba Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_input_file_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_input_image_content_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_input_image_content_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..dc8c0aa3ad6d6499e1ace9fa4d7d5ebb3c2a2809 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_input_image_content_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_input_image_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_input_image_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a512371a6783d9667ba3fc60939f354f190ef9ff Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_input_image_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_input_message_content_list_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_input_message_content_list_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a99bf6da23e2f843b605c2e12a837f6ce2b5b774 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_input_message_content_list_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_input_message_item.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_input_message_item.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b3d6d87bd78e29b1eb67495b74c6b05fb97b4ed8 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_input_message_item.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_input_text.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_input_text.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..01e87f9bc02839d4f8a64ab207556a08d8c7af80 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_input_text.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_input_text_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_input_text_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f43fa9ffb8d2660da9f3c9a0915679c98954f846 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_input_text_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_item_list.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_item_list.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7d8a959415ad35c5151f69bbd00b99344c36bbbe Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_item_list.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_mcp_call_arguments_delta_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_mcp_call_arguments_delta_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..af7b4d4c172600d1180eba94274775bef122cc98 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_mcp_call_arguments_delta_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_mcp_call_arguments_done_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_mcp_call_arguments_done_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3d757e81de8e88a050908ebf543e00d99f582ac7 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_mcp_call_arguments_done_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_mcp_list_tools_completed_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_mcp_list_tools_completed_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3fad3057b3e75f67566e6ae5858357004eb9afdc Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_mcp_list_tools_completed_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_mcp_list_tools_in_progress_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_mcp_list_tools_in_progress_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fcb6765f85b0e9ee96bbfa70f57db5ff98040526 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_mcp_list_tools_in_progress_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_output_message.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_output_message.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1f62bd42117ed87b2b6036a79894b5ef6e428560 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_output_message.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_output_text_annotation_added_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_output_text_annotation_added_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b9cbd9512d583cb57c83e86a6d442c46c0908258 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_output_text_annotation_added_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_prompt.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_prompt.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..45c332b6acdf6ef8984a1352b305ab0591304475 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_prompt.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_prompt_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_prompt_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d9f3f8fff0c05ef2b1c67f0b3ac0e804de0bc19d Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_prompt_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_reasoning_summary_part_added_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_reasoning_summary_part_added_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8350bdbf7218b3e16f7d40df393e5e4964d86088 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_reasoning_summary_part_added_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_reasoning_summary_part_done_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_reasoning_summary_part_done_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2ed65858e49cddd762e2300310a05085f3a26091 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_reasoning_summary_part_done_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_reasoning_summary_text_done_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_reasoning_summary_text_done_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..49037ea851596f0b203e557f4e00338ede4fec05 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_reasoning_summary_text_done_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_reasoning_text_done_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_reasoning_text_done_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f07cd0d715cb25222f18c60317284c9831bc41a3 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_reasoning_text_done_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_retrieve_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_retrieve_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2267d37470b2da9ffd49e879699fab1800a634ce Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_retrieve_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_text_config.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_text_config.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f5f27a2db373ad22fecf959b5754c6217d687a80 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_text_config.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_text_delta_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_text_delta_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1400dc5a7de1a3be328501b608206572bee8de53 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_text_delta_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_web_search_call_in_progress_event.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_web_search_call_in_progress_event.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..21e51bf1f5d044e159632a2f5f085c840f300c3f Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/response_web_search_call_in_progress_event.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..35746ec91ccba334ec0ea30102a81d18a1fa07e2 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_choice_allowed.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_choice_allowed.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5684fc5d2b1148bd74b351b5c033ac4d1c8ff195 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_choice_allowed.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_choice_allowed_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_choice_allowed_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..dca95ba3f667694b98b6d7bc2fd75c39de3b590b Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_choice_allowed_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_choice_apply_patch.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_choice_apply_patch.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..278eb18b392dbddfe0f1d18fa0f35604df2c074c Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_choice_apply_patch.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_choice_apply_patch_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_choice_apply_patch_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..30cc47dfa7bdbd36cbadbc57269ea95ecd3fb513 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_choice_apply_patch_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_choice_custom.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_choice_custom.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..160735bb9d9f347da8b99bc97e2d989dd59210b7 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_choice_custom.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_choice_custom_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_choice_custom_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7242cc320473733f0332c7207f17e0029fc3483a Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_choice_custom_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_choice_function_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_choice_function_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3524977fa7d6df9c4abbf467fa88879d1edfb0e1 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_choice_function_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_choice_shell.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_choice_shell.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5e71c661e9a5df4d0807f5fb2c9b3df978173f47 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_choice_shell.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_choice_shell_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_choice_shell_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4213c6681fe175f75df87504a4cebc7ff8b34a87 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_choice_shell_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_choice_types_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_choice_types_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bf37f432d1318ec629c4c437a26fb7537736e971 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_choice_types_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..081f0c3bb8b725e4bfea75d0891fa46c7b7e19d2 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/tool_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/web_search_preview_tool.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/web_search_preview_tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2bdf68ff771662fc75b2e3a3d7863ecb1118e6e7 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/web_search_preview_tool.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/web_search_preview_tool_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/web_search_preview_tool_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f859ef536168baecd6b26a532412f4a6a4393bc8 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/web_search_preview_tool_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/web_search_tool_param.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/web_search_tool_param.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7fa37932d34c75b14a037d330d4a97cdc02cf1d8 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/responses/__pycache__/web_search_tool_param.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/shared/__pycache__/chat_model.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/shared/__pycache__/chat_model.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9241e846a0ec76fde242ed0559d1cc1c3d0f8fb9 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/shared/__pycache__/chat_model.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/shared/__pycache__/compound_filter.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/shared/__pycache__/compound_filter.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8835a3aa0d73cf639958ffbbe82147f5d6faec50 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/shared/__pycache__/compound_filter.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/shared/__pycache__/responses_model.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/shared/__pycache__/responses_model.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bc5a83f770b8ac78442fe94d1301632281cfa238 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/shared/__pycache__/responses_model.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/__init__.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2871081f9d5caa5fb0d0761e8661b669a46cb67a Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/__init__.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/chat_model.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/chat_model.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..782240306e0a03d1d74a825301b2c0e2ff2565e1 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/chat_model.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/comparison_filter.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/comparison_filter.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..735ffe5a32e2dc098116b26165de0b79171b4696 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/comparison_filter.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/compound_filter.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/compound_filter.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c68cac0c76fb9adc83067a4fa273b91c6d8ca4d7 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/compound_filter.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/custom_tool_input_format.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/custom_tool_input_format.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8092aa34bb050a3fe738360a76862ef4558cf9a9 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/custom_tool_input_format.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/function_definition.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/function_definition.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d0129670b34d49e3f1f64a44a7dfd00930d55f7b Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/function_definition.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/function_parameters.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/function_parameters.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2fbc18f767b261b0fc165ccebd36013706a6e137 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/function_parameters.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/metadata.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/metadata.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1a6e9f970dffd26801f2677a2e3aad8a22f2916a Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/metadata.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/reasoning.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/reasoning.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..69ffadad6e4589b8d3b0ef183c282394e55bdee2 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/reasoning.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/reasoning_effort.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/reasoning_effort.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cb68f8fe7f9bc4fc591796b19f0374725a0e434c Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/reasoning_effort.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/response_format_json_object.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/response_format_json_object.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..37cb4c16f6e26b4e3b7e372c0c5584fe3ffbb31a Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/response_format_json_object.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/response_format_json_schema.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/response_format_json_schema.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ba59a67ef63e78a76d33c14333ac80be9468c616 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/response_format_json_schema.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/response_format_text.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/response_format_text.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e45c84b7e588b5877f1424e8ee29006fbb6045d1 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/response_format_text.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/responses_model.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/responses_model.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..dd11c77bc6189c07fba4e928e26f2a72212e8989 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/shared_params/__pycache__/responses_model.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/vector_stores/__pycache__/__init__.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/vector_stores/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..33412e38c756315406a81c7f68604dc486eaad75 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/vector_stores/__pycache__/__init__.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/vector_stores/__pycache__/file_batch_create_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/vector_stores/__pycache__/file_batch_create_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f127ab1e309424ed3b494d5383d255ef75010d6a Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/vector_stores/__pycache__/file_batch_create_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/vector_stores/__pycache__/file_content_response.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/vector_stores/__pycache__/file_content_response.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1be05d10706f4416c3a910ae3140f9696bcbe89f Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/vector_stores/__pycache__/file_content_response.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/vector_stores/__pycache__/file_create_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/vector_stores/__pycache__/file_create_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2f8aca2e9cd002e445f8ba86057192972674c0c9 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/vector_stores/__pycache__/file_create_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/vector_stores/__pycache__/file_list_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/vector_stores/__pycache__/file_list_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ede09f95bdac61c8ae366403a51ca90885b00146 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/vector_stores/__pycache__/file_list_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/vector_stores/__pycache__/file_update_params.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/vector_stores/__pycache__/file_update_params.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..42784cd797771316b3b56fc19aa96bdd052860ac Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/vector_stores/__pycache__/file_update_params.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/vector_stores/__pycache__/vector_store_file.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/vector_stores/__pycache__/vector_store_file.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2637ef723d9bf9f81b7be5067520285859c1b35e Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/vector_stores/__pycache__/vector_store_file.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/vector_stores/__pycache__/vector_store_file_batch.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/vector_stores/__pycache__/vector_store_file_batch.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..44f41cdf9f9ca2ce7677db34134eef32fb313f57 Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/vector_stores/__pycache__/vector_store_file_batch.cpython-311.pyc differ diff --git a/py311/lib/python3.11/site-packages/openai/types/vector_stores/__pycache__/vector_store_file_deleted.cpython-311.pyc b/py311/lib/python3.11/site-packages/openai/types/vector_stores/__pycache__/vector_store_file_deleted.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0699e9a7f89cbe7860eb781f4c129482416b415d Binary files /dev/null and b/py311/lib/python3.11/site-packages/openai/types/vector_stores/__pycache__/vector_store_file_deleted.cpython-311.pyc differ