From 41e8ad24c0dde81215618ecd068a4a917183a45f Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 18 Mar 2026 20:09:43 +0000 Subject: [PATCH] refactor: reorganize agent context structure and add new types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Restructured the agent context configuration to move nested components from AgentV1SettingsAgent to AgentV1SettingsAgentContext, creating a cleaner hierarchical organization. Added new types for think updates and speak updates with dedicated parameter classes. Key changes: - Moved Listen, Speak, and Think types from AgentV1SettingsAgent to AgentV1SettingsAgentContext - Renamed context message types to include "Context" prefix for clarity - Added AgentV1ThinkUpdated and related parameter types - Added AgentV1UpdateSpeakSpeak and AgentV1UpdateThinkThink types - Updated documentation examples for authorization header format - Added new context parameter types and consolidated imports 🌿 Generated with Fern --- .fern/metadata.json | 5 +- changelog.md | 12 + poetry.lock | 250 +++++++++-------- pyproject.toml | 2 +- src/deepgram/agent/__init__.py | 180 +++++++----- src/deepgram/agent/v1/__init__.py | 180 +++++++----- src/deepgram/agent/v1/client.py | 8 +- src/deepgram/agent/v1/raw_client.py | 8 +- src/deepgram/agent/v1/requests/__init__.py | 97 ++++--- .../v1/requests/agent_v1settings_agent.py | 26 +- .../agent_v1settings_agent_context.py | 20 +- .../agent_v1settings_agent_context_context.py | 17 ++ ...ngs_agent_context_context_messages_item.py | 15 + ..._context_context_messages_item_content.py} | 8 +- ...xt_context_messages_item_function_calls.py | 20 ++ ...tem_function_calls_function_calls_item.py} | 2 +- .../agent_v1settings_agent_context_listen.py | 8 + ...1settings_agent_context_listen_provider.py | 32 +++ ...tings_agent_context_listen_provider_v1.py} | 6 +- ...ttings_agent_context_listen_provider_v2.py | 23 ++ ..._v1settings_agent_context_messages_item.py | 12 - ...nt_context_messages_item_function_calls.py | 20 -- .../agent_v1settings_agent_context_speak.py | 7 + .../agent_v1settings_agent_context_think.py | 7 + .../requests/agent_v1settings_agent_listen.py | 8 - .../agent_v1settings_agent_listen_provider.py | 28 -- ...ent_v1settings_agent_listen_provider_v2.py | 22 -- .../v1/requests/agent_v1think_updated.py | 12 + .../agent/v1/requests/agent_v1update_speak.py | 4 +- ...speak.py => agent_v1update_speak_speak.py} | 2 +- .../agent/v1/requests/agent_v1update_think.py | 15 + ...think.py => agent_v1update_think_think.py} | 2 +- src/deepgram/agent/v1/types/__init__.py | 103 ++++--- .../agent/v1/types/agent_v1settings_agent.py | 35 +-- .../types/agent_v1settings_agent_context.py | 18 +- .../agent_v1settings_agent_context_context.py | 30 ++ ...ngs_agent_context_context_messages_item.py | 14 + ..._context_context_messages_item_content.py} | 8 +- ...text_context_messages_item_content_role.py | 7 + ...t_context_messages_item_function_calls.py} | 8 +- ...tem_function_calls_function_calls_item.py} | 2 +- .../agent_v1settings_agent_context_listen.py | 21 ++ ...settings_agent_context_listen_provider.py} | 12 +- ...tings_agent_context_listen_provider_v1.py} | 8 +- ...tings_agent_context_listen_provider_v2.py} | 11 +- ..._v1settings_agent_context_messages_item.py | 12 - ...gent_context_messages_item_content_role.py | 5 - .../agent_v1settings_agent_context_speak.py | 7 + .../agent_v1settings_agent_context_think.py | 7 + ...ent_listen.py => agent_v1think_updated.py} | 8 +- .../agent/v1/types/agent_v1update_speak.py | 4 +- ...speak.py => agent_v1update_speak_speak.py} | 2 +- .../agent/v1/types/agent_v1update_think.py | 26 ++ ...think.py => agent_v1update_think_think.py} | 2 +- src/deepgram/core/client_wrapper.py | 4 +- src/deepgram/environment.py | 8 +- src/deepgram/listen/__init__.py | 30 ++ src/deepgram/listen/v1/raw_client.py | 260 ++++++++++-------- src/deepgram/listen/v2/__init__.py | 30 ++ src/deepgram/listen/v2/raw_client.py | 107 +++---- src/deepgram/listen/v2/requests/__init__.py | 15 + .../listen/v2/requests/listen_v2configure.py | 22 ++ .../v2/requests/listen_v2configure_failure.py | 24 ++ .../v2/requests/listen_v2configure_success.py | 33 +++ .../listen_v2configure_success_thresholds.py | 17 ++ .../requests/listen_v2configure_thresholds.py | 17 ++ src/deepgram/listen/v2/types/__init__.py | 15 + .../listen/v2/types/listen_v2configure.py | 33 +++ .../v2/types/listen_v2configure_failure.py | 35 +++ .../v2/types/listen_v2configure_success.py | 44 +++ .../listen_v2configure_success_thresholds.py | 30 ++ .../v2/types/listen_v2configure_thresholds.py | 30 ++ ...project_members_v1response_members_item.py | 9 + src/deepgram/speak/v1/client.py | 44 +-- src/deepgram/speak/v1/raw_client.py | 44 +-- .../speak/v1/requests/speak_v1metadata.py | 9 +- .../speak/v1/types/speak_v1metadata.py | 9 +- ...project_members_v1response_members_item.py | 7 + tests/wire/conftest.py | 4 +- 79 files changed, 1496 insertions(+), 792 deletions(-) create mode 100644 changelog.md create mode 100644 src/deepgram/agent/v1/requests/agent_v1settings_agent_context_context.py create mode 100644 src/deepgram/agent/v1/requests/agent_v1settings_agent_context_context_messages_item.py rename src/deepgram/agent/v1/requests/{agent_v1settings_agent_context_messages_item_content.py => agent_v1settings_agent_context_context_messages_item_content.py} (56%) create mode 100644 src/deepgram/agent/v1/requests/agent_v1settings_agent_context_context_messages_item_function_calls.py rename src/deepgram/agent/v1/requests/{agent_v1settings_agent_context_messages_item_function_calls_function_calls_item.py => agent_v1settings_agent_context_context_messages_item_function_calls_function_calls_item.py} (79%) create mode 100644 src/deepgram/agent/v1/requests/agent_v1settings_agent_context_listen.py create mode 100644 src/deepgram/agent/v1/requests/agent_v1settings_agent_context_listen_provider.py rename src/deepgram/agent/v1/requests/{agent_v1settings_agent_listen_provider_v1.py => agent_v1settings_agent_context_listen_provider_v1.py} (82%) create mode 100644 src/deepgram/agent/v1/requests/agent_v1settings_agent_context_listen_provider_v2.py delete mode 100644 src/deepgram/agent/v1/requests/agent_v1settings_agent_context_messages_item.py delete mode 100644 src/deepgram/agent/v1/requests/agent_v1settings_agent_context_messages_item_function_calls.py create mode 100644 src/deepgram/agent/v1/requests/agent_v1settings_agent_context_speak.py create mode 100644 src/deepgram/agent/v1/requests/agent_v1settings_agent_context_think.py delete mode 100644 src/deepgram/agent/v1/requests/agent_v1settings_agent_listen.py delete mode 100644 src/deepgram/agent/v1/requests/agent_v1settings_agent_listen_provider.py delete mode 100644 src/deepgram/agent/v1/requests/agent_v1settings_agent_listen_provider_v2.py create mode 100644 src/deepgram/agent/v1/requests/agent_v1think_updated.py rename src/deepgram/agent/v1/requests/{agent_v1settings_agent_speak.py => agent_v1update_speak_speak.py} (57%) create mode 100644 src/deepgram/agent/v1/requests/agent_v1update_think.py rename src/deepgram/agent/v1/requests/{agent_v1settings_agent_think.py => agent_v1update_think_think.py} (57%) create mode 100644 src/deepgram/agent/v1/types/agent_v1settings_agent_context_context.py create mode 100644 src/deepgram/agent/v1/types/agent_v1settings_agent_context_context_messages_item.py rename src/deepgram/agent/v1/types/{agent_v1settings_agent_context_messages_item_content.py => agent_v1settings_agent_context_context_messages_item_content.py} (73%) create mode 100644 src/deepgram/agent/v1/types/agent_v1settings_agent_context_context_messages_item_content_role.py rename src/deepgram/agent/v1/types/{agent_v1settings_agent_context_messages_item_function_calls.py => agent_v1settings_agent_context_context_messages_item_function_calls.py} (66%) rename src/deepgram/agent/v1/types/{agent_v1settings_agent_context_messages_item_function_calls_function_calls_item.py => agent_v1settings_agent_context_context_messages_item_function_calls_function_calls_item.py} (90%) create mode 100644 src/deepgram/agent/v1/types/agent_v1settings_agent_context_listen.py rename src/deepgram/agent/v1/types/{agent_v1settings_agent_listen_provider.py => agent_v1settings_agent_context_listen_provider.py} (69%) rename src/deepgram/agent/v1/types/{agent_v1settings_agent_listen_provider_v1.py => agent_v1settings_agent_context_listen_provider_v1.py} (83%) rename src/deepgram/agent/v1/types/{agent_v1settings_agent_listen_provider_v2.py => agent_v1settings_agent_context_listen_provider_v2.py} (65%) delete mode 100644 src/deepgram/agent/v1/types/agent_v1settings_agent_context_messages_item.py delete mode 100644 src/deepgram/agent/v1/types/agent_v1settings_agent_context_messages_item_content_role.py create mode 100644 src/deepgram/agent/v1/types/agent_v1settings_agent_context_speak.py create mode 100644 src/deepgram/agent/v1/types/agent_v1settings_agent_context_think.py rename src/deepgram/agent/v1/types/{agent_v1settings_agent_listen.py => agent_v1think_updated.py} (70%) rename src/deepgram/agent/v1/types/{agent_v1settings_agent_speak.py => agent_v1update_speak_speak.py} (60%) create mode 100644 src/deepgram/agent/v1/types/agent_v1update_think.py rename src/deepgram/agent/v1/types/{agent_v1settings_agent_think.py => agent_v1update_think_think.py} (60%) create mode 100644 src/deepgram/listen/v2/requests/listen_v2configure.py create mode 100644 src/deepgram/listen/v2/requests/listen_v2configure_failure.py create mode 100644 src/deepgram/listen/v2/requests/listen_v2configure_success.py create mode 100644 src/deepgram/listen/v2/requests/listen_v2configure_success_thresholds.py create mode 100644 src/deepgram/listen/v2/requests/listen_v2configure_thresholds.py create mode 100644 src/deepgram/listen/v2/types/listen_v2configure.py create mode 100644 src/deepgram/listen/v2/types/listen_v2configure_failure.py create mode 100644 src/deepgram/listen/v2/types/listen_v2configure_success.py create mode 100644 src/deepgram/listen/v2/types/listen_v2configure_success_thresholds.py create mode 100644 src/deepgram/listen/v2/types/listen_v2configure_thresholds.py diff --git a/.fern/metadata.json b/.fern/metadata.json index c9ecd919..bec237eb 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -1,5 +1,5 @@ { - "cliVersion": "3.77.1", + "cliVersion": "4.34.1", "generatorName": "fernapi/fern-python-sdk", "generatorVersion": "4.57.2", "generatorConfig": { @@ -16,5 +16,6 @@ "skip_validation": true } }, - "sdkVersion": "6.0.1" + "originGitCommit": "aa3f3e3dced2b6d6c98cc8cf01ade234be6d8e98", + "sdkVersion": "7.0.0" } \ No newline at end of file diff --git a/changelog.md b/changelog.md new file mode 100644 index 00000000..94cb9227 --- /dev/null +++ b/changelog.md @@ -0,0 +1,12 @@ +## 7.0.0 - 2026-03-18 +* The SDK now supports end-of-turn threshold configuration with new `eot_threshold` and `eager_eot_threshold` fields in V2 listen providers. Agent settings have been restructured with improved type organization and new think update capabilities. +* The agent API types have been restructured for better organization. Several type names have changed: +* `AgentV1SettingsAgentListen` → `AgentV1SettingsAgentContextListen` +* `AgentV1SettingsAgentSpeak` → `AgentV1SettingsAgentContextSpeak` +* `AgentV1SettingsAgentThink` → `AgentV1SettingsAgentContextThink` +* Context message types now include "Context" in their names (e.g., `AgentV1SettingsAgentContextMessagesItem` → `AgentV1SettingsAgentContextContextMessagesItem`) +* Update your imports to use the new type names. The functionality remains the same, only the naming structure has changed to better reflect the hierarchical organization. +* The SDK now includes enhanced agent configuration with restructured context settings and new think/speak update types. Listen websocket connections now use strongly-typed parameters instead of generic strings for better type safety and IDE support. +* The WebSocket APIs now use specific type classes (ListenV2Encoding, SpeakV1Model, etc.) instead of generic strings for better type safety and IDE support. New agent configuration capabilities have been added, including support for listen, speak, and think provider settings with dynamic configuration updates. +* New configuration message types for Listen v2 API enable dynamic adjustment of thresholds and keyterms during streaming sessions. Project member responses now include optional scopes, first_name, and last_name fields. + diff --git a/poetry.lock b/poetry.lock index 4d721e91..3e5cf267 100644 --- a/poetry.lock +++ b/poetry.lock @@ -38,135 +38,151 @@ trio = ["trio (>=0.26.1)"] [[package]] name = "certifi" -version = "2026.1.4" +version = "2026.2.25" description = "Python package for providing Mozilla's CA Bundle." optional = false python-versions = ">=3.7" files = [ - {file = "certifi-2026.1.4-py3-none-any.whl", hash = "sha256:9943707519e4add1115f44c2bc244f782c0249876bf51b6599fee1ffbedd685c"}, - {file = "certifi-2026.1.4.tar.gz", hash = "sha256:ac726dd470482006e014ad384921ed6438c457018f4b3d204aea4281258b2120"}, + {file = "certifi-2026.2.25-py3-none-any.whl", hash = "sha256:027692e4402ad994f1c42e52a4997a9763c646b73e4096e4d5d6db8af1d6f0fa"}, + {file = "certifi-2026.2.25.tar.gz", hash = "sha256:e887ab5cee78ea814d3472169153c2d12cd43b14bd03329a39a9c6e2e80bfba7"}, ] [[package]] name = "charset-normalizer" -version = "3.4.4" +version = "3.4.6" description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." optional = false python-versions = ">=3.7" files = [ - {file = "charset_normalizer-3.4.4-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:e824f1492727fa856dd6eda4f7cee25f8518a12f3c4a56a74e8095695089cf6d"}, - {file = "charset_normalizer-3.4.4-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4bd5d4137d500351a30687c2d3971758aac9a19208fc110ccb9d7188fbe709e8"}, - {file = "charset_normalizer-3.4.4-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:027f6de494925c0ab2a55eab46ae5129951638a49a34d87f4c3eda90f696b4ad"}, - {file = "charset_normalizer-3.4.4-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f820802628d2694cb7e56db99213f930856014862f3fd943d290ea8438d07ca8"}, - {file = "charset_normalizer-3.4.4-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:798d75d81754988d2565bff1b97ba5a44411867c0cf32b77a7e8f8d84796b10d"}, - {file = "charset_normalizer-3.4.4-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9d1bb833febdff5c8927f922386db610b49db6e0d4f4ee29601d71e7c2694313"}, - {file = "charset_normalizer-3.4.4-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:9cd98cdc06614a2f768d2b7286d66805f94c48cde050acdbbb7db2600ab3197e"}, - {file = "charset_normalizer-3.4.4-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:077fbb858e903c73f6c9db43374fd213b0b6a778106bc7032446a8e8b5b38b93"}, - {file = "charset_normalizer-3.4.4-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:244bfb999c71b35de57821b8ea746b24e863398194a4014e4c76adc2bbdfeff0"}, - {file = "charset_normalizer-3.4.4-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:64b55f9dce520635f018f907ff1b0df1fdc31f2795a922fb49dd14fbcdf48c84"}, - {file = "charset_normalizer-3.4.4-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:faa3a41b2b66b6e50f84ae4a68c64fcd0c44355741c6374813a800cd6695db9e"}, - {file = "charset_normalizer-3.4.4-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:6515f3182dbe4ea06ced2d9e8666d97b46ef4c75e326b79bb624110f122551db"}, - {file = "charset_normalizer-3.4.4-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:cc00f04ed596e9dc0da42ed17ac5e596c6ccba999ba6bd92b0e0aef2f170f2d6"}, - {file = "charset_normalizer-3.4.4-cp310-cp310-win32.whl", hash = "sha256:f34be2938726fc13801220747472850852fe6b1ea75869a048d6f896838c896f"}, - {file = "charset_normalizer-3.4.4-cp310-cp310-win_amd64.whl", hash = "sha256:a61900df84c667873b292c3de315a786dd8dac506704dea57bc957bd31e22c7d"}, - {file = "charset_normalizer-3.4.4-cp310-cp310-win_arm64.whl", hash = "sha256:cead0978fc57397645f12578bfd2d5ea9138ea0fac82b2f63f7f7c6877986a69"}, - {file = "charset_normalizer-3.4.4-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:6e1fcf0720908f200cd21aa4e6750a48ff6ce4afe7ff5a79a90d5ed8a08296f8"}, - {file = "charset_normalizer-3.4.4-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5f819d5fe9234f9f82d75bdfa9aef3a3d72c4d24a6e57aeaebba32a704553aa0"}, - {file = "charset_normalizer-3.4.4-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:a59cb51917aa591b1c4e6a43c132f0cdc3c76dbad6155df4e28ee626cc77a0a3"}, - {file = "charset_normalizer-3.4.4-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:8ef3c867360f88ac904fd3f5e1f902f13307af9052646963ee08ff4f131adafc"}, - {file = "charset_normalizer-3.4.4-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d9e45d7faa48ee908174d8fe84854479ef838fc6a705c9315372eacbc2f02897"}, - {file = "charset_normalizer-3.4.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:840c25fb618a231545cbab0564a799f101b63b9901f2569faecd6b222ac72381"}, - {file = "charset_normalizer-3.4.4-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:ca5862d5b3928c4940729dacc329aa9102900382fea192fc5e52eb69d6093815"}, - {file = "charset_normalizer-3.4.4-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:d9c7f57c3d666a53421049053eaacdd14bbd0a528e2186fcb2e672effd053bb0"}, - {file = "charset_normalizer-3.4.4-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:277e970e750505ed74c832b4bf75dac7476262ee2a013f5574dd49075879e161"}, - {file = "charset_normalizer-3.4.4-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:31fd66405eaf47bb62e8cd575dc621c56c668f27d46a61d975a249930dd5e2a4"}, - {file = "charset_normalizer-3.4.4-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:0d3d8f15c07f86e9ff82319b3d9ef6f4bf907608f53fe9d92b28ea9ae3d1fd89"}, - {file = "charset_normalizer-3.4.4-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:9f7fcd74d410a36883701fafa2482a6af2ff5ba96b9a620e9e0721e28ead5569"}, - {file = "charset_normalizer-3.4.4-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:ebf3e58c7ec8a8bed6d66a75d7fb37b55e5015b03ceae72a8e7c74495551e224"}, - {file = "charset_normalizer-3.4.4-cp311-cp311-win32.whl", hash = "sha256:eecbc200c7fd5ddb9a7f16c7decb07b566c29fa2161a16cf67b8d068bd21690a"}, - {file = "charset_normalizer-3.4.4-cp311-cp311-win_amd64.whl", hash = "sha256:5ae497466c7901d54b639cf42d5b8c1b6a4fead55215500d2f486d34db48d016"}, - {file = "charset_normalizer-3.4.4-cp311-cp311-win_arm64.whl", hash = "sha256:65e2befcd84bc6f37095f5961e68a6f077bf44946771354a28ad434c2cce0ae1"}, - {file = "charset_normalizer-3.4.4-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:0a98e6759f854bd25a58a73fa88833fba3b7c491169f86ce1180c948ab3fd394"}, - {file = "charset_normalizer-3.4.4-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b5b290ccc2a263e8d185130284f8501e3e36c5e02750fc6b6bdeb2e9e96f1e25"}, - {file = "charset_normalizer-3.4.4-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:74bb723680f9f7a6234dcf67aea57e708ec1fbdf5699fb91dfd6f511b0a320ef"}, - {file = "charset_normalizer-3.4.4-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f1e34719c6ed0b92f418c7c780480b26b5d9c50349e9a9af7d76bf757530350d"}, - {file = "charset_normalizer-3.4.4-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2437418e20515acec67d86e12bf70056a33abdacb5cb1655042f6538d6b085a8"}, - {file = "charset_normalizer-3.4.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:11d694519d7f29d6cd09f6ac70028dba10f92f6cdd059096db198c283794ac86"}, - {file = "charset_normalizer-3.4.4-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:ac1c4a689edcc530fc9d9aa11f5774b9e2f33f9a0c6a57864e90908f5208d30a"}, - {file = "charset_normalizer-3.4.4-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:21d142cc6c0ec30d2efee5068ca36c128a30b0f2c53c1c07bd78cb6bc1d3be5f"}, - {file = "charset_normalizer-3.4.4-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:5dbe56a36425d26d6cfb40ce79c314a2e4dd6211d51d6d2191c00bed34f354cc"}, - {file = "charset_normalizer-3.4.4-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:5bfbb1b9acf3334612667b61bd3002196fe2a1eb4dd74d247e0f2a4d50ec9bbf"}, - {file = "charset_normalizer-3.4.4-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:d055ec1e26e441f6187acf818b73564e6e6282709e9bcb5b63f5b23068356a15"}, - {file = "charset_normalizer-3.4.4-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:af2d8c67d8e573d6de5bc30cdb27e9b95e49115cd9baad5ddbd1a6207aaa82a9"}, - {file = "charset_normalizer-3.4.4-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:780236ac706e66881f3b7f2f32dfe90507a09e67d1d454c762cf642e6e1586e0"}, - {file = "charset_normalizer-3.4.4-cp312-cp312-win32.whl", hash = "sha256:5833d2c39d8896e4e19b689ffc198f08ea58116bee26dea51e362ecc7cd3ed26"}, - {file = "charset_normalizer-3.4.4-cp312-cp312-win_amd64.whl", hash = "sha256:a79cfe37875f822425b89a82333404539ae63dbdddf97f84dcbc3d339aae9525"}, - {file = "charset_normalizer-3.4.4-cp312-cp312-win_arm64.whl", hash = "sha256:376bec83a63b8021bb5c8ea75e21c4ccb86e7e45ca4eb81146091b56599b80c3"}, - {file = "charset_normalizer-3.4.4-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:e1f185f86a6f3403aa2420e815904c67b2f9ebc443f045edd0de921108345794"}, - {file = "charset_normalizer-3.4.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6b39f987ae8ccdf0d2642338faf2abb1862340facc796048b604ef14919e55ed"}, - {file = "charset_normalizer-3.4.4-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:3162d5d8ce1bb98dd51af660f2121c55d0fa541b46dff7bb9b9f86ea1d87de72"}, - {file = "charset_normalizer-3.4.4-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:81d5eb2a312700f4ecaa977a8235b634ce853200e828fbadf3a9c50bab278328"}, - {file = "charset_normalizer-3.4.4-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5bd2293095d766545ec1a8f612559f6b40abc0eb18bb2f5d1171872d34036ede"}, - {file = "charset_normalizer-3.4.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a8a8b89589086a25749f471e6a900d3f662d1d3b6e2e59dcecf787b1cc3a1894"}, - {file = "charset_normalizer-3.4.4-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:bc7637e2f80d8530ee4a78e878bce464f70087ce73cf7c1caf142416923b98f1"}, - {file = "charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f8bf04158c6b607d747e93949aa60618b61312fe647a6369f88ce2ff16043490"}, - {file = "charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:554af85e960429cf30784dd47447d5125aaa3b99a6f0683589dbd27e2f45da44"}, - {file = "charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:74018750915ee7ad843a774364e13a3db91682f26142baddf775342c3f5b1133"}, - {file = "charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:c0463276121fdee9c49b98908b3a89c39be45d86d1dbaa22957e38f6321d4ce3"}, - {file = "charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:362d61fd13843997c1c446760ef36f240cf81d3ebf74ac62652aebaf7838561e"}, - {file = "charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:9a26f18905b8dd5d685d6d07b0cdf98a79f3c7a918906af7cc143ea2e164c8bc"}, - {file = "charset_normalizer-3.4.4-cp313-cp313-win32.whl", hash = "sha256:9b35f4c90079ff2e2edc5b26c0c77925e5d2d255c42c74fdb70fb49b172726ac"}, - {file = "charset_normalizer-3.4.4-cp313-cp313-win_amd64.whl", hash = "sha256:b435cba5f4f750aa6c0a0d92c541fb79f69a387c91e61f1795227e4ed9cece14"}, - {file = "charset_normalizer-3.4.4-cp313-cp313-win_arm64.whl", hash = "sha256:542d2cee80be6f80247095cc36c418f7bddd14f4a6de45af91dfad36d817bba2"}, - {file = "charset_normalizer-3.4.4-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:da3326d9e65ef63a817ecbcc0df6e94463713b754fe293eaa03da99befb9a5bd"}, - {file = "charset_normalizer-3.4.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8af65f14dc14a79b924524b1e7fffe304517b2bff5a58bf64f30b98bbc5079eb"}, - {file = "charset_normalizer-3.4.4-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:74664978bb272435107de04e36db5a9735e78232b85b77d45cfb38f758efd33e"}, - {file = "charset_normalizer-3.4.4-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:752944c7ffbfdd10c074dc58ec2d5a8a4cd9493b314d367c14d24c17684ddd14"}, - {file = "charset_normalizer-3.4.4-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d1f13550535ad8cff21b8d757a3257963e951d96e20ec82ab44bc64aeb62a191"}, - {file = "charset_normalizer-3.4.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ecaae4149d99b1c9e7b88bb03e3221956f68fd6d50be2ef061b2381b61d20838"}, - {file = "charset_normalizer-3.4.4-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:cb6254dc36b47a990e59e1068afacdcd02958bdcce30bb50cc1700a8b9d624a6"}, - {file = "charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:c8ae8a0f02f57a6e61203a31428fa1d677cbe50c93622b4149d5c0f319c1d19e"}, - {file = "charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:47cc91b2f4dd2833fddaedd2893006b0106129d4b94fdb6af1f4ce5a9965577c"}, - {file = "charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:82004af6c302b5d3ab2cfc4cc5f29db16123b1a8417f2e25f9066f91d4411090"}, - {file = "charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:2b7d8f6c26245217bd2ad053761201e9f9680f8ce52f0fcd8d0755aeae5b2152"}, - {file = "charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:799a7a5e4fb2d5898c60b640fd4981d6a25f1c11790935a44ce38c54e985f828"}, - {file = "charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:99ae2cffebb06e6c22bdc25801d7b30f503cc87dbd283479e7b606f70aff57ec"}, - {file = "charset_normalizer-3.4.4-cp314-cp314-win32.whl", hash = "sha256:f9d332f8c2a2fcbffe1378594431458ddbef721c1769d78e2cbc06280d8155f9"}, - {file = "charset_normalizer-3.4.4-cp314-cp314-win_amd64.whl", hash = "sha256:8a6562c3700cce886c5be75ade4a5db4214fda19fede41d9792d100288d8f94c"}, - {file = "charset_normalizer-3.4.4-cp314-cp314-win_arm64.whl", hash = "sha256:de00632ca48df9daf77a2c65a484531649261ec9f25489917f09e455cb09ddb2"}, - {file = "charset_normalizer-3.4.4-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:ce8a0633f41a967713a59c4139d29110c07e826d131a316b50ce11b1d79b4f84"}, - {file = "charset_normalizer-3.4.4-cp38-cp38-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:eaabd426fe94daf8fd157c32e571c85cb12e66692f15516a83a03264b08d06c3"}, - {file = "charset_normalizer-3.4.4-cp38-cp38-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c4ef880e27901b6cc782f1b95f82da9313c0eb95c3af699103088fa0ac3ce9ac"}, - {file = "charset_normalizer-3.4.4-cp38-cp38-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:2aaba3b0819274cc41757a1da876f810a3e4d7b6eb25699253a4effef9e8e4af"}, - {file = "charset_normalizer-3.4.4-cp38-cp38-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:778d2e08eda00f4256d7f672ca9fef386071c9202f5e4607920b86d7803387f2"}, - {file = "charset_normalizer-3.4.4-cp38-cp38-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f155a433c2ec037d4e8df17d18922c3a0d9b3232a396690f17175d2946f0218d"}, - {file = "charset_normalizer-3.4.4-cp38-cp38-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:a8bf8d0f749c5757af2142fe7903a9df1d2e8aa3841559b2bad34b08d0e2bcf3"}, - {file = "charset_normalizer-3.4.4-cp38-cp38-musllinux_1_2_aarch64.whl", hash = "sha256:194f08cbb32dc406d6e1aea671a68be0823673db2832b38405deba2fb0d88f63"}, - {file = "charset_normalizer-3.4.4-cp38-cp38-musllinux_1_2_armv7l.whl", hash = "sha256:6aee717dcfead04c6eb1ce3bd29ac1e22663cdea57f943c87d1eab9a025438d7"}, - {file = "charset_normalizer-3.4.4-cp38-cp38-musllinux_1_2_ppc64le.whl", hash = "sha256:cd4b7ca9984e5e7985c12bc60a6f173f3c958eae74f3ef6624bb6b26e2abbae4"}, - {file = "charset_normalizer-3.4.4-cp38-cp38-musllinux_1_2_riscv64.whl", hash = "sha256:b7cf1017d601aa35e6bb650b6ad28652c9cd78ee6caff19f3c28d03e1c80acbf"}, - {file = "charset_normalizer-3.4.4-cp38-cp38-musllinux_1_2_s390x.whl", hash = "sha256:e912091979546adf63357d7e2ccff9b44f026c075aeaf25a52d0e95ad2281074"}, - {file = "charset_normalizer-3.4.4-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:5cb4d72eea50c8868f5288b7f7f33ed276118325c1dfd3957089f6b519e1382a"}, - {file = "charset_normalizer-3.4.4-cp38-cp38-win32.whl", hash = "sha256:837c2ce8c5a65a2035be9b3569c684358dfbf109fd3b6969630a87535495ceaa"}, - {file = "charset_normalizer-3.4.4-cp38-cp38-win_amd64.whl", hash = "sha256:44c2a8734b333e0578090c4cd6b16f275e07aa6614ca8715e6c038e865e70576"}, - {file = "charset_normalizer-3.4.4-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:a9768c477b9d7bd54bc0c86dbaebdec6f03306675526c9927c0e8a04e8f94af9"}, - {file = "charset_normalizer-3.4.4-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1bee1e43c28aa63cb16e5c14e582580546b08e535299b8b6158a7c9c768a1f3d"}, - {file = "charset_normalizer-3.4.4-cp39-cp39-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:fd44c878ea55ba351104cb93cc85e74916eb8fa440ca7903e57575e97394f608"}, - {file = "charset_normalizer-3.4.4-cp39-cp39-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:0f04b14ffe5fdc8c4933862d8306109a2c51e0704acfa35d51598eb45a1e89fc"}, - {file = "charset_normalizer-3.4.4-cp39-cp39-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:cd09d08005f958f370f539f186d10aec3377d55b9eeb0d796025d4886119d76e"}, - {file = "charset_normalizer-3.4.4-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4fe7859a4e3e8457458e2ff592f15ccb02f3da787fcd31e0183879c3ad4692a1"}, - {file = "charset_normalizer-3.4.4-cp39-cp39-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:fa09f53c465e532f4d3db095e0c55b615f010ad81803d383195b6b5ca6cbf5f3"}, - {file = "charset_normalizer-3.4.4-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:7fa17817dc5625de8a027cb8b26d9fefa3ea28c8253929b8d6649e705d2835b6"}, - {file = "charset_normalizer-3.4.4-cp39-cp39-musllinux_1_2_armv7l.whl", hash = "sha256:5947809c8a2417be3267efc979c47d76a079758166f7d43ef5ae8e9f92751f88"}, - {file = "charset_normalizer-3.4.4-cp39-cp39-musllinux_1_2_ppc64le.whl", hash = "sha256:4902828217069c3c5c71094537a8e623f5d097858ac6ca8252f7b4d10b7560f1"}, - {file = "charset_normalizer-3.4.4-cp39-cp39-musllinux_1_2_riscv64.whl", hash = "sha256:7c308f7e26e4363d79df40ca5b2be1c6ba9f02bdbccfed5abddb7859a6ce72cf"}, - {file = "charset_normalizer-3.4.4-cp39-cp39-musllinux_1_2_s390x.whl", hash = "sha256:2c9d3c380143a1fedbff95a312aa798578371eb29da42106a29019368a475318"}, - {file = "charset_normalizer-3.4.4-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:cb01158d8b88ee68f15949894ccc6712278243d95f344770fa7593fa2d94410c"}, - {file = "charset_normalizer-3.4.4-cp39-cp39-win32.whl", hash = "sha256:2677acec1a2f8ef614c6888b5b4ae4060cc184174a938ed4e8ef690e15d3e505"}, - {file = "charset_normalizer-3.4.4-cp39-cp39-win_amd64.whl", hash = "sha256:f8e160feb2aed042cd657a72acc0b481212ed28b1b9a95c0cee1621b524e1966"}, - {file = "charset_normalizer-3.4.4-cp39-cp39-win_arm64.whl", hash = "sha256:b5d84d37db046c5ca74ee7bb47dd6cbc13f80665fdde3e8040bdd3fb015ecb50"}, - {file = "charset_normalizer-3.4.4-py3-none-any.whl", hash = "sha256:7a32c560861a02ff789ad905a2fe94e3f840803362c84fecf1851cb4cf3dc37f"}, - {file = "charset_normalizer-3.4.4.tar.gz", hash = "sha256:94537985111c35f28720e43603b8e7b43a6ecfb2ce1d3058bbe955b73404e21a"}, + {file = "charset_normalizer-3.4.6-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:2e1d8ca8611099001949d1cdfaefc510cf0f212484fe7c565f735b68c78c3c95"}, + {file = "charset_normalizer-3.4.6-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e25369dc110d58ddf29b949377a93e0716d72a24f62bad72b2b39f155949c1fd"}, + {file = "charset_normalizer-3.4.6-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:259695e2ccc253feb2a016303543d691825e920917e31f894ca1a687982b1de4"}, + {file = "charset_normalizer-3.4.6-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:dda86aba335c902b6149a02a55b38e96287157e609200811837678214ba2b1db"}, + {file = "charset_normalizer-3.4.6-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:51fb3c322c81d20567019778cb5a4a6f2dc1c200b886bc0d636238e364848c89"}, + {file = "charset_normalizer-3.4.6-cp310-cp310-manylinux_2_31_armv7l.whl", hash = "sha256:4482481cb0572180b6fd976a4d5c72a30263e98564da68b86ec91f0fe35e8565"}, + {file = "charset_normalizer-3.4.6-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:39f5068d35621da2881271e5c3205125cc456f54e9030d3f723288c873a71bf9"}, + {file = "charset_normalizer-3.4.6-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:8bea55c4eef25b0b19a0337dc4e3f9a15b00d569c77211fa8cde38684f234fb7"}, + {file = "charset_normalizer-3.4.6-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:f0cdaecd4c953bfae0b6bb64910aaaca5a424ad9c72d85cb88417bb9814f7550"}, + {file = "charset_normalizer-3.4.6-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:150b8ce8e830eb7ccb029ec9ca36022f756986aaaa7956aad6d9ec90089338c0"}, + {file = "charset_normalizer-3.4.6-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:e68c14b04827dd76dcbd1aeea9e604e3e4b78322d8faf2f8132c7138efa340a8"}, + {file = "charset_normalizer-3.4.6-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:3778fd7d7cd04ae8f54651f4a7a0bd6e39a0cf20f801720a4c21d80e9b7ad6b0"}, + {file = "charset_normalizer-3.4.6-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:dad6e0f2e481fffdcf776d10ebee25e0ef89f16d691f1e5dee4b586375fdc64b"}, + {file = "charset_normalizer-3.4.6-cp310-cp310-win32.whl", hash = "sha256:74a2e659c7ecbc73562e2a15e05039f1e22c75b7c7618b4b574a3ea9118d1557"}, + {file = "charset_normalizer-3.4.6-cp310-cp310-win_amd64.whl", hash = "sha256:aa9cccf4a44b9b62d8ba8b4dd06c649ba683e4bf04eea606d2e94cfc2d6ff4d6"}, + {file = "charset_normalizer-3.4.6-cp310-cp310-win_arm64.whl", hash = "sha256:e985a16ff513596f217cee86c21371b8cd011c0f6f056d0920aa2d926c544058"}, + {file = "charset_normalizer-3.4.6-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:82060f995ab5003a2d6e0f4ad29065b7672b6593c8c63559beefe5b443242c3e"}, + {file = "charset_normalizer-3.4.6-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:60c74963d8350241a79cb8feea80e54d518f72c26db618862a8f53e5023deaf9"}, + {file = "charset_normalizer-3.4.6-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f6e4333fb15c83f7d1482a76d45a0818897b3d33f00efd215528ff7c51b8e35d"}, + {file = "charset_normalizer-3.4.6-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:bc72863f4d9aba2e8fd9085e63548a324ba706d2ea2c83b260da08a59b9482de"}, + {file = "charset_normalizer-3.4.6-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9cc4fc6c196d6a8b76629a70ddfcd4635a6898756e2d9cac5565cf0654605d73"}, + {file = "charset_normalizer-3.4.6-cp311-cp311-manylinux_2_31_armv7l.whl", hash = "sha256:0c173ce3a681f309f31b87125fecec7a5d1347261ea11ebbb856fa6006b23c8c"}, + {file = "charset_normalizer-3.4.6-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c907cdc8109f6c619e6254212e794d6548373cc40e1ec75e6e3823d9135d29cc"}, + {file = "charset_normalizer-3.4.6-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:404a1e552cf5b675a87f0651f8b79f5f1e6fd100ee88dc612f89aa16abd4486f"}, + {file = "charset_normalizer-3.4.6-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:e3c701e954abf6fc03a49f7c579cc80c2c6cc52525340ca3186c41d3f33482ef"}, + {file = "charset_normalizer-3.4.6-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:7a6967aaf043bceabab5412ed6bd6bd26603dae84d5cb75bf8d9a74a4959d398"}, + {file = "charset_normalizer-3.4.6-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:5feb91325bbceade6afab43eb3b508c63ee53579fe896c77137ded51c6b6958e"}, + {file = "charset_normalizer-3.4.6-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:f820f24b09e3e779fe84c3c456cb4108a7aa639b0d1f02c28046e11bfcd088ed"}, + {file = "charset_normalizer-3.4.6-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:b35b200d6a71b9839a46b9b7fff66b6638bb52fc9658aa58796b0326595d3021"}, + {file = "charset_normalizer-3.4.6-cp311-cp311-win32.whl", hash = "sha256:9ca4c0b502ab399ef89248a2c84c54954f77a070f28e546a85e91da627d1301e"}, + {file = "charset_normalizer-3.4.6-cp311-cp311-win_amd64.whl", hash = "sha256:a9e68c9d88823b274cf1e72f28cb5dc89c990edf430b0bfd3e2fb0785bfeabf4"}, + {file = "charset_normalizer-3.4.6-cp311-cp311-win_arm64.whl", hash = "sha256:97d0235baafca5f2b09cf332cc275f021e694e8362c6bb9c96fc9a0eb74fc316"}, + {file = "charset_normalizer-3.4.6-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:2ef7fedc7a6ecbe99969cd09632516738a97eeb8bd7258bf8a0f23114c057dab"}, + {file = "charset_normalizer-3.4.6-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a4ea868bc28109052790eb2b52a9ab33f3aa7adc02f96673526ff47419490e21"}, + {file = "charset_normalizer-3.4.6-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:836ab36280f21fc1a03c99cd05c6b7af70d2697e374c7af0b61ed271401a72a2"}, + {file = "charset_normalizer-3.4.6-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f1ce721c8a7dfec21fcbdfe04e8f68174183cf4e8188e0645e92aa23985c57ff"}, + {file = "charset_normalizer-3.4.6-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0e28d62a8fc7a1fa411c43bd65e346f3bce9716dc51b897fbe930c5987b402d5"}, + {file = "charset_normalizer-3.4.6-cp312-cp312-manylinux_2_31_armv7l.whl", hash = "sha256:530d548084c4a9f7a16ed4a294d459b4f229db50df689bfe92027452452943a0"}, + {file = "charset_normalizer-3.4.6-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:30f445ae60aad5e1f8bdbb3108e39f6fbc09f4ea16c815c66578878325f8f15a"}, + {file = "charset_normalizer-3.4.6-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:ac2393c73378fea4e52aa56285a3d64be50f1a12395afef9cce47772f60334c2"}, + {file = "charset_normalizer-3.4.6-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:90ca27cd8da8118b18a52d5f547859cc1f8354a00cd1e8e5120df3e30d6279e5"}, + {file = "charset_normalizer-3.4.6-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:8e5a94886bedca0f9b78fecd6afb6629142fd2605aa70a125d49f4edc6037ee6"}, + {file = "charset_normalizer-3.4.6-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:695f5c2823691a25f17bc5d5ffe79fa90972cc34b002ac6c843bb8a1720e950d"}, + {file = "charset_normalizer-3.4.6-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:231d4da14bcd9301310faf492051bee27df11f2bc7549bc0bb41fef11b82daa2"}, + {file = "charset_normalizer-3.4.6-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:a056d1ad2633548ca18ffa2f85c202cfb48b68615129143915b8dc72a806a923"}, + {file = "charset_normalizer-3.4.6-cp312-cp312-win32.whl", hash = "sha256:c2274ca724536f173122f36c98ce188fd24ce3dad886ec2b7af859518ce008a4"}, + {file = "charset_normalizer-3.4.6-cp312-cp312-win_amd64.whl", hash = "sha256:c8ae56368f8cc97c7e40a7ee18e1cedaf8e780cd8bc5ed5ac8b81f238614facb"}, + {file = "charset_normalizer-3.4.6-cp312-cp312-win_arm64.whl", hash = "sha256:899d28f422116b08be5118ef350c292b36fc15ec2daeb9ea987c89281c7bb5c4"}, + {file = "charset_normalizer-3.4.6-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:11afb56037cbc4b1555a34dd69151e8e069bee82e613a73bef6e714ce733585f"}, + {file = "charset_normalizer-3.4.6-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:423fb7e748a08f854a08a222b983f4df1912b1daedce51a72bd24fe8f26a1843"}, + {file = "charset_normalizer-3.4.6-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:d73beaac5e90173ac3deb9928a74763a6d230f494e4bfb422c217a0ad8e629bf"}, + {file = "charset_normalizer-3.4.6-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d60377dce4511655582e300dc1e5a5f24ba0cb229005a1d5c8d0cb72bb758ab8"}, + {file = "charset_normalizer-3.4.6-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:530e8cebeea0d76bdcf93357aa5e41336f48c3dc709ac52da2bb167c5b8271d9"}, + {file = "charset_normalizer-3.4.6-cp313-cp313-manylinux_2_31_armv7l.whl", hash = "sha256:a26611d9987b230566f24a0a125f17fe0de6a6aff9f25c9f564aaa2721a5fb88"}, + {file = "charset_normalizer-3.4.6-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:34315ff4fc374b285ad7f4a0bf7dcbfe769e1b104230d40f49f700d4ab6bbd84"}, + {file = "charset_normalizer-3.4.6-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:5f8ddd609f9e1af8c7bd6e2aca279c931aefecd148a14402d4e368f3171769fd"}, + {file = "charset_normalizer-3.4.6-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:80d0a5615143c0b3225e5e3ef22c8d5d51f3f72ce0ea6fb84c943546c7b25b6c"}, + {file = "charset_normalizer-3.4.6-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:92734d4d8d187a354a556626c221cd1a892a4e0802ccb2af432a1d85ec012194"}, + {file = "charset_normalizer-3.4.6-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:613f19aa6e082cf96e17e3ffd89383343d0d589abda756b7764cf78361fd41dc"}, + {file = "charset_normalizer-3.4.6-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:2b1a63e8224e401cafe7739f77efd3f9e7f5f2026bda4aead8e59afab537784f"}, + {file = "charset_normalizer-3.4.6-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6cceb5473417d28edd20c6c984ab6fee6c6267d38d906823ebfe20b03d607dc2"}, + {file = "charset_normalizer-3.4.6-cp313-cp313-win32.whl", hash = "sha256:d7de2637729c67d67cf87614b566626057e95c303bc0a55ffe391f5205e7003d"}, + {file = "charset_normalizer-3.4.6-cp313-cp313-win_amd64.whl", hash = "sha256:572d7c822caf521f0525ba1bce1a622a0b85cf47ffbdae6c9c19e3b5ac3c4389"}, + {file = "charset_normalizer-3.4.6-cp313-cp313-win_arm64.whl", hash = "sha256:a4474d924a47185a06411e0064b803c68be044be2d60e50e8bddcc2649957c1f"}, + {file = "charset_normalizer-3.4.6-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:9cc6e6d9e571d2f863fa77700701dae73ed5f78881efc8b3f9a4398772ff53e8"}, + {file = "charset_normalizer-3.4.6-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ef5960d965e67165d75b7c7ffc60a83ec5abfc5c11b764ec13ea54fbef8b4421"}, + {file = "charset_normalizer-3.4.6-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:b3694e3f87f8ac7ce279d4355645b3c878d24d1424581b46282f24b92f5a4ae2"}, + {file = "charset_normalizer-3.4.6-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5d11595abf8dd942a77883a39d81433739b287b6aa71620f15164f8096221b30"}, + {file = "charset_normalizer-3.4.6-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7bda6eebafd42133efdca535b04ccb338ab29467b3f7bf79569883676fc628db"}, + {file = "charset_normalizer-3.4.6-cp314-cp314-manylinux_2_31_armv7l.whl", hash = "sha256:bbc8c8650c6e51041ad1be191742b8b421d05bbd3410f43fa2a00c8db87678e8"}, + {file = "charset_normalizer-3.4.6-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:22c6f0c2fbc31e76c3b8a86fba1a56eda6166e238c29cdd3d14befdb4a4e4815"}, + {file = "charset_normalizer-3.4.6-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7edbed096e4a4798710ed6bc75dcaa2a21b68b6c356553ac4823c3658d53743a"}, + {file = "charset_normalizer-3.4.6-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:7f9019c9cb613f084481bd6a100b12e1547cf2efe362d873c2e31e4035a6fa43"}, + {file = "charset_normalizer-3.4.6-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:58c948d0d086229efc484fe2f30c2d382c86720f55cd9bc33591774348ad44e0"}, + {file = "charset_normalizer-3.4.6-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:419a9d91bd238052642a51938af8ac05da5b3343becde08d5cdeab9046df9ee1"}, + {file = "charset_normalizer-3.4.6-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:5273b9f0b5835ff0350c0828faea623c68bfa65b792720c453e22b25cc72930f"}, + {file = "charset_normalizer-3.4.6-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:0e901eb1049fdb80f5bd11ed5ea1e498ec423102f7a9b9e4645d5b8204ff2815"}, + {file = "charset_normalizer-3.4.6-cp314-cp314-win32.whl", hash = "sha256:b4ff1d35e8c5bd078be89349b6f3a845128e685e751b6ea1169cf2160b344c4d"}, + {file = "charset_normalizer-3.4.6-cp314-cp314-win_amd64.whl", hash = "sha256:74119174722c4349af9708993118581686f343adc1c8c9c007d59be90d077f3f"}, + {file = "charset_normalizer-3.4.6-cp314-cp314-win_arm64.whl", hash = "sha256:e5bcc1a1ae744e0bb59641171ae53743760130600da8db48cbb6e4918e186e4e"}, + {file = "charset_normalizer-3.4.6-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:ad8faf8df23f0378c6d527d8b0b15ea4a2e23c89376877c598c4870d1b2c7866"}, + {file = "charset_normalizer-3.4.6-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f5ea69428fa1b49573eef0cc44a1d43bebd45ad0c611eb7d7eac760c7ae771bc"}, + {file = "charset_normalizer-3.4.6-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:06a7e86163334edfc5d20fe104db92fcd666e5a5df0977cb5680a506fe26cc8e"}, + {file = "charset_normalizer-3.4.6-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:e1f6e2f00a6b8edb562826e4632e26d063ac10307e80f7461f7de3ad8ef3f077"}, + {file = "charset_normalizer-3.4.6-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:95b52c68d64c1878818687a473a10547b3292e82b6f6fe483808fb1468e2f52f"}, + {file = "charset_normalizer-3.4.6-cp314-cp314t-manylinux_2_31_armv7l.whl", hash = "sha256:7504e9b7dc05f99a9bbb4525c67a2c155073b44d720470a148b34166a69c054e"}, + {file = "charset_normalizer-3.4.6-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:172985e4ff804a7ad08eebec0a1640ece87ba5041d565fff23c8f99c1f389484"}, + {file = "charset_normalizer-3.4.6-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:4be9f4830ba8741527693848403e2c457c16e499100963ec711b1c6f2049b7c7"}, + {file = "charset_normalizer-3.4.6-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:79090741d842f564b1b2827c0b82d846405b744d31e84f18d7a7b41c20e473ff"}, + {file = "charset_normalizer-3.4.6-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:87725cfb1a4f1f8c2fc9890ae2f42094120f4b44db9360be5d99a4c6b0e03a9e"}, + {file = "charset_normalizer-3.4.6-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:fcce033e4021347d80ed9c66dcf1e7b1546319834b74445f561d2e2221de5659"}, + {file = "charset_normalizer-3.4.6-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:ca0276464d148c72defa8bb4390cce01b4a0e425f3b50d1435aa6d7a18107602"}, + {file = "charset_normalizer-3.4.6-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:197c1a244a274bb016dd8b79204850144ef77fe81c5b797dc389327adb552407"}, + {file = "charset_normalizer-3.4.6-cp314-cp314t-win32.whl", hash = "sha256:2a24157fa36980478dd1770b585c0f30d19e18f4fb0c47c13aa568f871718579"}, + {file = "charset_normalizer-3.4.6-cp314-cp314t-win_amd64.whl", hash = "sha256:cd5e2801c89992ed8c0a3f0293ae83c159a60d9a5d685005383ef4caca77f2c4"}, + {file = "charset_normalizer-3.4.6-cp314-cp314t-win_arm64.whl", hash = "sha256:47955475ac79cc504ef2704b192364e51d0d473ad452caedd0002605f780101c"}, + {file = "charset_normalizer-3.4.6-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:659a1e1b500fac8f2779dd9e1570464e012f43e580371470b45277a27baa7532"}, + {file = "charset_normalizer-3.4.6-cp38-cp38-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f61aa92e4aad0be58eb6eb4e0c21acf32cf8065f4b2cae5665da756c4ceef982"}, + {file = "charset_normalizer-3.4.6-cp38-cp38-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f50498891691e0864dc3da965f340fada0771f6142a378083dc4608f4ea513e2"}, + {file = "charset_normalizer-3.4.6-cp38-cp38-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:bf625105bb9eef28a56a943fec8c8a98aeb80e7d7db99bd3c388137e6eb2d237"}, + {file = "charset_normalizer-3.4.6-cp38-cp38-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2bd9d128ef93637a5d7a6af25363cf5dec3fa21cf80e68055aad627f280e8afa"}, + {file = "charset_normalizer-3.4.6-cp38-cp38-manylinux_2_31_armv7l.whl", hash = "sha256:d08ec48f0a1c48d75d0356cea971921848fb620fdeba805b28f937e90691209f"}, + {file = "charset_normalizer-3.4.6-cp38-cp38-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1ed80ff870ca6de33f4d953fda4d55654b9a2b340ff39ab32fa3adbcd718f264"}, + {file = "charset_normalizer-3.4.6-cp38-cp38-musllinux_1_2_aarch64.whl", hash = "sha256:f98059e4fcd3e3e4e2d632b7cf81c2faae96c43c60b569e9c621468082f1d104"}, + {file = "charset_normalizer-3.4.6-cp38-cp38-musllinux_1_2_armv7l.whl", hash = "sha256:ab30e5e3e706e3063bc6de96b118688cb10396b70bb9864a430f67df98c61ecc"}, + {file = "charset_normalizer-3.4.6-cp38-cp38-musllinux_1_2_ppc64le.whl", hash = "sha256:d5f5d1e9def3405f60e3ca8232d56f35c98fb7bf581efcc60051ebf53cb8b611"}, + {file = "charset_normalizer-3.4.6-cp38-cp38-musllinux_1_2_riscv64.whl", hash = "sha256:461598cd852bfa5a61b09cae2b1c02e2efcd166ee5516e243d540ac24bfa68a7"}, + {file = "charset_normalizer-3.4.6-cp38-cp38-musllinux_1_2_s390x.whl", hash = "sha256:71be7e0e01753a89cf024abf7ecb6bca2c81738ead80d43004d9b5e3f1244e64"}, + {file = "charset_normalizer-3.4.6-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:df01808ee470038c3f8dc4f48620df7225c49c2d6639e38f96e6d6ac6e6f7b0e"}, + {file = "charset_normalizer-3.4.6-cp38-cp38-win32.whl", hash = "sha256:69dd852c2f0ad631b8b60cfbe25a28c0058a894de5abb566619c205ce0550eae"}, + {file = "charset_normalizer-3.4.6-cp38-cp38-win_amd64.whl", hash = "sha256:517ad0e93394ac532745129ceabdf2696b609ec9f87863d337140317ebce1c14"}, + {file = "charset_normalizer-3.4.6-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:31215157227939b4fb3d740cd23fe27be0439afef67b785a1eb78a3ae69cba9e"}, + {file = "charset_normalizer-3.4.6-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ecbbd45615a6885fe3240eb9db73b9e62518b611850fdf8ab08bd56de7ad2b17"}, + {file = "charset_normalizer-3.4.6-cp39-cp39-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c45a03a4c69820a399f1dda9e1d8fbf3562eda46e7720458180302021b08f778"}, + {file = "charset_normalizer-3.4.6-cp39-cp39-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:e8aeb10fcbe92767f0fa69ad5a72deca50d0dca07fbde97848997d778a50c9fe"}, + {file = "charset_normalizer-3.4.6-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:54fae94be3d75f3e573c9a1b5402dc593de19377013c9a0e4285e3d402dd3a2a"}, + {file = "charset_normalizer-3.4.6-cp39-cp39-manylinux_2_31_armv7l.whl", hash = "sha256:2f7fdd9b6e6c529d6a2501a2d36b240109e78a8ceaef5687cfcfa2bbe671d297"}, + {file = "charset_normalizer-3.4.6-cp39-cp39-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:4d1d02209e06550bdaef34af58e041ad71b88e624f5d825519da3a3308e22687"}, + {file = "charset_normalizer-3.4.6-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:8bc5f0687d796c05b1e28ab0d38a50e6309906ee09375dd3aff6a9c09dd6e8f4"}, + {file = "charset_normalizer-3.4.6-cp39-cp39-musllinux_1_2_armv7l.whl", hash = "sha256:ee4ec14bc1680d6b0afab9aea2ef27e26d2024f18b24a2d7155a52b60da7e833"}, + {file = "charset_normalizer-3.4.6-cp39-cp39-musllinux_1_2_ppc64le.whl", hash = "sha256:d1a2ee9c1499fc8f86f4521f27a973c914b211ffa87322f4ee33bb35392da2c5"}, + {file = "charset_normalizer-3.4.6-cp39-cp39-musllinux_1_2_riscv64.whl", hash = "sha256:48696db7f18afb80a068821504296eb0787d9ce239b91ca15059d1d3eaacf13b"}, + {file = "charset_normalizer-3.4.6-cp39-cp39-musllinux_1_2_s390x.whl", hash = "sha256:4f41da960b196ea355357285ad1316a00099f22d0929fe168343b99b254729c9"}, + {file = "charset_normalizer-3.4.6-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:802168e03fba8bbc5ce0d866d589e4b1ca751d06edee69f7f3a19c5a9fe6b597"}, + {file = "charset_normalizer-3.4.6-cp39-cp39-win32.whl", hash = "sha256:8761ac29b6c81574724322a554605608a9960769ea83d2c73e396f3df896ad54"}, + {file = "charset_normalizer-3.4.6-cp39-cp39-win_amd64.whl", hash = "sha256:1cf0a70018692f85172348fe06d3a4b63f94ecb055e13a00c644d368eb82e5b8"}, + {file = "charset_normalizer-3.4.6-cp39-cp39-win_arm64.whl", hash = "sha256:3516bbb8d42169de9e61b8520cbeeeb716f12f4ecfe3fd30a9919aa16c806ca8"}, + {file = "charset_normalizer-3.4.6-py3-none-any.whl", hash = "sha256:947cf925bc916d90adba35a64c82aace04fa39b46b52d4630ece166655905a69"}, + {file = "charset_normalizer-3.4.6.tar.gz", hash = "sha256:1ae6b62897110aa7c79ea2f5dd38d1abca6db663687c0b1ad9aed6f6bae3d9d6"}, ] [[package]] diff --git a/pyproject.toml b/pyproject.toml index a11551e5..07172a4c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ dynamic = ["version"] [tool.poetry] name = "deepgram-sdk" -version = "6.0.1" +version = "7.0.0" description = "" readme = "README.md" authors = [] diff --git a/src/deepgram/agent/__init__.py b/src/deepgram/agent/__init__.py index 30038648..fae39db0 100644 --- a/src/deepgram/agent/__init__.py +++ b/src/deepgram/agent/__init__.py @@ -40,33 +40,35 @@ AgentV1Settings, AgentV1SettingsAgent, AgentV1SettingsAgentContext, - AgentV1SettingsAgentContextMessagesItem, - AgentV1SettingsAgentContextMessagesItemContent, - AgentV1SettingsAgentContextMessagesItemContentParams, - AgentV1SettingsAgentContextMessagesItemContentRole, - AgentV1SettingsAgentContextMessagesItemFunctionCalls, - AgentV1SettingsAgentContextMessagesItemFunctionCallsFunctionCallsItem, - AgentV1SettingsAgentContextMessagesItemFunctionCallsFunctionCallsItemParams, - AgentV1SettingsAgentContextMessagesItemFunctionCallsParams, - AgentV1SettingsAgentContextMessagesItemParams, + AgentV1SettingsAgentContextContext, + AgentV1SettingsAgentContextContextMessagesItem, + AgentV1SettingsAgentContextContextMessagesItemContent, + AgentV1SettingsAgentContextContextMessagesItemContentParams, + AgentV1SettingsAgentContextContextMessagesItemContentRole, + AgentV1SettingsAgentContextContextMessagesItemFunctionCalls, + AgentV1SettingsAgentContextContextMessagesItemFunctionCallsFunctionCallsItem, + AgentV1SettingsAgentContextContextMessagesItemFunctionCallsFunctionCallsItemParams, + AgentV1SettingsAgentContextContextMessagesItemFunctionCallsParams, + AgentV1SettingsAgentContextContextMessagesItemParams, + AgentV1SettingsAgentContextContextParams, + AgentV1SettingsAgentContextListen, + AgentV1SettingsAgentContextListenParams, + AgentV1SettingsAgentContextListenProvider, + AgentV1SettingsAgentContextListenProviderParams, + AgentV1SettingsAgentContextListenProviderV1, + AgentV1SettingsAgentContextListenProviderV1Params, + AgentV1SettingsAgentContextListenProviderV2, + AgentV1SettingsAgentContextListenProviderV2Params, + AgentV1SettingsAgentContextListenProvider_V1, + AgentV1SettingsAgentContextListenProvider_V1Params, + AgentV1SettingsAgentContextListenProvider_V2, + AgentV1SettingsAgentContextListenProvider_V2Params, AgentV1SettingsAgentContextParams, - AgentV1SettingsAgentListen, - AgentV1SettingsAgentListenParams, - AgentV1SettingsAgentListenProvider, - AgentV1SettingsAgentListenProviderParams, - AgentV1SettingsAgentListenProviderV1, - AgentV1SettingsAgentListenProviderV1Params, - AgentV1SettingsAgentListenProviderV2, - AgentV1SettingsAgentListenProviderV2Params, - AgentV1SettingsAgentListenProvider_V1, - AgentV1SettingsAgentListenProvider_V1Params, - AgentV1SettingsAgentListenProvider_V2, - AgentV1SettingsAgentListenProvider_V2Params, + AgentV1SettingsAgentContextSpeak, + AgentV1SettingsAgentContextSpeakParams, + AgentV1SettingsAgentContextThink, + AgentV1SettingsAgentContextThinkParams, AgentV1SettingsAgentParams, - AgentV1SettingsAgentSpeak, - AgentV1SettingsAgentSpeakParams, - AgentV1SettingsAgentThink, - AgentV1SettingsAgentThinkParams, AgentV1SettingsApplied, AgentV1SettingsAppliedParams, AgentV1SettingsAudio, @@ -82,10 +84,18 @@ AgentV1SettingsParams, AgentV1SpeakUpdated, AgentV1SpeakUpdatedParams, + AgentV1ThinkUpdated, + AgentV1ThinkUpdatedParams, AgentV1UpdatePrompt, AgentV1UpdatePromptParams, AgentV1UpdateSpeak, AgentV1UpdateSpeakParams, + AgentV1UpdateSpeakSpeak, + AgentV1UpdateSpeakSpeakParams, + AgentV1UpdateThink, + AgentV1UpdateThinkParams, + AgentV1UpdateThinkThink, + AgentV1UpdateThinkThinkParams, AgentV1UserStartedSpeaking, AgentV1UserStartedSpeakingParams, AgentV1Warning, @@ -126,33 +136,35 @@ "AgentV1Settings": ".v1", "AgentV1SettingsAgent": ".v1", "AgentV1SettingsAgentContext": ".v1", - "AgentV1SettingsAgentContextMessagesItem": ".v1", - "AgentV1SettingsAgentContextMessagesItemContent": ".v1", - "AgentV1SettingsAgentContextMessagesItemContentParams": ".v1", - "AgentV1SettingsAgentContextMessagesItemContentRole": ".v1", - "AgentV1SettingsAgentContextMessagesItemFunctionCalls": ".v1", - "AgentV1SettingsAgentContextMessagesItemFunctionCallsFunctionCallsItem": ".v1", - "AgentV1SettingsAgentContextMessagesItemFunctionCallsFunctionCallsItemParams": ".v1", - "AgentV1SettingsAgentContextMessagesItemFunctionCallsParams": ".v1", - "AgentV1SettingsAgentContextMessagesItemParams": ".v1", + "AgentV1SettingsAgentContextContext": ".v1", + "AgentV1SettingsAgentContextContextMessagesItem": ".v1", + "AgentV1SettingsAgentContextContextMessagesItemContent": ".v1", + "AgentV1SettingsAgentContextContextMessagesItemContentParams": ".v1", + "AgentV1SettingsAgentContextContextMessagesItemContentRole": ".v1", + "AgentV1SettingsAgentContextContextMessagesItemFunctionCalls": ".v1", + "AgentV1SettingsAgentContextContextMessagesItemFunctionCallsFunctionCallsItem": ".v1", + "AgentV1SettingsAgentContextContextMessagesItemFunctionCallsFunctionCallsItemParams": ".v1", + "AgentV1SettingsAgentContextContextMessagesItemFunctionCallsParams": ".v1", + "AgentV1SettingsAgentContextContextMessagesItemParams": ".v1", + "AgentV1SettingsAgentContextContextParams": ".v1", + "AgentV1SettingsAgentContextListen": ".v1", + "AgentV1SettingsAgentContextListenParams": ".v1", + "AgentV1SettingsAgentContextListenProvider": ".v1", + "AgentV1SettingsAgentContextListenProviderParams": ".v1", + "AgentV1SettingsAgentContextListenProviderV1": ".v1", + "AgentV1SettingsAgentContextListenProviderV1Params": ".v1", + "AgentV1SettingsAgentContextListenProviderV2": ".v1", + "AgentV1SettingsAgentContextListenProviderV2Params": ".v1", + "AgentV1SettingsAgentContextListenProvider_V1": ".v1", + "AgentV1SettingsAgentContextListenProvider_V1Params": ".v1", + "AgentV1SettingsAgentContextListenProvider_V2": ".v1", + "AgentV1SettingsAgentContextListenProvider_V2Params": ".v1", "AgentV1SettingsAgentContextParams": ".v1", - "AgentV1SettingsAgentListen": ".v1", - "AgentV1SettingsAgentListenParams": ".v1", - "AgentV1SettingsAgentListenProvider": ".v1", - "AgentV1SettingsAgentListenProviderParams": ".v1", - "AgentV1SettingsAgentListenProviderV1": ".v1", - "AgentV1SettingsAgentListenProviderV1Params": ".v1", - "AgentV1SettingsAgentListenProviderV2": ".v1", - "AgentV1SettingsAgentListenProviderV2Params": ".v1", - "AgentV1SettingsAgentListenProvider_V1": ".v1", - "AgentV1SettingsAgentListenProvider_V1Params": ".v1", - "AgentV1SettingsAgentListenProvider_V2": ".v1", - "AgentV1SettingsAgentListenProvider_V2Params": ".v1", + "AgentV1SettingsAgentContextSpeak": ".v1", + "AgentV1SettingsAgentContextSpeakParams": ".v1", + "AgentV1SettingsAgentContextThink": ".v1", + "AgentV1SettingsAgentContextThinkParams": ".v1", "AgentV1SettingsAgentParams": ".v1", - "AgentV1SettingsAgentSpeak": ".v1", - "AgentV1SettingsAgentSpeakParams": ".v1", - "AgentV1SettingsAgentThink": ".v1", - "AgentV1SettingsAgentThinkParams": ".v1", "AgentV1SettingsApplied": ".v1", "AgentV1SettingsAppliedParams": ".v1", "AgentV1SettingsAudio": ".v1", @@ -168,10 +180,18 @@ "AgentV1SettingsParams": ".v1", "AgentV1SpeakUpdated": ".v1", "AgentV1SpeakUpdatedParams": ".v1", + "AgentV1ThinkUpdated": ".v1", + "AgentV1ThinkUpdatedParams": ".v1", "AgentV1UpdatePrompt": ".v1", "AgentV1UpdatePromptParams": ".v1", "AgentV1UpdateSpeak": ".v1", "AgentV1UpdateSpeakParams": ".v1", + "AgentV1UpdateSpeakSpeak": ".v1", + "AgentV1UpdateSpeakSpeakParams": ".v1", + "AgentV1UpdateThink": ".v1", + "AgentV1UpdateThinkParams": ".v1", + "AgentV1UpdateThinkThink": ".v1", + "AgentV1UpdateThinkThinkParams": ".v1", "AgentV1UserStartedSpeaking": ".v1", "AgentV1UserStartedSpeakingParams": ".v1", "AgentV1Warning": ".v1", @@ -236,33 +256,35 @@ def __dir__(): "AgentV1Settings", "AgentV1SettingsAgent", "AgentV1SettingsAgentContext", - "AgentV1SettingsAgentContextMessagesItem", - "AgentV1SettingsAgentContextMessagesItemContent", - "AgentV1SettingsAgentContextMessagesItemContentParams", - "AgentV1SettingsAgentContextMessagesItemContentRole", - "AgentV1SettingsAgentContextMessagesItemFunctionCalls", - "AgentV1SettingsAgentContextMessagesItemFunctionCallsFunctionCallsItem", - "AgentV1SettingsAgentContextMessagesItemFunctionCallsFunctionCallsItemParams", - "AgentV1SettingsAgentContextMessagesItemFunctionCallsParams", - "AgentV1SettingsAgentContextMessagesItemParams", + "AgentV1SettingsAgentContextContext", + "AgentV1SettingsAgentContextContextMessagesItem", + "AgentV1SettingsAgentContextContextMessagesItemContent", + "AgentV1SettingsAgentContextContextMessagesItemContentParams", + "AgentV1SettingsAgentContextContextMessagesItemContentRole", + "AgentV1SettingsAgentContextContextMessagesItemFunctionCalls", + "AgentV1SettingsAgentContextContextMessagesItemFunctionCallsFunctionCallsItem", + "AgentV1SettingsAgentContextContextMessagesItemFunctionCallsFunctionCallsItemParams", + "AgentV1SettingsAgentContextContextMessagesItemFunctionCallsParams", + "AgentV1SettingsAgentContextContextMessagesItemParams", + "AgentV1SettingsAgentContextContextParams", + "AgentV1SettingsAgentContextListen", + "AgentV1SettingsAgentContextListenParams", + "AgentV1SettingsAgentContextListenProvider", + "AgentV1SettingsAgentContextListenProviderParams", + "AgentV1SettingsAgentContextListenProviderV1", + "AgentV1SettingsAgentContextListenProviderV1Params", + "AgentV1SettingsAgentContextListenProviderV2", + "AgentV1SettingsAgentContextListenProviderV2Params", + "AgentV1SettingsAgentContextListenProvider_V1", + "AgentV1SettingsAgentContextListenProvider_V1Params", + "AgentV1SettingsAgentContextListenProvider_V2", + "AgentV1SettingsAgentContextListenProvider_V2Params", "AgentV1SettingsAgentContextParams", - "AgentV1SettingsAgentListen", - "AgentV1SettingsAgentListenParams", - "AgentV1SettingsAgentListenProvider", - "AgentV1SettingsAgentListenProviderParams", - "AgentV1SettingsAgentListenProviderV1", - "AgentV1SettingsAgentListenProviderV1Params", - "AgentV1SettingsAgentListenProviderV2", - "AgentV1SettingsAgentListenProviderV2Params", - "AgentV1SettingsAgentListenProvider_V1", - "AgentV1SettingsAgentListenProvider_V1Params", - "AgentV1SettingsAgentListenProvider_V2", - "AgentV1SettingsAgentListenProvider_V2Params", + "AgentV1SettingsAgentContextSpeak", + "AgentV1SettingsAgentContextSpeakParams", + "AgentV1SettingsAgentContextThink", + "AgentV1SettingsAgentContextThinkParams", "AgentV1SettingsAgentParams", - "AgentV1SettingsAgentSpeak", - "AgentV1SettingsAgentSpeakParams", - "AgentV1SettingsAgentThink", - "AgentV1SettingsAgentThinkParams", "AgentV1SettingsApplied", "AgentV1SettingsAppliedParams", "AgentV1SettingsAudio", @@ -278,10 +300,18 @@ def __dir__(): "AgentV1SettingsParams", "AgentV1SpeakUpdated", "AgentV1SpeakUpdatedParams", + "AgentV1ThinkUpdated", + "AgentV1ThinkUpdatedParams", "AgentV1UpdatePrompt", "AgentV1UpdatePromptParams", "AgentV1UpdateSpeak", "AgentV1UpdateSpeakParams", + "AgentV1UpdateSpeakSpeak", + "AgentV1UpdateSpeakSpeakParams", + "AgentV1UpdateThink", + "AgentV1UpdateThinkParams", + "AgentV1UpdateThinkThink", + "AgentV1UpdateThinkThinkParams", "AgentV1UserStartedSpeaking", "AgentV1UserStartedSpeakingParams", "AgentV1Warning", diff --git a/src/deepgram/agent/v1/__init__.py b/src/deepgram/agent/v1/__init__.py index b7347cb8..2b89a501 100644 --- a/src/deepgram/agent/v1/__init__.py +++ b/src/deepgram/agent/v1/__init__.py @@ -25,19 +25,20 @@ AgentV1Settings, AgentV1SettingsAgent, AgentV1SettingsAgentContext, - AgentV1SettingsAgentContextMessagesItem, - AgentV1SettingsAgentContextMessagesItemContent, - AgentV1SettingsAgentContextMessagesItemContentRole, - AgentV1SettingsAgentContextMessagesItemFunctionCalls, - AgentV1SettingsAgentContextMessagesItemFunctionCallsFunctionCallsItem, - AgentV1SettingsAgentListen, - AgentV1SettingsAgentListenProvider, - AgentV1SettingsAgentListenProviderV1, - AgentV1SettingsAgentListenProviderV2, - AgentV1SettingsAgentListenProvider_V1, - AgentV1SettingsAgentListenProvider_V2, - AgentV1SettingsAgentSpeak, - AgentV1SettingsAgentThink, + AgentV1SettingsAgentContextContext, + AgentV1SettingsAgentContextContextMessagesItem, + AgentV1SettingsAgentContextContextMessagesItemContent, + AgentV1SettingsAgentContextContextMessagesItemContentRole, + AgentV1SettingsAgentContextContextMessagesItemFunctionCalls, + AgentV1SettingsAgentContextContextMessagesItemFunctionCallsFunctionCallsItem, + AgentV1SettingsAgentContextListen, + AgentV1SettingsAgentContextListenProvider, + AgentV1SettingsAgentContextListenProviderV1, + AgentV1SettingsAgentContextListenProviderV2, + AgentV1SettingsAgentContextListenProvider_V1, + AgentV1SettingsAgentContextListenProvider_V2, + AgentV1SettingsAgentContextSpeak, + AgentV1SettingsAgentContextThink, AgentV1SettingsApplied, AgentV1SettingsAudio, AgentV1SettingsAudioInput, @@ -46,8 +47,12 @@ AgentV1SettingsAudioOutputEncoding, AgentV1SettingsFlags, AgentV1SpeakUpdated, + AgentV1ThinkUpdated, AgentV1UpdatePrompt, AgentV1UpdateSpeak, + AgentV1UpdateSpeakSpeak, + AgentV1UpdateThink, + AgentV1UpdateThinkThink, AgentV1UserStartedSpeaking, AgentV1Warning, AgentV1Welcome, @@ -68,20 +73,21 @@ AgentV1PromptUpdatedParams, AgentV1ReceiveFunctionCallResponseParams, AgentV1SendFunctionCallResponseParams, - AgentV1SettingsAgentContextMessagesItemContentParams, - AgentV1SettingsAgentContextMessagesItemFunctionCallsFunctionCallsItemParams, - AgentV1SettingsAgentContextMessagesItemFunctionCallsParams, - AgentV1SettingsAgentContextMessagesItemParams, + AgentV1SettingsAgentContextContextMessagesItemContentParams, + AgentV1SettingsAgentContextContextMessagesItemFunctionCallsFunctionCallsItemParams, + AgentV1SettingsAgentContextContextMessagesItemFunctionCallsParams, + AgentV1SettingsAgentContextContextMessagesItemParams, + AgentV1SettingsAgentContextContextParams, + AgentV1SettingsAgentContextListenParams, + AgentV1SettingsAgentContextListenProviderParams, + AgentV1SettingsAgentContextListenProviderV1Params, + AgentV1SettingsAgentContextListenProviderV2Params, + AgentV1SettingsAgentContextListenProvider_V1Params, + AgentV1SettingsAgentContextListenProvider_V2Params, AgentV1SettingsAgentContextParams, - AgentV1SettingsAgentListenParams, - AgentV1SettingsAgentListenProviderParams, - AgentV1SettingsAgentListenProviderV1Params, - AgentV1SettingsAgentListenProviderV2Params, - AgentV1SettingsAgentListenProvider_V1Params, - AgentV1SettingsAgentListenProvider_V2Params, + AgentV1SettingsAgentContextSpeakParams, + AgentV1SettingsAgentContextThinkParams, AgentV1SettingsAgentParams, - AgentV1SettingsAgentSpeakParams, - AgentV1SettingsAgentThinkParams, AgentV1SettingsAppliedParams, AgentV1SettingsAudioInputParams, AgentV1SettingsAudioOutputParams, @@ -89,8 +95,12 @@ AgentV1SettingsFlagsParams, AgentV1SettingsParams, AgentV1SpeakUpdatedParams, + AgentV1ThinkUpdatedParams, AgentV1UpdatePromptParams, AgentV1UpdateSpeakParams, + AgentV1UpdateSpeakSpeakParams, + AgentV1UpdateThinkParams, + AgentV1UpdateThinkThinkParams, AgentV1UserStartedSpeakingParams, AgentV1WarningParams, AgentV1WelcomeParams, @@ -128,33 +138,35 @@ "AgentV1Settings": ".types", "AgentV1SettingsAgent": ".types", "AgentV1SettingsAgentContext": ".types", - "AgentV1SettingsAgentContextMessagesItem": ".types", - "AgentV1SettingsAgentContextMessagesItemContent": ".types", - "AgentV1SettingsAgentContextMessagesItemContentParams": ".requests", - "AgentV1SettingsAgentContextMessagesItemContentRole": ".types", - "AgentV1SettingsAgentContextMessagesItemFunctionCalls": ".types", - "AgentV1SettingsAgentContextMessagesItemFunctionCallsFunctionCallsItem": ".types", - "AgentV1SettingsAgentContextMessagesItemFunctionCallsFunctionCallsItemParams": ".requests", - "AgentV1SettingsAgentContextMessagesItemFunctionCallsParams": ".requests", - "AgentV1SettingsAgentContextMessagesItemParams": ".requests", + "AgentV1SettingsAgentContextContext": ".types", + "AgentV1SettingsAgentContextContextMessagesItem": ".types", + "AgentV1SettingsAgentContextContextMessagesItemContent": ".types", + "AgentV1SettingsAgentContextContextMessagesItemContentParams": ".requests", + "AgentV1SettingsAgentContextContextMessagesItemContentRole": ".types", + "AgentV1SettingsAgentContextContextMessagesItemFunctionCalls": ".types", + "AgentV1SettingsAgentContextContextMessagesItemFunctionCallsFunctionCallsItem": ".types", + "AgentV1SettingsAgentContextContextMessagesItemFunctionCallsFunctionCallsItemParams": ".requests", + "AgentV1SettingsAgentContextContextMessagesItemFunctionCallsParams": ".requests", + "AgentV1SettingsAgentContextContextMessagesItemParams": ".requests", + "AgentV1SettingsAgentContextContextParams": ".requests", + "AgentV1SettingsAgentContextListen": ".types", + "AgentV1SettingsAgentContextListenParams": ".requests", + "AgentV1SettingsAgentContextListenProvider": ".types", + "AgentV1SettingsAgentContextListenProviderParams": ".requests", + "AgentV1SettingsAgentContextListenProviderV1": ".types", + "AgentV1SettingsAgentContextListenProviderV1Params": ".requests", + "AgentV1SettingsAgentContextListenProviderV2": ".types", + "AgentV1SettingsAgentContextListenProviderV2Params": ".requests", + "AgentV1SettingsAgentContextListenProvider_V1": ".types", + "AgentV1SettingsAgentContextListenProvider_V1Params": ".requests", + "AgentV1SettingsAgentContextListenProvider_V2": ".types", + "AgentV1SettingsAgentContextListenProvider_V2Params": ".requests", "AgentV1SettingsAgentContextParams": ".requests", - "AgentV1SettingsAgentListen": ".types", - "AgentV1SettingsAgentListenParams": ".requests", - "AgentV1SettingsAgentListenProvider": ".types", - "AgentV1SettingsAgentListenProviderParams": ".requests", - "AgentV1SettingsAgentListenProviderV1": ".types", - "AgentV1SettingsAgentListenProviderV1Params": ".requests", - "AgentV1SettingsAgentListenProviderV2": ".types", - "AgentV1SettingsAgentListenProviderV2Params": ".requests", - "AgentV1SettingsAgentListenProvider_V1": ".types", - "AgentV1SettingsAgentListenProvider_V1Params": ".requests", - "AgentV1SettingsAgentListenProvider_V2": ".types", - "AgentV1SettingsAgentListenProvider_V2Params": ".requests", + "AgentV1SettingsAgentContextSpeak": ".types", + "AgentV1SettingsAgentContextSpeakParams": ".requests", + "AgentV1SettingsAgentContextThink": ".types", + "AgentV1SettingsAgentContextThinkParams": ".requests", "AgentV1SettingsAgentParams": ".requests", - "AgentV1SettingsAgentSpeak": ".types", - "AgentV1SettingsAgentSpeakParams": ".requests", - "AgentV1SettingsAgentThink": ".types", - "AgentV1SettingsAgentThinkParams": ".requests", "AgentV1SettingsApplied": ".types", "AgentV1SettingsAppliedParams": ".requests", "AgentV1SettingsAudio": ".types", @@ -170,10 +182,18 @@ "AgentV1SettingsParams": ".requests", "AgentV1SpeakUpdated": ".types", "AgentV1SpeakUpdatedParams": ".requests", + "AgentV1ThinkUpdated": ".types", + "AgentV1ThinkUpdatedParams": ".requests", "AgentV1UpdatePrompt": ".types", "AgentV1UpdatePromptParams": ".requests", "AgentV1UpdateSpeak": ".types", "AgentV1UpdateSpeakParams": ".requests", + "AgentV1UpdateSpeakSpeak": ".types", + "AgentV1UpdateSpeakSpeakParams": ".requests", + "AgentV1UpdateThink": ".types", + "AgentV1UpdateThinkParams": ".requests", + "AgentV1UpdateThinkThink": ".types", + "AgentV1UpdateThinkThinkParams": ".requests", "AgentV1UserStartedSpeaking": ".types", "AgentV1UserStartedSpeakingParams": ".requests", "AgentV1Warning": ".types", @@ -238,33 +258,35 @@ def __dir__(): "AgentV1Settings", "AgentV1SettingsAgent", "AgentV1SettingsAgentContext", - "AgentV1SettingsAgentContextMessagesItem", - "AgentV1SettingsAgentContextMessagesItemContent", - "AgentV1SettingsAgentContextMessagesItemContentParams", - "AgentV1SettingsAgentContextMessagesItemContentRole", - "AgentV1SettingsAgentContextMessagesItemFunctionCalls", - "AgentV1SettingsAgentContextMessagesItemFunctionCallsFunctionCallsItem", - "AgentV1SettingsAgentContextMessagesItemFunctionCallsFunctionCallsItemParams", - "AgentV1SettingsAgentContextMessagesItemFunctionCallsParams", - "AgentV1SettingsAgentContextMessagesItemParams", + "AgentV1SettingsAgentContextContext", + "AgentV1SettingsAgentContextContextMessagesItem", + "AgentV1SettingsAgentContextContextMessagesItemContent", + "AgentV1SettingsAgentContextContextMessagesItemContentParams", + "AgentV1SettingsAgentContextContextMessagesItemContentRole", + "AgentV1SettingsAgentContextContextMessagesItemFunctionCalls", + "AgentV1SettingsAgentContextContextMessagesItemFunctionCallsFunctionCallsItem", + "AgentV1SettingsAgentContextContextMessagesItemFunctionCallsFunctionCallsItemParams", + "AgentV1SettingsAgentContextContextMessagesItemFunctionCallsParams", + "AgentV1SettingsAgentContextContextMessagesItemParams", + "AgentV1SettingsAgentContextContextParams", + "AgentV1SettingsAgentContextListen", + "AgentV1SettingsAgentContextListenParams", + "AgentV1SettingsAgentContextListenProvider", + "AgentV1SettingsAgentContextListenProviderParams", + "AgentV1SettingsAgentContextListenProviderV1", + "AgentV1SettingsAgentContextListenProviderV1Params", + "AgentV1SettingsAgentContextListenProviderV2", + "AgentV1SettingsAgentContextListenProviderV2Params", + "AgentV1SettingsAgentContextListenProvider_V1", + "AgentV1SettingsAgentContextListenProvider_V1Params", + "AgentV1SettingsAgentContextListenProvider_V2", + "AgentV1SettingsAgentContextListenProvider_V2Params", "AgentV1SettingsAgentContextParams", - "AgentV1SettingsAgentListen", - "AgentV1SettingsAgentListenParams", - "AgentV1SettingsAgentListenProvider", - "AgentV1SettingsAgentListenProviderParams", - "AgentV1SettingsAgentListenProviderV1", - "AgentV1SettingsAgentListenProviderV1Params", - "AgentV1SettingsAgentListenProviderV2", - "AgentV1SettingsAgentListenProviderV2Params", - "AgentV1SettingsAgentListenProvider_V1", - "AgentV1SettingsAgentListenProvider_V1Params", - "AgentV1SettingsAgentListenProvider_V2", - "AgentV1SettingsAgentListenProvider_V2Params", + "AgentV1SettingsAgentContextSpeak", + "AgentV1SettingsAgentContextSpeakParams", + "AgentV1SettingsAgentContextThink", + "AgentV1SettingsAgentContextThinkParams", "AgentV1SettingsAgentParams", - "AgentV1SettingsAgentSpeak", - "AgentV1SettingsAgentSpeakParams", - "AgentV1SettingsAgentThink", - "AgentV1SettingsAgentThinkParams", "AgentV1SettingsApplied", "AgentV1SettingsAppliedParams", "AgentV1SettingsAudio", @@ -280,10 +302,18 @@ def __dir__(): "AgentV1SettingsParams", "AgentV1SpeakUpdated", "AgentV1SpeakUpdatedParams", + "AgentV1ThinkUpdated", + "AgentV1ThinkUpdatedParams", "AgentV1UpdatePrompt", "AgentV1UpdatePromptParams", "AgentV1UpdateSpeak", "AgentV1UpdateSpeakParams", + "AgentV1UpdateSpeakSpeak", + "AgentV1UpdateSpeakSpeakParams", + "AgentV1UpdateThink", + "AgentV1UpdateThinkParams", + "AgentV1UpdateThinkThink", + "AgentV1UpdateThinkThinkParams", "AgentV1UserStartedSpeaking", "AgentV1UserStartedSpeakingParams", "AgentV1Warning", diff --git a/src/deepgram/agent/v1/client.py b/src/deepgram/agent/v1/client.py index 6f7d6514..e1a53d78 100644 --- a/src/deepgram/agent/v1/client.py +++ b/src/deepgram/agent/v1/client.py @@ -53,9 +53,9 @@ def connect( Parameters ---------- authorization : typing.Optional[str] - Use your API key for authentication, or alternatively generate a [temporary token](/guides/fundamentals/token-based-authentication) and pass it via the `token` query parameter. + Use your API key or a [temporary token](/guides/fundamentals/token-based-authentication) for authentication via the `Authorization` header. In client-side environments where custom headers are not supported, use the [`Sec-WebSocket-Protocol`](/guides/deep-dives/using-the-sec-websocket-protocol) header instead. - **Example:** `token %DEEPGRAM_API_KEY%` or `bearer %DEEPGRAM_TOKEN%` + **Example:** `Authorization: Token %DEEPGRAM_API_KEY%` or `Authorization: Bearer %DEEPGRAM_TOKEN%` request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -138,9 +138,9 @@ async def connect( Parameters ---------- authorization : typing.Optional[str] - Use your API key for authentication, or alternatively generate a [temporary token](/guides/fundamentals/token-based-authentication) and pass it via the `token` query parameter. + Use your API key or a [temporary token](/guides/fundamentals/token-based-authentication) for authentication via the `Authorization` header. In client-side environments where custom headers are not supported, use the [`Sec-WebSocket-Protocol`](/guides/deep-dives/using-the-sec-websocket-protocol) header instead. - **Example:** `token %DEEPGRAM_API_KEY%` or `bearer %DEEPGRAM_TOKEN%` + **Example:** `Authorization: Token %DEEPGRAM_API_KEY%` or `Authorization: Bearer %DEEPGRAM_TOKEN%` request_options : typing.Optional[RequestOptions] Request-specific configuration. diff --git a/src/deepgram/agent/v1/raw_client.py b/src/deepgram/agent/v1/raw_client.py index ab89d67e..10f2330c 100644 --- a/src/deepgram/agent/v1/raw_client.py +++ b/src/deepgram/agent/v1/raw_client.py @@ -34,9 +34,9 @@ def connect( Parameters ---------- authorization : typing.Optional[str] - Use your API key for authentication, or alternatively generate a [temporary token](/guides/fundamentals/token-based-authentication) and pass it via the `token` query parameter. + Use your API key or a [temporary token](/guides/fundamentals/token-based-authentication) for authentication via the `Authorization` header. In client-side environments where custom headers are not supported, use the [`Sec-WebSocket-Protocol`](/guides/deep-dives/using-the-sec-websocket-protocol) header instead. - **Example:** `token %DEEPGRAM_API_KEY%` or `bearer %DEEPGRAM_TOKEN%` + **Example:** `Authorization: Token %DEEPGRAM_API_KEY%` or `Authorization: Bearer %DEEPGRAM_TOKEN%` request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -98,9 +98,9 @@ async def connect( Parameters ---------- authorization : typing.Optional[str] - Use your API key for authentication, or alternatively generate a [temporary token](/guides/fundamentals/token-based-authentication) and pass it via the `token` query parameter. + Use your API key or a [temporary token](/guides/fundamentals/token-based-authentication) for authentication via the `Authorization` header. In client-side environments where custom headers are not supported, use the [`Sec-WebSocket-Protocol`](/guides/deep-dives/using-the-sec-websocket-protocol) header instead. - **Example:** `token %DEEPGRAM_API_KEY%` or `bearer %DEEPGRAM_TOKEN%` + **Example:** `Authorization: Token %DEEPGRAM_API_KEY%` or `Authorization: Bearer %DEEPGRAM_TOKEN%` request_options : typing.Optional[RequestOptions] Request-specific configuration. diff --git a/src/deepgram/agent/v1/requests/__init__.py b/src/deepgram/agent/v1/requests/__init__.py index 9708fd24..9e994976 100644 --- a/src/deepgram/agent/v1/requests/__init__.py +++ b/src/deepgram/agent/v1/requests/__init__.py @@ -23,34 +23,41 @@ from .agent_v1settings import AgentV1SettingsParams from .agent_v1settings_agent import AgentV1SettingsAgentParams from .agent_v1settings_agent_context import AgentV1SettingsAgentContextParams - from .agent_v1settings_agent_context_messages_item import AgentV1SettingsAgentContextMessagesItemParams - from .agent_v1settings_agent_context_messages_item_content import ( - AgentV1SettingsAgentContextMessagesItemContentParams, + from .agent_v1settings_agent_context_context import AgentV1SettingsAgentContextContextParams + from .agent_v1settings_agent_context_context_messages_item import ( + AgentV1SettingsAgentContextContextMessagesItemParams, ) - from .agent_v1settings_agent_context_messages_item_function_calls import ( - AgentV1SettingsAgentContextMessagesItemFunctionCallsParams, + from .agent_v1settings_agent_context_context_messages_item_content import ( + AgentV1SettingsAgentContextContextMessagesItemContentParams, ) - from .agent_v1settings_agent_context_messages_item_function_calls_function_calls_item import ( - AgentV1SettingsAgentContextMessagesItemFunctionCallsFunctionCallsItemParams, + from .agent_v1settings_agent_context_context_messages_item_function_calls import ( + AgentV1SettingsAgentContextContextMessagesItemFunctionCallsParams, ) - from .agent_v1settings_agent_listen import AgentV1SettingsAgentListenParams - from .agent_v1settings_agent_listen_provider import ( - AgentV1SettingsAgentListenProviderParams, - AgentV1SettingsAgentListenProvider_V1Params, - AgentV1SettingsAgentListenProvider_V2Params, + from .agent_v1settings_agent_context_context_messages_item_function_calls_function_calls_item import ( + AgentV1SettingsAgentContextContextMessagesItemFunctionCallsFunctionCallsItemParams, ) - from .agent_v1settings_agent_listen_provider_v1 import AgentV1SettingsAgentListenProviderV1Params - from .agent_v1settings_agent_listen_provider_v2 import AgentV1SettingsAgentListenProviderV2Params - from .agent_v1settings_agent_speak import AgentV1SettingsAgentSpeakParams - from .agent_v1settings_agent_think import AgentV1SettingsAgentThinkParams + from .agent_v1settings_agent_context_listen import AgentV1SettingsAgentContextListenParams + from .agent_v1settings_agent_context_listen_provider import ( + AgentV1SettingsAgentContextListenProviderParams, + AgentV1SettingsAgentContextListenProvider_V1Params, + AgentV1SettingsAgentContextListenProvider_V2Params, + ) + from .agent_v1settings_agent_context_listen_provider_v1 import AgentV1SettingsAgentContextListenProviderV1Params + from .agent_v1settings_agent_context_listen_provider_v2 import AgentV1SettingsAgentContextListenProviderV2Params + from .agent_v1settings_agent_context_speak import AgentV1SettingsAgentContextSpeakParams + from .agent_v1settings_agent_context_think import AgentV1SettingsAgentContextThinkParams from .agent_v1settings_applied import AgentV1SettingsAppliedParams from .agent_v1settings_audio import AgentV1SettingsAudioParams from .agent_v1settings_audio_input import AgentV1SettingsAudioInputParams from .agent_v1settings_audio_output import AgentV1SettingsAudioOutputParams from .agent_v1settings_flags import AgentV1SettingsFlagsParams from .agent_v1speak_updated import AgentV1SpeakUpdatedParams + from .agent_v1think_updated import AgentV1ThinkUpdatedParams from .agent_v1update_prompt import AgentV1UpdatePromptParams from .agent_v1update_speak import AgentV1UpdateSpeakParams + from .agent_v1update_speak_speak import AgentV1UpdateSpeakSpeakParams + from .agent_v1update_think import AgentV1UpdateThinkParams + from .agent_v1update_think_think import AgentV1UpdateThinkThinkParams from .agent_v1user_started_speaking import AgentV1UserStartedSpeakingParams from .agent_v1warning import AgentV1WarningParams from .agent_v1welcome import AgentV1WelcomeParams @@ -69,20 +76,21 @@ "AgentV1PromptUpdatedParams": ".agent_v1prompt_updated", "AgentV1ReceiveFunctionCallResponseParams": ".agent_v1receive_function_call_response", "AgentV1SendFunctionCallResponseParams": ".agent_v1send_function_call_response", - "AgentV1SettingsAgentContextMessagesItemContentParams": ".agent_v1settings_agent_context_messages_item_content", - "AgentV1SettingsAgentContextMessagesItemFunctionCallsFunctionCallsItemParams": ".agent_v1settings_agent_context_messages_item_function_calls_function_calls_item", - "AgentV1SettingsAgentContextMessagesItemFunctionCallsParams": ".agent_v1settings_agent_context_messages_item_function_calls", - "AgentV1SettingsAgentContextMessagesItemParams": ".agent_v1settings_agent_context_messages_item", + "AgentV1SettingsAgentContextContextMessagesItemContentParams": ".agent_v1settings_agent_context_context_messages_item_content", + "AgentV1SettingsAgentContextContextMessagesItemFunctionCallsFunctionCallsItemParams": ".agent_v1settings_agent_context_context_messages_item_function_calls_function_calls_item", + "AgentV1SettingsAgentContextContextMessagesItemFunctionCallsParams": ".agent_v1settings_agent_context_context_messages_item_function_calls", + "AgentV1SettingsAgentContextContextMessagesItemParams": ".agent_v1settings_agent_context_context_messages_item", + "AgentV1SettingsAgentContextContextParams": ".agent_v1settings_agent_context_context", + "AgentV1SettingsAgentContextListenParams": ".agent_v1settings_agent_context_listen", + "AgentV1SettingsAgentContextListenProviderParams": ".agent_v1settings_agent_context_listen_provider", + "AgentV1SettingsAgentContextListenProviderV1Params": ".agent_v1settings_agent_context_listen_provider_v1", + "AgentV1SettingsAgentContextListenProviderV2Params": ".agent_v1settings_agent_context_listen_provider_v2", + "AgentV1SettingsAgentContextListenProvider_V1Params": ".agent_v1settings_agent_context_listen_provider", + "AgentV1SettingsAgentContextListenProvider_V2Params": ".agent_v1settings_agent_context_listen_provider", "AgentV1SettingsAgentContextParams": ".agent_v1settings_agent_context", - "AgentV1SettingsAgentListenParams": ".agent_v1settings_agent_listen", - "AgentV1SettingsAgentListenProviderParams": ".agent_v1settings_agent_listen_provider", - "AgentV1SettingsAgentListenProviderV1Params": ".agent_v1settings_agent_listen_provider_v1", - "AgentV1SettingsAgentListenProviderV2Params": ".agent_v1settings_agent_listen_provider_v2", - "AgentV1SettingsAgentListenProvider_V1Params": ".agent_v1settings_agent_listen_provider", - "AgentV1SettingsAgentListenProvider_V2Params": ".agent_v1settings_agent_listen_provider", + "AgentV1SettingsAgentContextSpeakParams": ".agent_v1settings_agent_context_speak", + "AgentV1SettingsAgentContextThinkParams": ".agent_v1settings_agent_context_think", "AgentV1SettingsAgentParams": ".agent_v1settings_agent", - "AgentV1SettingsAgentSpeakParams": ".agent_v1settings_agent_speak", - "AgentV1SettingsAgentThinkParams": ".agent_v1settings_agent_think", "AgentV1SettingsAppliedParams": ".agent_v1settings_applied", "AgentV1SettingsAudioInputParams": ".agent_v1settings_audio_input", "AgentV1SettingsAudioOutputParams": ".agent_v1settings_audio_output", @@ -90,8 +98,12 @@ "AgentV1SettingsFlagsParams": ".agent_v1settings_flags", "AgentV1SettingsParams": ".agent_v1settings", "AgentV1SpeakUpdatedParams": ".agent_v1speak_updated", + "AgentV1ThinkUpdatedParams": ".agent_v1think_updated", "AgentV1UpdatePromptParams": ".agent_v1update_prompt", "AgentV1UpdateSpeakParams": ".agent_v1update_speak", + "AgentV1UpdateSpeakSpeakParams": ".agent_v1update_speak_speak", + "AgentV1UpdateThinkParams": ".agent_v1update_think", + "AgentV1UpdateThinkThinkParams": ".agent_v1update_think_think", "AgentV1UserStartedSpeakingParams": ".agent_v1user_started_speaking", "AgentV1WarningParams": ".agent_v1warning", "AgentV1WelcomeParams": ".agent_v1welcome", @@ -134,20 +146,21 @@ def __dir__(): "AgentV1PromptUpdatedParams", "AgentV1ReceiveFunctionCallResponseParams", "AgentV1SendFunctionCallResponseParams", - "AgentV1SettingsAgentContextMessagesItemContentParams", - "AgentV1SettingsAgentContextMessagesItemFunctionCallsFunctionCallsItemParams", - "AgentV1SettingsAgentContextMessagesItemFunctionCallsParams", - "AgentV1SettingsAgentContextMessagesItemParams", + "AgentV1SettingsAgentContextContextMessagesItemContentParams", + "AgentV1SettingsAgentContextContextMessagesItemFunctionCallsFunctionCallsItemParams", + "AgentV1SettingsAgentContextContextMessagesItemFunctionCallsParams", + "AgentV1SettingsAgentContextContextMessagesItemParams", + "AgentV1SettingsAgentContextContextParams", + "AgentV1SettingsAgentContextListenParams", + "AgentV1SettingsAgentContextListenProviderParams", + "AgentV1SettingsAgentContextListenProviderV1Params", + "AgentV1SettingsAgentContextListenProviderV2Params", + "AgentV1SettingsAgentContextListenProvider_V1Params", + "AgentV1SettingsAgentContextListenProvider_V2Params", "AgentV1SettingsAgentContextParams", - "AgentV1SettingsAgentListenParams", - "AgentV1SettingsAgentListenProviderParams", - "AgentV1SettingsAgentListenProviderV1Params", - "AgentV1SettingsAgentListenProviderV2Params", - "AgentV1SettingsAgentListenProvider_V1Params", - "AgentV1SettingsAgentListenProvider_V2Params", + "AgentV1SettingsAgentContextSpeakParams", + "AgentV1SettingsAgentContextThinkParams", "AgentV1SettingsAgentParams", - "AgentV1SettingsAgentSpeakParams", - "AgentV1SettingsAgentThinkParams", "AgentV1SettingsAppliedParams", "AgentV1SettingsAudioInputParams", "AgentV1SettingsAudioOutputParams", @@ -155,8 +168,12 @@ def __dir__(): "AgentV1SettingsFlagsParams", "AgentV1SettingsParams", "AgentV1SpeakUpdatedParams", + "AgentV1ThinkUpdatedParams", "AgentV1UpdatePromptParams", "AgentV1UpdateSpeakParams", + "AgentV1UpdateSpeakSpeakParams", + "AgentV1UpdateThinkParams", + "AgentV1UpdateThinkThinkParams", "AgentV1UserStartedSpeakingParams", "AgentV1WarningParams", "AgentV1WelcomeParams", diff --git a/src/deepgram/agent/v1/requests/agent_v1settings_agent.py b/src/deepgram/agent/v1/requests/agent_v1settings_agent.py index 01bffc21..0da4b0f3 100644 --- a/src/deepgram/agent/v1/requests/agent_v1settings_agent.py +++ b/src/deepgram/agent/v1/requests/agent_v1settings_agent.py @@ -1,27 +1,7 @@ # This file was auto-generated by Fern from our API Definition. -import typing_extensions -from .agent_v1settings_agent_context import AgentV1SettingsAgentContextParams -from .agent_v1settings_agent_listen import AgentV1SettingsAgentListenParams -from .agent_v1settings_agent_speak import AgentV1SettingsAgentSpeakParams -from .agent_v1settings_agent_think import AgentV1SettingsAgentThinkParams - +import typing -class AgentV1SettingsAgentParams(typing_extensions.TypedDict): - language: typing_extensions.NotRequired[str] - """ - Deprecated. Use `listen.provider.language` and `speak.provider.language` fields instead. - """ - - context: typing_extensions.NotRequired[AgentV1SettingsAgentContextParams] - """ - Conversation context including the history of messages and function calls - """ +from .agent_v1settings_agent_context import AgentV1SettingsAgentContextParams - listen: typing_extensions.NotRequired[AgentV1SettingsAgentListenParams] - think: typing_extensions.NotRequired[AgentV1SettingsAgentThinkParams] - speak: typing_extensions.NotRequired[AgentV1SettingsAgentSpeakParams] - greeting: typing_extensions.NotRequired[str] - """ - Optional message that agent will speak at the start - """ +AgentV1SettingsAgentParams = typing.Union[AgentV1SettingsAgentContextParams, str] diff --git a/src/deepgram/agent/v1/requests/agent_v1settings_agent_context.py b/src/deepgram/agent/v1/requests/agent_v1settings_agent_context.py index a27f848a..c52f05af 100644 --- a/src/deepgram/agent/v1/requests/agent_v1settings_agent_context.py +++ b/src/deepgram/agent/v1/requests/agent_v1settings_agent_context.py @@ -1,17 +1,27 @@ # This file was auto-generated by Fern from our API Definition. -import typing - import typing_extensions -from .agent_v1settings_agent_context_messages_item import AgentV1SettingsAgentContextMessagesItemParams +from .agent_v1settings_agent_context_context import AgentV1SettingsAgentContextContextParams +from .agent_v1settings_agent_context_listen import AgentV1SettingsAgentContextListenParams +from .agent_v1settings_agent_context_speak import AgentV1SettingsAgentContextSpeakParams +from .agent_v1settings_agent_context_think import AgentV1SettingsAgentContextThinkParams class AgentV1SettingsAgentContextParams(typing_extensions.TypedDict): + language: typing_extensions.NotRequired[str] + """ + Deprecated. Use `listen.provider.language` and `speak.provider.language` fields instead. + """ + + context: typing_extensions.NotRequired[AgentV1SettingsAgentContextContextParams] """ Conversation context including the history of messages and function calls """ - messages: typing_extensions.NotRequired[typing.Sequence[AgentV1SettingsAgentContextMessagesItemParams]] + listen: typing_extensions.NotRequired[AgentV1SettingsAgentContextListenParams] + think: typing_extensions.NotRequired[AgentV1SettingsAgentContextThinkParams] + speak: typing_extensions.NotRequired[AgentV1SettingsAgentContextSpeakParams] + greeting: typing_extensions.NotRequired[str] """ - Conversation history as a list of messages and function calls + Optional message that agent will speak at the start """ diff --git a/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_context.py b/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_context.py new file mode 100644 index 00000000..289d31d8 --- /dev/null +++ b/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_context.py @@ -0,0 +1,17 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import typing_extensions +from .agent_v1settings_agent_context_context_messages_item import AgentV1SettingsAgentContextContextMessagesItemParams + + +class AgentV1SettingsAgentContextContextParams(typing_extensions.TypedDict): + """ + Conversation context including the history of messages and function calls + """ + + messages: typing_extensions.NotRequired[typing.Sequence[AgentV1SettingsAgentContextContextMessagesItemParams]] + """ + Conversation history as a list of messages and function calls + """ diff --git a/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_context_messages_item.py b/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_context_messages_item.py new file mode 100644 index 00000000..59ba5cfd --- /dev/null +++ b/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_context_messages_item.py @@ -0,0 +1,15 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +from .agent_v1settings_agent_context_context_messages_item_content import ( + AgentV1SettingsAgentContextContextMessagesItemContentParams, +) +from .agent_v1settings_agent_context_context_messages_item_function_calls import ( + AgentV1SettingsAgentContextContextMessagesItemFunctionCallsParams, +) + +AgentV1SettingsAgentContextContextMessagesItemParams = typing.Union[ + AgentV1SettingsAgentContextContextMessagesItemContentParams, + AgentV1SettingsAgentContextContextMessagesItemFunctionCallsParams, +] diff --git a/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_messages_item_content.py b/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_context_messages_item_content.py similarity index 56% rename from src/deepgram/agent/v1/requests/agent_v1settings_agent_context_messages_item_content.py rename to src/deepgram/agent/v1/requests/agent_v1settings_agent_context_context_messages_item_content.py index 1a541ffc..6e159444 100644 --- a/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_messages_item_content.py +++ b/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_context_messages_item_content.py @@ -3,12 +3,12 @@ import typing import typing_extensions -from ..types.agent_v1settings_agent_context_messages_item_content_role import ( - AgentV1SettingsAgentContextMessagesItemContentRole, +from ..types.agent_v1settings_agent_context_context_messages_item_content_role import ( + AgentV1SettingsAgentContextContextMessagesItemContentRole, ) -class AgentV1SettingsAgentContextMessagesItemContentParams(typing_extensions.TypedDict): +class AgentV1SettingsAgentContextContextMessagesItemContentParams(typing_extensions.TypedDict): """ Conversation text as part of the conversation history """ @@ -18,7 +18,7 @@ class AgentV1SettingsAgentContextMessagesItemContentParams(typing_extensions.Typ Message type identifier for conversation text """ - role: AgentV1SettingsAgentContextMessagesItemContentRole + role: AgentV1SettingsAgentContextContextMessagesItemContentRole """ Identifies who spoke the statement """ diff --git a/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_context_messages_item_function_calls.py b/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_context_messages_item_function_calls.py new file mode 100644 index 00000000..ad2c8c62 --- /dev/null +++ b/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_context_messages_item_function_calls.py @@ -0,0 +1,20 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import typing_extensions +from .agent_v1settings_agent_context_context_messages_item_function_calls_function_calls_item import ( + AgentV1SettingsAgentContextContextMessagesItemFunctionCallsFunctionCallsItemParams, +) + + +class AgentV1SettingsAgentContextContextMessagesItemFunctionCallsParams(typing_extensions.TypedDict): + """ + Client-side or server-side function call request and response as part of the conversation history + """ + + type: typing.Literal["History"] + function_calls: typing.Sequence[AgentV1SettingsAgentContextContextMessagesItemFunctionCallsFunctionCallsItemParams] + """ + List of function call objects + """ diff --git a/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_messages_item_function_calls_function_calls_item.py b/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_context_messages_item_function_calls_function_calls_item.py similarity index 79% rename from src/deepgram/agent/v1/requests/agent_v1settings_agent_context_messages_item_function_calls_function_calls_item.py rename to src/deepgram/agent/v1/requests/agent_v1settings_agent_context_context_messages_item_function_calls_function_calls_item.py index 9efeb23e..ffac401b 100644 --- a/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_messages_item_function_calls_function_calls_item.py +++ b/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_context_messages_item_function_calls_function_calls_item.py @@ -3,7 +3,7 @@ import typing_extensions -class AgentV1SettingsAgentContextMessagesItemFunctionCallsFunctionCallsItemParams(typing_extensions.TypedDict): +class AgentV1SettingsAgentContextContextMessagesItemFunctionCallsFunctionCallsItemParams(typing_extensions.TypedDict): id: str """ Unique identifier for the function call diff --git a/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_listen.py b/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_listen.py new file mode 100644 index 00000000..7bd4c2fa --- /dev/null +++ b/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_listen.py @@ -0,0 +1,8 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing_extensions +from .agent_v1settings_agent_context_listen_provider import AgentV1SettingsAgentContextListenProviderParams + + +class AgentV1SettingsAgentContextListenParams(typing_extensions.TypedDict): + provider: typing_extensions.NotRequired[AgentV1SettingsAgentContextListenProviderParams] diff --git a/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_listen_provider.py b/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_listen_provider.py new file mode 100644 index 00000000..8b016cd6 --- /dev/null +++ b/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_listen_provider.py @@ -0,0 +1,32 @@ +# This file was auto-generated by Fern from our API Definition. + +from __future__ import annotations + +import typing + +import typing_extensions +from ....types.listen_v2eager_eot_threshold import ListenV2EagerEotThreshold +from ....types.listen_v2eot_threshold import ListenV2EotThreshold + + +class AgentV1SettingsAgentContextListenProvider_V1Params(typing_extensions.TypedDict): + version: typing.Literal["v1"] + type: typing.Literal["deepgram"] + model: typing_extensions.NotRequired[str] + language: typing_extensions.NotRequired[str] + keyterms: typing_extensions.NotRequired[typing.Sequence[str]] + smart_format: typing_extensions.NotRequired[bool] + + +class AgentV1SettingsAgentContextListenProvider_V2Params(typing_extensions.TypedDict): + version: typing.Literal["v2"] + type: typing.Literal["deepgram"] + model: str + keyterms: typing_extensions.NotRequired[typing.Sequence[str]] + eot_threshold: typing_extensions.NotRequired[ListenV2EotThreshold] + eager_eot_threshold: typing_extensions.NotRequired[ListenV2EagerEotThreshold] + + +AgentV1SettingsAgentContextListenProviderParams = typing.Union[ + AgentV1SettingsAgentContextListenProvider_V1Params, AgentV1SettingsAgentContextListenProvider_V2Params +] diff --git a/src/deepgram/agent/v1/requests/agent_v1settings_agent_listen_provider_v1.py b/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_listen_provider_v1.py similarity index 82% rename from src/deepgram/agent/v1/requests/agent_v1settings_agent_listen_provider_v1.py rename to src/deepgram/agent/v1/requests/agent_v1settings_agent_context_listen_provider_v1.py index 0fd4e61d..2f439d25 100644 --- a/src/deepgram/agent/v1/requests/agent_v1settings_agent_listen_provider_v1.py +++ b/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_listen_provider_v1.py @@ -5,7 +5,7 @@ import typing_extensions -class AgentV1SettingsAgentListenProviderV1Params(typing_extensions.TypedDict): +class AgentV1SettingsAgentContextListenProviderV1Params(typing_extensions.TypedDict): type: typing.Literal["deepgram"] """ Provider type for speech-to-text @@ -22,10 +22,6 @@ class AgentV1SettingsAgentListenProviderV1Params(typing_extensions.TypedDict): """ keyterms: typing_extensions.NotRequired[typing.Sequence[str]] - """ - Prompt keyterm recognition to improve Keyword Recall Rate - """ - smart_format: typing_extensions.NotRequired[bool] """ Applies smart formatting to improve transcript readability diff --git a/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_listen_provider_v2.py b/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_listen_provider_v2.py new file mode 100644 index 00000000..3328ab9d --- /dev/null +++ b/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_listen_provider_v2.py @@ -0,0 +1,23 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import typing_extensions +from ....types.listen_v2eager_eot_threshold import ListenV2EagerEotThreshold +from ....types.listen_v2eot_threshold import ListenV2EotThreshold + + +class AgentV1SettingsAgentContextListenProviderV2Params(typing_extensions.TypedDict): + type: typing.Literal["deepgram"] + """ + Provider type for speech-to-text + """ + + model: str + """ + Model to use for speech to text using the V2 API (e.g. flux-general-en) + """ + + keyterms: typing_extensions.NotRequired[typing.Sequence[str]] + eot_threshold: typing_extensions.NotRequired[ListenV2EotThreshold] + eager_eot_threshold: typing_extensions.NotRequired[ListenV2EagerEotThreshold] diff --git a/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_messages_item.py b/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_messages_item.py deleted file mode 100644 index cf31d658..00000000 --- a/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_messages_item.py +++ /dev/null @@ -1,12 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .agent_v1settings_agent_context_messages_item_content import AgentV1SettingsAgentContextMessagesItemContentParams -from .agent_v1settings_agent_context_messages_item_function_calls import ( - AgentV1SettingsAgentContextMessagesItemFunctionCallsParams, -) - -AgentV1SettingsAgentContextMessagesItemParams = typing.Union[ - AgentV1SettingsAgentContextMessagesItemContentParams, AgentV1SettingsAgentContextMessagesItemFunctionCallsParams -] diff --git a/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_messages_item_function_calls.py b/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_messages_item_function_calls.py deleted file mode 100644 index cdc5733c..00000000 --- a/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_messages_item_function_calls.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import typing_extensions -from .agent_v1settings_agent_context_messages_item_function_calls_function_calls_item import ( - AgentV1SettingsAgentContextMessagesItemFunctionCallsFunctionCallsItemParams, -) - - -class AgentV1SettingsAgentContextMessagesItemFunctionCallsParams(typing_extensions.TypedDict): - """ - Client-side or server-side function call request and response as part of the conversation history - """ - - type: typing.Literal["History"] - function_calls: typing.Sequence[AgentV1SettingsAgentContextMessagesItemFunctionCallsFunctionCallsItemParams] - """ - List of function call objects - """ diff --git a/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_speak.py b/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_speak.py new file mode 100644 index 00000000..c44bdc7e --- /dev/null +++ b/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_speak.py @@ -0,0 +1,7 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +from ....requests.speak_settings_v1 import SpeakSettingsV1Params + +AgentV1SettingsAgentContextSpeakParams = typing.Union[SpeakSettingsV1Params, typing.Sequence[SpeakSettingsV1Params]] diff --git a/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_think.py b/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_think.py new file mode 100644 index 00000000..a7385cee --- /dev/null +++ b/src/deepgram/agent/v1/requests/agent_v1settings_agent_context_think.py @@ -0,0 +1,7 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +from ....requests.think_settings_v1 import ThinkSettingsV1Params + +AgentV1SettingsAgentContextThinkParams = typing.Union[ThinkSettingsV1Params, typing.Sequence[ThinkSettingsV1Params]] diff --git a/src/deepgram/agent/v1/requests/agent_v1settings_agent_listen.py b/src/deepgram/agent/v1/requests/agent_v1settings_agent_listen.py deleted file mode 100644 index 3eb2aa41..00000000 --- a/src/deepgram/agent/v1/requests/agent_v1settings_agent_listen.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing_extensions -from .agent_v1settings_agent_listen_provider import AgentV1SettingsAgentListenProviderParams - - -class AgentV1SettingsAgentListenParams(typing_extensions.TypedDict): - provider: typing_extensions.NotRequired[AgentV1SettingsAgentListenProviderParams] diff --git a/src/deepgram/agent/v1/requests/agent_v1settings_agent_listen_provider.py b/src/deepgram/agent/v1/requests/agent_v1settings_agent_listen_provider.py deleted file mode 100644 index 1b5b47e8..00000000 --- a/src/deepgram/agent/v1/requests/agent_v1settings_agent_listen_provider.py +++ /dev/null @@ -1,28 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -import typing - -import typing_extensions - - -class AgentV1SettingsAgentListenProvider_V1Params(typing_extensions.TypedDict): - version: typing.Literal["v1"] - type: typing.Literal["deepgram"] - model: typing_extensions.NotRequired[str] - language: typing_extensions.NotRequired[str] - keyterms: typing_extensions.NotRequired[typing.Sequence[str]] - smart_format: typing_extensions.NotRequired[bool] - - -class AgentV1SettingsAgentListenProvider_V2Params(typing_extensions.TypedDict): - version: typing.Literal["v2"] - type: typing.Literal["deepgram"] - model: str - keyterms: typing_extensions.NotRequired[typing.Sequence[str]] - - -AgentV1SettingsAgentListenProviderParams = typing.Union[ - AgentV1SettingsAgentListenProvider_V1Params, AgentV1SettingsAgentListenProvider_V2Params -] diff --git a/src/deepgram/agent/v1/requests/agent_v1settings_agent_listen_provider_v2.py b/src/deepgram/agent/v1/requests/agent_v1settings_agent_listen_provider_v2.py deleted file mode 100644 index 0e0e5c5a..00000000 --- a/src/deepgram/agent/v1/requests/agent_v1settings_agent_listen_provider_v2.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import typing_extensions - - -class AgentV1SettingsAgentListenProviderV2Params(typing_extensions.TypedDict): - type: typing.Literal["deepgram"] - """ - Provider type for speech-to-text - """ - - model: str - """ - Model to use for speech to text using the V2 API (e.g. flux-general-en) - """ - - keyterms: typing_extensions.NotRequired[typing.Sequence[str]] - """ - Prompt keyterm recognition to improve Keyword Recall Rate - """ diff --git a/src/deepgram/agent/v1/requests/agent_v1think_updated.py b/src/deepgram/agent/v1/requests/agent_v1think_updated.py new file mode 100644 index 00000000..6fd752a5 --- /dev/null +++ b/src/deepgram/agent/v1/requests/agent_v1think_updated.py @@ -0,0 +1,12 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import typing_extensions + + +class AgentV1ThinkUpdatedParams(typing_extensions.TypedDict): + type: typing.Literal["ThinkUpdated"] + """ + Message type identifier for think update confirmation + """ diff --git a/src/deepgram/agent/v1/requests/agent_v1update_speak.py b/src/deepgram/agent/v1/requests/agent_v1update_speak.py index c5820907..c740bd07 100644 --- a/src/deepgram/agent/v1/requests/agent_v1update_speak.py +++ b/src/deepgram/agent/v1/requests/agent_v1update_speak.py @@ -3,7 +3,7 @@ import typing import typing_extensions -from ....requests.speak_settings_v1 import SpeakSettingsV1Params +from .agent_v1update_speak_speak import AgentV1UpdateSpeakSpeakParams class AgentV1UpdateSpeakParams(typing_extensions.TypedDict): @@ -12,4 +12,4 @@ class AgentV1UpdateSpeakParams(typing_extensions.TypedDict): Message type identifier for updating the speak model """ - speak: SpeakSettingsV1Params + speak: AgentV1UpdateSpeakSpeakParams diff --git a/src/deepgram/agent/v1/requests/agent_v1settings_agent_speak.py b/src/deepgram/agent/v1/requests/agent_v1update_speak_speak.py similarity index 57% rename from src/deepgram/agent/v1/requests/agent_v1settings_agent_speak.py rename to src/deepgram/agent/v1/requests/agent_v1update_speak_speak.py index f6fa232a..b37eea79 100644 --- a/src/deepgram/agent/v1/requests/agent_v1settings_agent_speak.py +++ b/src/deepgram/agent/v1/requests/agent_v1update_speak_speak.py @@ -4,4 +4,4 @@ from ....requests.speak_settings_v1 import SpeakSettingsV1Params -AgentV1SettingsAgentSpeakParams = typing.Union[SpeakSettingsV1Params, typing.Sequence[SpeakSettingsV1Params]] +AgentV1UpdateSpeakSpeakParams = typing.Union[SpeakSettingsV1Params, typing.Sequence[SpeakSettingsV1Params]] diff --git a/src/deepgram/agent/v1/requests/agent_v1update_think.py b/src/deepgram/agent/v1/requests/agent_v1update_think.py new file mode 100644 index 00000000..41e6e13e --- /dev/null +++ b/src/deepgram/agent/v1/requests/agent_v1update_think.py @@ -0,0 +1,15 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import typing_extensions +from .agent_v1update_think_think import AgentV1UpdateThinkThinkParams + + +class AgentV1UpdateThinkParams(typing_extensions.TypedDict): + type: typing.Literal["UpdateThink"] + """ + Message type identifier for updating the think model + """ + + think: AgentV1UpdateThinkThinkParams diff --git a/src/deepgram/agent/v1/requests/agent_v1settings_agent_think.py b/src/deepgram/agent/v1/requests/agent_v1update_think_think.py similarity index 57% rename from src/deepgram/agent/v1/requests/agent_v1settings_agent_think.py rename to src/deepgram/agent/v1/requests/agent_v1update_think_think.py index 4e1e9533..ffa3ce71 100644 --- a/src/deepgram/agent/v1/requests/agent_v1settings_agent_think.py +++ b/src/deepgram/agent/v1/requests/agent_v1update_think_think.py @@ -4,4 +4,4 @@ from ....requests.think_settings_v1 import ThinkSettingsV1Params -AgentV1SettingsAgentThinkParams = typing.Union[ThinkSettingsV1Params, typing.Sequence[ThinkSettingsV1Params]] +AgentV1UpdateThinkThinkParams = typing.Union[ThinkSettingsV1Params, typing.Sequence[ThinkSettingsV1Params]] diff --git a/src/deepgram/agent/v1/types/__init__.py b/src/deepgram/agent/v1/types/__init__.py index 6cc1e513..75835ef8 100644 --- a/src/deepgram/agent/v1/types/__init__.py +++ b/src/deepgram/agent/v1/types/__init__.py @@ -24,27 +24,30 @@ from .agent_v1settings import AgentV1Settings from .agent_v1settings_agent import AgentV1SettingsAgent from .agent_v1settings_agent_context import AgentV1SettingsAgentContext - from .agent_v1settings_agent_context_messages_item import AgentV1SettingsAgentContextMessagesItem - from .agent_v1settings_agent_context_messages_item_content import AgentV1SettingsAgentContextMessagesItemContent - from .agent_v1settings_agent_context_messages_item_content_role import ( - AgentV1SettingsAgentContextMessagesItemContentRole, + from .agent_v1settings_agent_context_context import AgentV1SettingsAgentContextContext + from .agent_v1settings_agent_context_context_messages_item import AgentV1SettingsAgentContextContextMessagesItem + from .agent_v1settings_agent_context_context_messages_item_content import ( + AgentV1SettingsAgentContextContextMessagesItemContent, ) - from .agent_v1settings_agent_context_messages_item_function_calls import ( - AgentV1SettingsAgentContextMessagesItemFunctionCalls, + from .agent_v1settings_agent_context_context_messages_item_content_role import ( + AgentV1SettingsAgentContextContextMessagesItemContentRole, ) - from .agent_v1settings_agent_context_messages_item_function_calls_function_calls_item import ( - AgentV1SettingsAgentContextMessagesItemFunctionCallsFunctionCallsItem, + from .agent_v1settings_agent_context_context_messages_item_function_calls import ( + AgentV1SettingsAgentContextContextMessagesItemFunctionCalls, ) - from .agent_v1settings_agent_listen import AgentV1SettingsAgentListen - from .agent_v1settings_agent_listen_provider import ( - AgentV1SettingsAgentListenProvider, - AgentV1SettingsAgentListenProvider_V1, - AgentV1SettingsAgentListenProvider_V2, + from .agent_v1settings_agent_context_context_messages_item_function_calls_function_calls_item import ( + AgentV1SettingsAgentContextContextMessagesItemFunctionCallsFunctionCallsItem, ) - from .agent_v1settings_agent_listen_provider_v1 import AgentV1SettingsAgentListenProviderV1 - from .agent_v1settings_agent_listen_provider_v2 import AgentV1SettingsAgentListenProviderV2 - from .agent_v1settings_agent_speak import AgentV1SettingsAgentSpeak - from .agent_v1settings_agent_think import AgentV1SettingsAgentThink + from .agent_v1settings_agent_context_listen import AgentV1SettingsAgentContextListen + from .agent_v1settings_agent_context_listen_provider import ( + AgentV1SettingsAgentContextListenProvider, + AgentV1SettingsAgentContextListenProvider_V1, + AgentV1SettingsAgentContextListenProvider_V2, + ) + from .agent_v1settings_agent_context_listen_provider_v1 import AgentV1SettingsAgentContextListenProviderV1 + from .agent_v1settings_agent_context_listen_provider_v2 import AgentV1SettingsAgentContextListenProviderV2 + from .agent_v1settings_agent_context_speak import AgentV1SettingsAgentContextSpeak + from .agent_v1settings_agent_context_think import AgentV1SettingsAgentContextThink from .agent_v1settings_applied import AgentV1SettingsApplied from .agent_v1settings_audio import AgentV1SettingsAudio from .agent_v1settings_audio_input import AgentV1SettingsAudioInput @@ -53,8 +56,12 @@ from .agent_v1settings_audio_output_encoding import AgentV1SettingsAudioOutputEncoding from .agent_v1settings_flags import AgentV1SettingsFlags from .agent_v1speak_updated import AgentV1SpeakUpdated + from .agent_v1think_updated import AgentV1ThinkUpdated from .agent_v1update_prompt import AgentV1UpdatePrompt from .agent_v1update_speak import AgentV1UpdateSpeak + from .agent_v1update_speak_speak import AgentV1UpdateSpeakSpeak + from .agent_v1update_think import AgentV1UpdateThink + from .agent_v1update_think_think import AgentV1UpdateThinkThink from .agent_v1user_started_speaking import AgentV1UserStartedSpeaking from .agent_v1warning import AgentV1Warning from .agent_v1welcome import AgentV1Welcome @@ -77,19 +84,20 @@ "AgentV1Settings": ".agent_v1settings", "AgentV1SettingsAgent": ".agent_v1settings_agent", "AgentV1SettingsAgentContext": ".agent_v1settings_agent_context", - "AgentV1SettingsAgentContextMessagesItem": ".agent_v1settings_agent_context_messages_item", - "AgentV1SettingsAgentContextMessagesItemContent": ".agent_v1settings_agent_context_messages_item_content", - "AgentV1SettingsAgentContextMessagesItemContentRole": ".agent_v1settings_agent_context_messages_item_content_role", - "AgentV1SettingsAgentContextMessagesItemFunctionCalls": ".agent_v1settings_agent_context_messages_item_function_calls", - "AgentV1SettingsAgentContextMessagesItemFunctionCallsFunctionCallsItem": ".agent_v1settings_agent_context_messages_item_function_calls_function_calls_item", - "AgentV1SettingsAgentListen": ".agent_v1settings_agent_listen", - "AgentV1SettingsAgentListenProvider": ".agent_v1settings_agent_listen_provider", - "AgentV1SettingsAgentListenProviderV1": ".agent_v1settings_agent_listen_provider_v1", - "AgentV1SettingsAgentListenProviderV2": ".agent_v1settings_agent_listen_provider_v2", - "AgentV1SettingsAgentListenProvider_V1": ".agent_v1settings_agent_listen_provider", - "AgentV1SettingsAgentListenProvider_V2": ".agent_v1settings_agent_listen_provider", - "AgentV1SettingsAgentSpeak": ".agent_v1settings_agent_speak", - "AgentV1SettingsAgentThink": ".agent_v1settings_agent_think", + "AgentV1SettingsAgentContextContext": ".agent_v1settings_agent_context_context", + "AgentV1SettingsAgentContextContextMessagesItem": ".agent_v1settings_agent_context_context_messages_item", + "AgentV1SettingsAgentContextContextMessagesItemContent": ".agent_v1settings_agent_context_context_messages_item_content", + "AgentV1SettingsAgentContextContextMessagesItemContentRole": ".agent_v1settings_agent_context_context_messages_item_content_role", + "AgentV1SettingsAgentContextContextMessagesItemFunctionCalls": ".agent_v1settings_agent_context_context_messages_item_function_calls", + "AgentV1SettingsAgentContextContextMessagesItemFunctionCallsFunctionCallsItem": ".agent_v1settings_agent_context_context_messages_item_function_calls_function_calls_item", + "AgentV1SettingsAgentContextListen": ".agent_v1settings_agent_context_listen", + "AgentV1SettingsAgentContextListenProvider": ".agent_v1settings_agent_context_listen_provider", + "AgentV1SettingsAgentContextListenProviderV1": ".agent_v1settings_agent_context_listen_provider_v1", + "AgentV1SettingsAgentContextListenProviderV2": ".agent_v1settings_agent_context_listen_provider_v2", + "AgentV1SettingsAgentContextListenProvider_V1": ".agent_v1settings_agent_context_listen_provider", + "AgentV1SettingsAgentContextListenProvider_V2": ".agent_v1settings_agent_context_listen_provider", + "AgentV1SettingsAgentContextSpeak": ".agent_v1settings_agent_context_speak", + "AgentV1SettingsAgentContextThink": ".agent_v1settings_agent_context_think", "AgentV1SettingsApplied": ".agent_v1settings_applied", "AgentV1SettingsAudio": ".agent_v1settings_audio", "AgentV1SettingsAudioInput": ".agent_v1settings_audio_input", @@ -98,8 +106,12 @@ "AgentV1SettingsAudioOutputEncoding": ".agent_v1settings_audio_output_encoding", "AgentV1SettingsFlags": ".agent_v1settings_flags", "AgentV1SpeakUpdated": ".agent_v1speak_updated", + "AgentV1ThinkUpdated": ".agent_v1think_updated", "AgentV1UpdatePrompt": ".agent_v1update_prompt", "AgentV1UpdateSpeak": ".agent_v1update_speak", + "AgentV1UpdateSpeakSpeak": ".agent_v1update_speak_speak", + "AgentV1UpdateThink": ".agent_v1update_think", + "AgentV1UpdateThinkThink": ".agent_v1update_think_think", "AgentV1UserStartedSpeaking": ".agent_v1user_started_speaking", "AgentV1Warning": ".agent_v1warning", "AgentV1Welcome": ".agent_v1welcome", @@ -146,19 +158,20 @@ def __dir__(): "AgentV1Settings", "AgentV1SettingsAgent", "AgentV1SettingsAgentContext", - "AgentV1SettingsAgentContextMessagesItem", - "AgentV1SettingsAgentContextMessagesItemContent", - "AgentV1SettingsAgentContextMessagesItemContentRole", - "AgentV1SettingsAgentContextMessagesItemFunctionCalls", - "AgentV1SettingsAgentContextMessagesItemFunctionCallsFunctionCallsItem", - "AgentV1SettingsAgentListen", - "AgentV1SettingsAgentListenProvider", - "AgentV1SettingsAgentListenProviderV1", - "AgentV1SettingsAgentListenProviderV2", - "AgentV1SettingsAgentListenProvider_V1", - "AgentV1SettingsAgentListenProvider_V2", - "AgentV1SettingsAgentSpeak", - "AgentV1SettingsAgentThink", + "AgentV1SettingsAgentContextContext", + "AgentV1SettingsAgentContextContextMessagesItem", + "AgentV1SettingsAgentContextContextMessagesItemContent", + "AgentV1SettingsAgentContextContextMessagesItemContentRole", + "AgentV1SettingsAgentContextContextMessagesItemFunctionCalls", + "AgentV1SettingsAgentContextContextMessagesItemFunctionCallsFunctionCallsItem", + "AgentV1SettingsAgentContextListen", + "AgentV1SettingsAgentContextListenProvider", + "AgentV1SettingsAgentContextListenProviderV1", + "AgentV1SettingsAgentContextListenProviderV2", + "AgentV1SettingsAgentContextListenProvider_V1", + "AgentV1SettingsAgentContextListenProvider_V2", + "AgentV1SettingsAgentContextSpeak", + "AgentV1SettingsAgentContextThink", "AgentV1SettingsApplied", "AgentV1SettingsAudio", "AgentV1SettingsAudioInput", @@ -167,8 +180,12 @@ def __dir__(): "AgentV1SettingsAudioOutputEncoding", "AgentV1SettingsFlags", "AgentV1SpeakUpdated", + "AgentV1ThinkUpdated", "AgentV1UpdatePrompt", "AgentV1UpdateSpeak", + "AgentV1UpdateSpeakSpeak", + "AgentV1UpdateThink", + "AgentV1UpdateThinkThink", "AgentV1UserStartedSpeaking", "AgentV1Warning", "AgentV1Welcome", diff --git a/src/deepgram/agent/v1/types/agent_v1settings_agent.py b/src/deepgram/agent/v1/types/agent_v1settings_agent.py index 51686293..c1483c35 100644 --- a/src/deepgram/agent/v1/types/agent_v1settings_agent.py +++ b/src/deepgram/agent/v1/types/agent_v1settings_agent.py @@ -2,39 +2,6 @@ import typing -import pydantic -from ....core.pydantic_utilities import IS_PYDANTIC_V2 -from ....core.unchecked_base_model import UncheckedBaseModel from .agent_v1settings_agent_context import AgentV1SettingsAgentContext -from .agent_v1settings_agent_listen import AgentV1SettingsAgentListen -from .agent_v1settings_agent_speak import AgentV1SettingsAgentSpeak -from .agent_v1settings_agent_think import AgentV1SettingsAgentThink - -class AgentV1SettingsAgent(UncheckedBaseModel): - language: typing.Optional[str] = pydantic.Field(default=None) - """ - Deprecated. Use `listen.provider.language` and `speak.provider.language` fields instead. - """ - - context: typing.Optional[AgentV1SettingsAgentContext] = pydantic.Field(default=None) - """ - Conversation context including the history of messages and function calls - """ - - listen: typing.Optional[AgentV1SettingsAgentListen] = None - think: typing.Optional[AgentV1SettingsAgentThink] = None - speak: typing.Optional[AgentV1SettingsAgentSpeak] = None - greeting: typing.Optional[str] = pydantic.Field(default=None) - """ - Optional message that agent will speak at the start - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow +AgentV1SettingsAgent = typing.Union[AgentV1SettingsAgentContext, str] diff --git a/src/deepgram/agent/v1/types/agent_v1settings_agent_context.py b/src/deepgram/agent/v1/types/agent_v1settings_agent_context.py index dabd143a..fcbea2f3 100644 --- a/src/deepgram/agent/v1/types/agent_v1settings_agent_context.py +++ b/src/deepgram/agent/v1/types/agent_v1settings_agent_context.py @@ -5,17 +5,29 @@ import pydantic from ....core.pydantic_utilities import IS_PYDANTIC_V2 from ....core.unchecked_base_model import UncheckedBaseModel -from .agent_v1settings_agent_context_messages_item import AgentV1SettingsAgentContextMessagesItem +from .agent_v1settings_agent_context_context import AgentV1SettingsAgentContextContext +from .agent_v1settings_agent_context_listen import AgentV1SettingsAgentContextListen +from .agent_v1settings_agent_context_speak import AgentV1SettingsAgentContextSpeak +from .agent_v1settings_agent_context_think import AgentV1SettingsAgentContextThink class AgentV1SettingsAgentContext(UncheckedBaseModel): + language: typing.Optional[str] = pydantic.Field(default=None) + """ + Deprecated. Use `listen.provider.language` and `speak.provider.language` fields instead. + """ + + context: typing.Optional[AgentV1SettingsAgentContextContext] = pydantic.Field(default=None) """ Conversation context including the history of messages and function calls """ - messages: typing.Optional[typing.List[AgentV1SettingsAgentContextMessagesItem]] = pydantic.Field(default=None) + listen: typing.Optional[AgentV1SettingsAgentContextListen] = None + think: typing.Optional[AgentV1SettingsAgentContextThink] = None + speak: typing.Optional[AgentV1SettingsAgentContextSpeak] = None + greeting: typing.Optional[str] = pydantic.Field(default=None) """ - Conversation history as a list of messages and function calls + Optional message that agent will speak at the start """ if IS_PYDANTIC_V2: diff --git a/src/deepgram/agent/v1/types/agent_v1settings_agent_context_context.py b/src/deepgram/agent/v1/types/agent_v1settings_agent_context_context.py new file mode 100644 index 00000000..c91e72f9 --- /dev/null +++ b/src/deepgram/agent/v1/types/agent_v1settings_agent_context_context.py @@ -0,0 +1,30 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ....core.pydantic_utilities import IS_PYDANTIC_V2 +from ....core.unchecked_base_model import UncheckedBaseModel +from .agent_v1settings_agent_context_context_messages_item import AgentV1SettingsAgentContextContextMessagesItem + + +class AgentV1SettingsAgentContextContext(UncheckedBaseModel): + """ + Conversation context including the history of messages and function calls + """ + + messages: typing.Optional[typing.List[AgentV1SettingsAgentContextContextMessagesItem]] = pydantic.Field( + default=None + ) + """ + Conversation history as a list of messages and function calls + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/deepgram/agent/v1/types/agent_v1settings_agent_context_context_messages_item.py b/src/deepgram/agent/v1/types/agent_v1settings_agent_context_context_messages_item.py new file mode 100644 index 00000000..1117a3d3 --- /dev/null +++ b/src/deepgram/agent/v1/types/agent_v1settings_agent_context_context_messages_item.py @@ -0,0 +1,14 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +from .agent_v1settings_agent_context_context_messages_item_content import ( + AgentV1SettingsAgentContextContextMessagesItemContent, +) +from .agent_v1settings_agent_context_context_messages_item_function_calls import ( + AgentV1SettingsAgentContextContextMessagesItemFunctionCalls, +) + +AgentV1SettingsAgentContextContextMessagesItem = typing.Union[ + AgentV1SettingsAgentContextContextMessagesItemContent, AgentV1SettingsAgentContextContextMessagesItemFunctionCalls +] diff --git a/src/deepgram/agent/v1/types/agent_v1settings_agent_context_messages_item_content.py b/src/deepgram/agent/v1/types/agent_v1settings_agent_context_context_messages_item_content.py similarity index 73% rename from src/deepgram/agent/v1/types/agent_v1settings_agent_context_messages_item_content.py rename to src/deepgram/agent/v1/types/agent_v1settings_agent_context_context_messages_item_content.py index c1ad74ec..132ad04b 100644 --- a/src/deepgram/agent/v1/types/agent_v1settings_agent_context_messages_item_content.py +++ b/src/deepgram/agent/v1/types/agent_v1settings_agent_context_context_messages_item_content.py @@ -5,12 +5,12 @@ import pydantic from ....core.pydantic_utilities import IS_PYDANTIC_V2 from ....core.unchecked_base_model import UncheckedBaseModel -from .agent_v1settings_agent_context_messages_item_content_role import ( - AgentV1SettingsAgentContextMessagesItemContentRole, +from .agent_v1settings_agent_context_context_messages_item_content_role import ( + AgentV1SettingsAgentContextContextMessagesItemContentRole, ) -class AgentV1SettingsAgentContextMessagesItemContent(UncheckedBaseModel): +class AgentV1SettingsAgentContextContextMessagesItemContent(UncheckedBaseModel): """ Conversation text as part of the conversation history """ @@ -20,7 +20,7 @@ class AgentV1SettingsAgentContextMessagesItemContent(UncheckedBaseModel): Message type identifier for conversation text """ - role: AgentV1SettingsAgentContextMessagesItemContentRole = pydantic.Field() + role: AgentV1SettingsAgentContextContextMessagesItemContentRole = pydantic.Field() """ Identifies who spoke the statement """ diff --git a/src/deepgram/agent/v1/types/agent_v1settings_agent_context_context_messages_item_content_role.py b/src/deepgram/agent/v1/types/agent_v1settings_agent_context_context_messages_item_content_role.py new file mode 100644 index 00000000..c1231ecb --- /dev/null +++ b/src/deepgram/agent/v1/types/agent_v1settings_agent_context_context_messages_item_content_role.py @@ -0,0 +1,7 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +AgentV1SettingsAgentContextContextMessagesItemContentRole = typing.Union[ + typing.Literal["user", "assistant"], typing.Any +] diff --git a/src/deepgram/agent/v1/types/agent_v1settings_agent_context_messages_item_function_calls.py b/src/deepgram/agent/v1/types/agent_v1settings_agent_context_context_messages_item_function_calls.py similarity index 66% rename from src/deepgram/agent/v1/types/agent_v1settings_agent_context_messages_item_function_calls.py rename to src/deepgram/agent/v1/types/agent_v1settings_agent_context_context_messages_item_function_calls.py index dd693535..4d7ef520 100644 --- a/src/deepgram/agent/v1/types/agent_v1settings_agent_context_messages_item_function_calls.py +++ b/src/deepgram/agent/v1/types/agent_v1settings_agent_context_context_messages_item_function_calls.py @@ -5,18 +5,18 @@ import pydantic from ....core.pydantic_utilities import IS_PYDANTIC_V2 from ....core.unchecked_base_model import UncheckedBaseModel -from .agent_v1settings_agent_context_messages_item_function_calls_function_calls_item import ( - AgentV1SettingsAgentContextMessagesItemFunctionCallsFunctionCallsItem, +from .agent_v1settings_agent_context_context_messages_item_function_calls_function_calls_item import ( + AgentV1SettingsAgentContextContextMessagesItemFunctionCallsFunctionCallsItem, ) -class AgentV1SettingsAgentContextMessagesItemFunctionCalls(UncheckedBaseModel): +class AgentV1SettingsAgentContextContextMessagesItemFunctionCalls(UncheckedBaseModel): """ Client-side or server-side function call request and response as part of the conversation history """ type: typing.Literal["History"] = "History" - function_calls: typing.List[AgentV1SettingsAgentContextMessagesItemFunctionCallsFunctionCallsItem] = ( + function_calls: typing.List[AgentV1SettingsAgentContextContextMessagesItemFunctionCallsFunctionCallsItem] = ( pydantic.Field() ) """ diff --git a/src/deepgram/agent/v1/types/agent_v1settings_agent_context_messages_item_function_calls_function_calls_item.py b/src/deepgram/agent/v1/types/agent_v1settings_agent_context_context_messages_item_function_calls_function_calls_item.py similarity index 90% rename from src/deepgram/agent/v1/types/agent_v1settings_agent_context_messages_item_function_calls_function_calls_item.py rename to src/deepgram/agent/v1/types/agent_v1settings_agent_context_context_messages_item_function_calls_function_calls_item.py index 7534c9b1..1b363a86 100644 --- a/src/deepgram/agent/v1/types/agent_v1settings_agent_context_messages_item_function_calls_function_calls_item.py +++ b/src/deepgram/agent/v1/types/agent_v1settings_agent_context_context_messages_item_function_calls_function_calls_item.py @@ -7,7 +7,7 @@ from ....core.unchecked_base_model import UncheckedBaseModel -class AgentV1SettingsAgentContextMessagesItemFunctionCallsFunctionCallsItem(UncheckedBaseModel): +class AgentV1SettingsAgentContextContextMessagesItemFunctionCallsFunctionCallsItem(UncheckedBaseModel): id: str = pydantic.Field() """ Unique identifier for the function call diff --git a/src/deepgram/agent/v1/types/agent_v1settings_agent_context_listen.py b/src/deepgram/agent/v1/types/agent_v1settings_agent_context_listen.py new file mode 100644 index 00000000..8092ceef --- /dev/null +++ b/src/deepgram/agent/v1/types/agent_v1settings_agent_context_listen.py @@ -0,0 +1,21 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ....core.pydantic_utilities import IS_PYDANTIC_V2 +from ....core.unchecked_base_model import UncheckedBaseModel +from .agent_v1settings_agent_context_listen_provider import AgentV1SettingsAgentContextListenProvider + + +class AgentV1SettingsAgentContextListen(UncheckedBaseModel): + provider: typing.Optional[AgentV1SettingsAgentContextListenProvider] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/deepgram/agent/v1/types/agent_v1settings_agent_listen_provider.py b/src/deepgram/agent/v1/types/agent_v1settings_agent_context_listen_provider.py similarity index 69% rename from src/deepgram/agent/v1/types/agent_v1settings_agent_listen_provider.py rename to src/deepgram/agent/v1/types/agent_v1settings_agent_context_listen_provider.py index 9800b27d..86201561 100644 --- a/src/deepgram/agent/v1/types/agent_v1settings_agent_listen_provider.py +++ b/src/deepgram/agent/v1/types/agent_v1settings_agent_context_listen_provider.py @@ -8,9 +8,11 @@ import typing_extensions from ....core.pydantic_utilities import IS_PYDANTIC_V2 from ....core.unchecked_base_model import UncheckedBaseModel, UnionMetadata +from ....types.listen_v2eager_eot_threshold import ListenV2EagerEotThreshold +from ....types.listen_v2eot_threshold import ListenV2EotThreshold -class AgentV1SettingsAgentListenProvider_V1(UncheckedBaseModel): +class AgentV1SettingsAgentContextListenProvider_V1(UncheckedBaseModel): version: typing.Literal["v1"] = "v1" type: typing.Literal["deepgram"] = "deepgram" model: typing.Optional[str] = None @@ -28,11 +30,13 @@ class Config: extra = pydantic.Extra.allow -class AgentV1SettingsAgentListenProvider_V2(UncheckedBaseModel): +class AgentV1SettingsAgentContextListenProvider_V2(UncheckedBaseModel): version: typing.Literal["v2"] = "v2" type: typing.Literal["deepgram"] = "deepgram" model: str keyterms: typing.Optional[typing.List[str]] = None + eot_threshold: typing.Optional[ListenV2EotThreshold] = None + eager_eot_threshold: typing.Optional[ListenV2EagerEotThreshold] = None if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 @@ -44,7 +48,7 @@ class Config: extra = pydantic.Extra.allow -AgentV1SettingsAgentListenProvider = typing_extensions.Annotated[ - typing.Union[AgentV1SettingsAgentListenProvider_V1, AgentV1SettingsAgentListenProvider_V2], +AgentV1SettingsAgentContextListenProvider = typing_extensions.Annotated[ + typing.Union[AgentV1SettingsAgentContextListenProvider_V1, AgentV1SettingsAgentContextListenProvider_V2], UnionMetadata(discriminant="version"), ] diff --git a/src/deepgram/agent/v1/types/agent_v1settings_agent_listen_provider_v1.py b/src/deepgram/agent/v1/types/agent_v1settings_agent_context_listen_provider_v1.py similarity index 83% rename from src/deepgram/agent/v1/types/agent_v1settings_agent_listen_provider_v1.py rename to src/deepgram/agent/v1/types/agent_v1settings_agent_context_listen_provider_v1.py index 3370c965..aa1c108a 100644 --- a/src/deepgram/agent/v1/types/agent_v1settings_agent_listen_provider_v1.py +++ b/src/deepgram/agent/v1/types/agent_v1settings_agent_context_listen_provider_v1.py @@ -7,7 +7,7 @@ from ....core.unchecked_base_model import UncheckedBaseModel -class AgentV1SettingsAgentListenProviderV1(UncheckedBaseModel): +class AgentV1SettingsAgentContextListenProviderV1(UncheckedBaseModel): type: typing.Literal["deepgram"] = pydantic.Field(default="deepgram") """ Provider type for speech-to-text @@ -23,11 +23,7 @@ class AgentV1SettingsAgentListenProviderV1(UncheckedBaseModel): Language code to use for speech-to-text. Can be a BCP-47 language tag (e.g. `en`), or `multi` for code-switching transcription """ - keyterms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Prompt keyterm recognition to improve Keyword Recall Rate - """ - + keyterms: typing.Optional[typing.List[str]] = None smart_format: typing.Optional[bool] = pydantic.Field(default=None) """ Applies smart formatting to improve transcript readability diff --git a/src/deepgram/agent/v1/types/agent_v1settings_agent_listen_provider_v2.py b/src/deepgram/agent/v1/types/agent_v1settings_agent_context_listen_provider_v2.py similarity index 65% rename from src/deepgram/agent/v1/types/agent_v1settings_agent_listen_provider_v2.py rename to src/deepgram/agent/v1/types/agent_v1settings_agent_context_listen_provider_v2.py index 5975d23e..420a16c3 100644 --- a/src/deepgram/agent/v1/types/agent_v1settings_agent_listen_provider_v2.py +++ b/src/deepgram/agent/v1/types/agent_v1settings_agent_context_listen_provider_v2.py @@ -5,9 +5,11 @@ import pydantic from ....core.pydantic_utilities import IS_PYDANTIC_V2 from ....core.unchecked_base_model import UncheckedBaseModel +from ....types.listen_v2eager_eot_threshold import ListenV2EagerEotThreshold +from ....types.listen_v2eot_threshold import ListenV2EotThreshold -class AgentV1SettingsAgentListenProviderV2(UncheckedBaseModel): +class AgentV1SettingsAgentContextListenProviderV2(UncheckedBaseModel): type: typing.Literal["deepgram"] = pydantic.Field(default="deepgram") """ Provider type for speech-to-text @@ -18,10 +20,9 @@ class AgentV1SettingsAgentListenProviderV2(UncheckedBaseModel): Model to use for speech to text using the V2 API (e.g. flux-general-en) """ - keyterms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ - Prompt keyterm recognition to improve Keyword Recall Rate - """ + keyterms: typing.Optional[typing.List[str]] = None + eot_threshold: typing.Optional[ListenV2EotThreshold] = None + eager_eot_threshold: typing.Optional[ListenV2EagerEotThreshold] = None if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/src/deepgram/agent/v1/types/agent_v1settings_agent_context_messages_item.py b/src/deepgram/agent/v1/types/agent_v1settings_agent_context_messages_item.py deleted file mode 100644 index 2061fd2d..00000000 --- a/src/deepgram/agent/v1/types/agent_v1settings_agent_context_messages_item.py +++ /dev/null @@ -1,12 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .agent_v1settings_agent_context_messages_item_content import AgentV1SettingsAgentContextMessagesItemContent -from .agent_v1settings_agent_context_messages_item_function_calls import ( - AgentV1SettingsAgentContextMessagesItemFunctionCalls, -) - -AgentV1SettingsAgentContextMessagesItem = typing.Union[ - AgentV1SettingsAgentContextMessagesItemContent, AgentV1SettingsAgentContextMessagesItemFunctionCalls -] diff --git a/src/deepgram/agent/v1/types/agent_v1settings_agent_context_messages_item_content_role.py b/src/deepgram/agent/v1/types/agent_v1settings_agent_context_messages_item_content_role.py deleted file mode 100644 index 19a3bcc0..00000000 --- a/src/deepgram/agent/v1/types/agent_v1settings_agent_context_messages_item_content_role.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -AgentV1SettingsAgentContextMessagesItemContentRole = typing.Union[typing.Literal["user", "assistant"], typing.Any] diff --git a/src/deepgram/agent/v1/types/agent_v1settings_agent_context_speak.py b/src/deepgram/agent/v1/types/agent_v1settings_agent_context_speak.py new file mode 100644 index 00000000..3bf191a1 --- /dev/null +++ b/src/deepgram/agent/v1/types/agent_v1settings_agent_context_speak.py @@ -0,0 +1,7 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +from ....types.speak_settings_v1 import SpeakSettingsV1 + +AgentV1SettingsAgentContextSpeak = typing.Union[SpeakSettingsV1, typing.List[SpeakSettingsV1]] diff --git a/src/deepgram/agent/v1/types/agent_v1settings_agent_context_think.py b/src/deepgram/agent/v1/types/agent_v1settings_agent_context_think.py new file mode 100644 index 00000000..747e809d --- /dev/null +++ b/src/deepgram/agent/v1/types/agent_v1settings_agent_context_think.py @@ -0,0 +1,7 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +from ....types.think_settings_v1 import ThinkSettingsV1 + +AgentV1SettingsAgentContextThink = typing.Union[ThinkSettingsV1, typing.List[ThinkSettingsV1]] diff --git a/src/deepgram/agent/v1/types/agent_v1settings_agent_listen.py b/src/deepgram/agent/v1/types/agent_v1think_updated.py similarity index 70% rename from src/deepgram/agent/v1/types/agent_v1settings_agent_listen.py rename to src/deepgram/agent/v1/types/agent_v1think_updated.py index 9d57e900..76274f06 100644 --- a/src/deepgram/agent/v1/types/agent_v1settings_agent_listen.py +++ b/src/deepgram/agent/v1/types/agent_v1think_updated.py @@ -5,11 +5,13 @@ import pydantic from ....core.pydantic_utilities import IS_PYDANTIC_V2 from ....core.unchecked_base_model import UncheckedBaseModel -from .agent_v1settings_agent_listen_provider import AgentV1SettingsAgentListenProvider -class AgentV1SettingsAgentListen(UncheckedBaseModel): - provider: typing.Optional[AgentV1SettingsAgentListenProvider] = None +class AgentV1ThinkUpdated(UncheckedBaseModel): + type: typing.Literal["ThinkUpdated"] = pydantic.Field(default="ThinkUpdated") + """ + Message type identifier for think update confirmation + """ if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/src/deepgram/agent/v1/types/agent_v1update_speak.py b/src/deepgram/agent/v1/types/agent_v1update_speak.py index 4afc8d37..4b045d69 100644 --- a/src/deepgram/agent/v1/types/agent_v1update_speak.py +++ b/src/deepgram/agent/v1/types/agent_v1update_speak.py @@ -5,7 +5,7 @@ import pydantic from ....core.pydantic_utilities import IS_PYDANTIC_V2 from ....core.unchecked_base_model import UncheckedBaseModel -from ....types.speak_settings_v1 import SpeakSettingsV1 +from .agent_v1update_speak_speak import AgentV1UpdateSpeakSpeak class AgentV1UpdateSpeak(UncheckedBaseModel): @@ -14,7 +14,7 @@ class AgentV1UpdateSpeak(UncheckedBaseModel): Message type identifier for updating the speak model """ - speak: SpeakSettingsV1 + speak: AgentV1UpdateSpeakSpeak if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/src/deepgram/agent/v1/types/agent_v1settings_agent_speak.py b/src/deepgram/agent/v1/types/agent_v1update_speak_speak.py similarity index 60% rename from src/deepgram/agent/v1/types/agent_v1settings_agent_speak.py rename to src/deepgram/agent/v1/types/agent_v1update_speak_speak.py index 84a61a59..eb34f060 100644 --- a/src/deepgram/agent/v1/types/agent_v1settings_agent_speak.py +++ b/src/deepgram/agent/v1/types/agent_v1update_speak_speak.py @@ -4,4 +4,4 @@ from ....types.speak_settings_v1 import SpeakSettingsV1 -AgentV1SettingsAgentSpeak = typing.Union[SpeakSettingsV1, typing.List[SpeakSettingsV1]] +AgentV1UpdateSpeakSpeak = typing.Union[SpeakSettingsV1, typing.List[SpeakSettingsV1]] diff --git a/src/deepgram/agent/v1/types/agent_v1update_think.py b/src/deepgram/agent/v1/types/agent_v1update_think.py new file mode 100644 index 00000000..4236c4b7 --- /dev/null +++ b/src/deepgram/agent/v1/types/agent_v1update_think.py @@ -0,0 +1,26 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ....core.pydantic_utilities import IS_PYDANTIC_V2 +from ....core.unchecked_base_model import UncheckedBaseModel +from .agent_v1update_think_think import AgentV1UpdateThinkThink + + +class AgentV1UpdateThink(UncheckedBaseModel): + type: typing.Literal["UpdateThink"] = pydantic.Field(default="UpdateThink") + """ + Message type identifier for updating the think model + """ + + think: AgentV1UpdateThinkThink + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/deepgram/agent/v1/types/agent_v1settings_agent_think.py b/src/deepgram/agent/v1/types/agent_v1update_think_think.py similarity index 60% rename from src/deepgram/agent/v1/types/agent_v1settings_agent_think.py rename to src/deepgram/agent/v1/types/agent_v1update_think_think.py index 2521acf2..93e087b5 100644 --- a/src/deepgram/agent/v1/types/agent_v1settings_agent_think.py +++ b/src/deepgram/agent/v1/types/agent_v1update_think_think.py @@ -4,4 +4,4 @@ from ....types.think_settings_v1 import ThinkSettingsV1 -AgentV1SettingsAgentThink = typing.Union[ThinkSettingsV1, typing.List[ThinkSettingsV1]] +AgentV1UpdateThinkThink = typing.Union[ThinkSettingsV1, typing.List[ThinkSettingsV1]] diff --git a/src/deepgram/core/client_wrapper.py b/src/deepgram/core/client_wrapper.py index 33b53ce1..e63a4d7f 100644 --- a/src/deepgram/core/client_wrapper.py +++ b/src/deepgram/core/client_wrapper.py @@ -25,12 +25,12 @@ def get_headers(self) -> typing.Dict[str, str]: import platform headers: typing.Dict[str, str] = { - "User-Agent": "deepgram-sdk/6.0.1", + "User-Agent": "deepgram-sdk/7.0.0", "X-Fern-Language": "Python", "X-Fern-Runtime": f"python/{platform.python_version()}", "X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}", "X-Fern-SDK-Name": "deepgram-sdk", - "X-Fern-SDK-Version": "6.0.1", + "X-Fern-SDK-Version": "7.0.0", **(self.get_custom_headers() or {}), } headers["Authorization"] = f"Token {self.api_key}" diff --git a/src/deepgram/environment.py b/src/deepgram/environment.py index 240d7ca4..e514ef69 100644 --- a/src/deepgram/environment.py +++ b/src/deepgram/environment.py @@ -7,15 +7,15 @@ class DeepgramClientEnvironment: PRODUCTION: DeepgramClientEnvironment AGENT: DeepgramClientEnvironment - def __init__(self, *, base: str, production: str, agent: str): + def __init__(self, *, base: str, agent: str, production: str): self.base = base - self.production = production self.agent = agent + self.production = production DeepgramClientEnvironment.PRODUCTION = DeepgramClientEnvironment( - base="https://api.deepgram.com", production="wss://api.deepgram.com", agent="wss://agent.deepgram.com" + base="https://api.deepgram.com", agent="wss://agent.deepgram.com", production="wss://api.deepgram.com" ) DeepgramClientEnvironment.AGENT = DeepgramClientEnvironment( - base="https://agent.deepgram.com", production="wss://api.deepgram.com", agent="wss://agent.deepgram.com" + base="https://agent.deepgram.com", agent="wss://agent.deepgram.com", production="wss://api.deepgram.com" ) diff --git a/src/deepgram/listen/__init__.py b/src/deepgram/listen/__init__.py index 42a8267f..6a178489 100644 --- a/src/deepgram/listen/__init__.py +++ b/src/deepgram/listen/__init__.py @@ -42,6 +42,16 @@ ListenV2CloseStream, ListenV2CloseStreamParams, ListenV2CloseStreamType, + ListenV2Configure, + ListenV2ConfigureFailure, + ListenV2ConfigureFailureParams, + ListenV2ConfigureParams, + ListenV2ConfigureSuccess, + ListenV2ConfigureSuccessParams, + ListenV2ConfigureSuccessThresholds, + ListenV2ConfigureSuccessThresholdsParams, + ListenV2ConfigureThresholds, + ListenV2ConfigureThresholdsParams, ListenV2Connected, ListenV2ConnectedParams, ListenV2FatalError, @@ -85,6 +95,16 @@ "ListenV2CloseStream": ".v2", "ListenV2CloseStreamParams": ".v2", "ListenV2CloseStreamType": ".v2", + "ListenV2Configure": ".v2", + "ListenV2ConfigureFailure": ".v2", + "ListenV2ConfigureFailureParams": ".v2", + "ListenV2ConfigureParams": ".v2", + "ListenV2ConfigureSuccess": ".v2", + "ListenV2ConfigureSuccessParams": ".v2", + "ListenV2ConfigureSuccessThresholds": ".v2", + "ListenV2ConfigureSuccessThresholdsParams": ".v2", + "ListenV2ConfigureThresholds": ".v2", + "ListenV2ConfigureThresholdsParams": ".v2", "ListenV2Connected": ".v2", "ListenV2ConnectedParams": ".v2", "ListenV2FatalError": ".v2", @@ -153,6 +173,16 @@ def __dir__(): "ListenV2CloseStream", "ListenV2CloseStreamParams", "ListenV2CloseStreamType", + "ListenV2Configure", + "ListenV2ConfigureFailure", + "ListenV2ConfigureFailureParams", + "ListenV2ConfigureParams", + "ListenV2ConfigureSuccess", + "ListenV2ConfigureSuccessParams", + "ListenV2ConfigureSuccessThresholds", + "ListenV2ConfigureSuccessThresholdsParams", + "ListenV2ConfigureThresholds", + "ListenV2ConfigureThresholdsParams", "ListenV2Connected", "ListenV2ConnectedParams", "ListenV2FatalError", diff --git a/src/deepgram/listen/v1/raw_client.py b/src/deepgram/listen/v1/raw_client.py index 7b2d6bd6..f85fe623 100644 --- a/src/deepgram/listen/v1/raw_client.py +++ b/src/deepgram/listen/v1/raw_client.py @@ -12,6 +12,34 @@ from ...core.remove_none_from_dict import remove_none_from_dict from ...core.request_options import RequestOptions from ...core.websocket_compat import InvalidWebSocketStatus, get_status_code +from ...types.listen_v1callback import ListenV1Callback +from ...types.listen_v1callback_method import ListenV1CallbackMethod +from ...types.listen_v1channels import ListenV1Channels +from ...types.listen_v1detect_entities import ListenV1DetectEntities +from ...types.listen_v1diarize import ListenV1Diarize +from ...types.listen_v1dictation import ListenV1Dictation +from ...types.listen_v1encoding import ListenV1Encoding +from ...types.listen_v1endpointing import ListenV1Endpointing +from ...types.listen_v1extra import ListenV1Extra +from ...types.listen_v1interim_results import ListenV1InterimResults +from ...types.listen_v1keyterm import ListenV1Keyterm +from ...types.listen_v1keywords import ListenV1Keywords +from ...types.listen_v1language import ListenV1Language +from ...types.listen_v1mip_opt_out import ListenV1MipOptOut +from ...types.listen_v1model import ListenV1Model +from ...types.listen_v1multichannel import ListenV1Multichannel +from ...types.listen_v1numerals import ListenV1Numerals +from ...types.listen_v1profanity_filter import ListenV1ProfanityFilter +from ...types.listen_v1punctuate import ListenV1Punctuate +from ...types.listen_v1redact import ListenV1Redact +from ...types.listen_v1replace import ListenV1Replace +from ...types.listen_v1sample_rate import ListenV1SampleRate +from ...types.listen_v1search import ListenV1Search +from ...types.listen_v1smart_format import ListenV1SmartFormat +from ...types.listen_v1tag import ListenV1Tag +from ...types.listen_v1utterance_end_ms import ListenV1UtteranceEndMs +from ...types.listen_v1vad_events import ListenV1VadEvents +from ...types.listen_v1version import ListenV1Version from .socket_client import AsyncV1SocketClient, V1SocketClient try: @@ -28,34 +56,34 @@ def __init__(self, *, client_wrapper: SyncClientWrapper): def connect( self, *, - callback: typing.Optional[str] = None, - callback_method: typing.Optional[str] = None, - channels: typing.Optional[str] = None, - detect_entities: typing.Optional[str] = None, - diarize: typing.Optional[str] = None, - dictation: typing.Optional[str] = None, - encoding: typing.Optional[str] = None, - endpointing: typing.Optional[str] = None, - extra: typing.Optional[str] = None, - interim_results: typing.Optional[str] = None, - keyterm: typing.Optional[str] = None, - keywords: typing.Optional[str] = None, - language: typing.Optional[str] = None, - mip_opt_out: typing.Optional[str] = None, - model: str, - multichannel: typing.Optional[str] = None, - numerals: typing.Optional[str] = None, - profanity_filter: typing.Optional[str] = None, - punctuate: typing.Optional[str] = None, - redact: typing.Optional[str] = None, - replace: typing.Optional[str] = None, - sample_rate: typing.Optional[str] = None, - search: typing.Optional[str] = None, - smart_format: typing.Optional[str] = None, - tag: typing.Optional[str] = None, - utterance_end_ms: typing.Optional[str] = None, - vad_events: typing.Optional[str] = None, - version: typing.Optional[str] = None, + callback: typing.Optional[ListenV1Callback] = None, + callback_method: typing.Optional[ListenV1CallbackMethod] = None, + channels: typing.Optional[ListenV1Channels] = None, + detect_entities: typing.Optional[ListenV1DetectEntities] = None, + diarize: typing.Optional[ListenV1Diarize] = None, + dictation: typing.Optional[ListenV1Dictation] = None, + encoding: typing.Optional[ListenV1Encoding] = None, + endpointing: typing.Optional[ListenV1Endpointing] = None, + extra: typing.Optional[ListenV1Extra] = None, + interim_results: typing.Optional[ListenV1InterimResults] = None, + keyterm: typing.Optional[ListenV1Keyterm] = None, + keywords: typing.Optional[ListenV1Keywords] = None, + language: typing.Optional[ListenV1Language] = None, + mip_opt_out: typing.Optional[ListenV1MipOptOut] = None, + model: ListenV1Model, + multichannel: typing.Optional[ListenV1Multichannel] = None, + numerals: typing.Optional[ListenV1Numerals] = None, + profanity_filter: typing.Optional[ListenV1ProfanityFilter] = None, + punctuate: typing.Optional[ListenV1Punctuate] = None, + redact: typing.Optional[ListenV1Redact] = None, + replace: typing.Optional[ListenV1Replace] = None, + sample_rate: typing.Optional[ListenV1SampleRate] = None, + search: typing.Optional[ListenV1Search] = None, + smart_format: typing.Optional[ListenV1SmartFormat] = None, + tag: typing.Optional[ListenV1Tag] = None, + utterance_end_ms: typing.Optional[ListenV1UtteranceEndMs] = None, + vad_events: typing.Optional[ListenV1VadEvents] = None, + version: typing.Optional[ListenV1Version] = None, authorization: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> typing.Iterator[V1SocketClient]: @@ -64,67 +92,67 @@ def connect( Parameters ---------- - callback : typing.Optional[str] + callback : typing.Optional[ListenV1Callback] - callback_method : typing.Optional[str] + callback_method : typing.Optional[ListenV1CallbackMethod] - channels : typing.Optional[str] + channels : typing.Optional[ListenV1Channels] - detect_entities : typing.Optional[str] + detect_entities : typing.Optional[ListenV1DetectEntities] - diarize : typing.Optional[str] + diarize : typing.Optional[ListenV1Diarize] - dictation : typing.Optional[str] + dictation : typing.Optional[ListenV1Dictation] - encoding : typing.Optional[str] + encoding : typing.Optional[ListenV1Encoding] - endpointing : typing.Optional[str] + endpointing : typing.Optional[ListenV1Endpointing] - extra : typing.Optional[str] + extra : typing.Optional[ListenV1Extra] - interim_results : typing.Optional[str] + interim_results : typing.Optional[ListenV1InterimResults] - keyterm : typing.Optional[str] + keyterm : typing.Optional[ListenV1Keyterm] - keywords : typing.Optional[str] + keywords : typing.Optional[ListenV1Keywords] - language : typing.Optional[str] + language : typing.Optional[ListenV1Language] - mip_opt_out : typing.Optional[str] + mip_opt_out : typing.Optional[ListenV1MipOptOut] - model : str + model : ListenV1Model AI model to use for the transcription - multichannel : typing.Optional[str] + multichannel : typing.Optional[ListenV1Multichannel] - numerals : typing.Optional[str] + numerals : typing.Optional[ListenV1Numerals] - profanity_filter : typing.Optional[str] + profanity_filter : typing.Optional[ListenV1ProfanityFilter] - punctuate : typing.Optional[str] + punctuate : typing.Optional[ListenV1Punctuate] - redact : typing.Optional[str] + redact : typing.Optional[ListenV1Redact] - replace : typing.Optional[str] + replace : typing.Optional[ListenV1Replace] - sample_rate : typing.Optional[str] + sample_rate : typing.Optional[ListenV1SampleRate] - search : typing.Optional[str] + search : typing.Optional[ListenV1Search] - smart_format : typing.Optional[str] + smart_format : typing.Optional[ListenV1SmartFormat] - tag : typing.Optional[str] + tag : typing.Optional[ListenV1Tag] - utterance_end_ms : typing.Optional[str] + utterance_end_ms : typing.Optional[ListenV1UtteranceEndMs] - vad_events : typing.Optional[str] + vad_events : typing.Optional[ListenV1VadEvents] - version : typing.Optional[str] + version : typing.Optional[ListenV1Version] authorization : typing.Optional[str] - Use your API key for authentication, or alternatively generate a [temporary token](/guides/fundamentals/token-based-authentication) and pass it via the `token` query parameter. + Use your API key or a [temporary token](/guides/fundamentals/token-based-authentication) for authentication via the `Authorization` header. In client-side environments where custom headers are not supported, use the [`Sec-WebSocket-Protocol`](/guides/deep-dives/using-the-sec-websocket-protocol) header instead. - **Example:** `token %DEEPGRAM_API_KEY%` or `bearer %DEEPGRAM_TOKEN%` + **Example:** `Authorization: Token %DEEPGRAM_API_KEY%` or `Authorization: Bearer %DEEPGRAM_TOKEN%` request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -208,34 +236,34 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper): async def connect( self, *, - callback: typing.Optional[str] = None, - callback_method: typing.Optional[str] = None, - channels: typing.Optional[str] = None, - detect_entities: typing.Optional[str] = None, - diarize: typing.Optional[str] = None, - dictation: typing.Optional[str] = None, - encoding: typing.Optional[str] = None, - endpointing: typing.Optional[str] = None, - extra: typing.Optional[str] = None, - interim_results: typing.Optional[str] = None, - keyterm: typing.Optional[str] = None, - keywords: typing.Optional[str] = None, - language: typing.Optional[str] = None, - mip_opt_out: typing.Optional[str] = None, - model: str, - multichannel: typing.Optional[str] = None, - numerals: typing.Optional[str] = None, - profanity_filter: typing.Optional[str] = None, - punctuate: typing.Optional[str] = None, - redact: typing.Optional[str] = None, - replace: typing.Optional[str] = None, - sample_rate: typing.Optional[str] = None, - search: typing.Optional[str] = None, - smart_format: typing.Optional[str] = None, - tag: typing.Optional[str] = None, - utterance_end_ms: typing.Optional[str] = None, - vad_events: typing.Optional[str] = None, - version: typing.Optional[str] = None, + callback: typing.Optional[ListenV1Callback] = None, + callback_method: typing.Optional[ListenV1CallbackMethod] = None, + channels: typing.Optional[ListenV1Channels] = None, + detect_entities: typing.Optional[ListenV1DetectEntities] = None, + diarize: typing.Optional[ListenV1Diarize] = None, + dictation: typing.Optional[ListenV1Dictation] = None, + encoding: typing.Optional[ListenV1Encoding] = None, + endpointing: typing.Optional[ListenV1Endpointing] = None, + extra: typing.Optional[ListenV1Extra] = None, + interim_results: typing.Optional[ListenV1InterimResults] = None, + keyterm: typing.Optional[ListenV1Keyterm] = None, + keywords: typing.Optional[ListenV1Keywords] = None, + language: typing.Optional[ListenV1Language] = None, + mip_opt_out: typing.Optional[ListenV1MipOptOut] = None, + model: ListenV1Model, + multichannel: typing.Optional[ListenV1Multichannel] = None, + numerals: typing.Optional[ListenV1Numerals] = None, + profanity_filter: typing.Optional[ListenV1ProfanityFilter] = None, + punctuate: typing.Optional[ListenV1Punctuate] = None, + redact: typing.Optional[ListenV1Redact] = None, + replace: typing.Optional[ListenV1Replace] = None, + sample_rate: typing.Optional[ListenV1SampleRate] = None, + search: typing.Optional[ListenV1Search] = None, + smart_format: typing.Optional[ListenV1SmartFormat] = None, + tag: typing.Optional[ListenV1Tag] = None, + utterance_end_ms: typing.Optional[ListenV1UtteranceEndMs] = None, + vad_events: typing.Optional[ListenV1VadEvents] = None, + version: typing.Optional[ListenV1Version] = None, authorization: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> typing.AsyncIterator[AsyncV1SocketClient]: @@ -244,67 +272,67 @@ async def connect( Parameters ---------- - callback : typing.Optional[str] + callback : typing.Optional[ListenV1Callback] - callback_method : typing.Optional[str] + callback_method : typing.Optional[ListenV1CallbackMethod] - channels : typing.Optional[str] + channels : typing.Optional[ListenV1Channels] - detect_entities : typing.Optional[str] + detect_entities : typing.Optional[ListenV1DetectEntities] - diarize : typing.Optional[str] + diarize : typing.Optional[ListenV1Diarize] - dictation : typing.Optional[str] + dictation : typing.Optional[ListenV1Dictation] - encoding : typing.Optional[str] + encoding : typing.Optional[ListenV1Encoding] - endpointing : typing.Optional[str] + endpointing : typing.Optional[ListenV1Endpointing] - extra : typing.Optional[str] + extra : typing.Optional[ListenV1Extra] - interim_results : typing.Optional[str] + interim_results : typing.Optional[ListenV1InterimResults] - keyterm : typing.Optional[str] + keyterm : typing.Optional[ListenV1Keyterm] - keywords : typing.Optional[str] + keywords : typing.Optional[ListenV1Keywords] - language : typing.Optional[str] + language : typing.Optional[ListenV1Language] - mip_opt_out : typing.Optional[str] + mip_opt_out : typing.Optional[ListenV1MipOptOut] - model : str + model : ListenV1Model AI model to use for the transcription - multichannel : typing.Optional[str] + multichannel : typing.Optional[ListenV1Multichannel] - numerals : typing.Optional[str] + numerals : typing.Optional[ListenV1Numerals] - profanity_filter : typing.Optional[str] + profanity_filter : typing.Optional[ListenV1ProfanityFilter] - punctuate : typing.Optional[str] + punctuate : typing.Optional[ListenV1Punctuate] - redact : typing.Optional[str] + redact : typing.Optional[ListenV1Redact] - replace : typing.Optional[str] + replace : typing.Optional[ListenV1Replace] - sample_rate : typing.Optional[str] + sample_rate : typing.Optional[ListenV1SampleRate] - search : typing.Optional[str] + search : typing.Optional[ListenV1Search] - smart_format : typing.Optional[str] + smart_format : typing.Optional[ListenV1SmartFormat] - tag : typing.Optional[str] + tag : typing.Optional[ListenV1Tag] - utterance_end_ms : typing.Optional[str] + utterance_end_ms : typing.Optional[ListenV1UtteranceEndMs] - vad_events : typing.Optional[str] + vad_events : typing.Optional[ListenV1VadEvents] - version : typing.Optional[str] + version : typing.Optional[ListenV1Version] authorization : typing.Optional[str] - Use your API key for authentication, or alternatively generate a [temporary token](/guides/fundamentals/token-based-authentication) and pass it via the `token` query parameter. + Use your API key or a [temporary token](/guides/fundamentals/token-based-authentication) for authentication via the `Authorization` header. In client-side environments where custom headers are not supported, use the [`Sec-WebSocket-Protocol`](/guides/deep-dives/using-the-sec-websocket-protocol) header instead. - **Example:** `token %DEEPGRAM_API_KEY%` or `bearer %DEEPGRAM_TOKEN%` + **Example:** `Authorization: Token %DEEPGRAM_API_KEY%` or `Authorization: Bearer %DEEPGRAM_TOKEN%` request_options : typing.Optional[RequestOptions] Request-specific configuration. diff --git a/src/deepgram/listen/v2/__init__.py b/src/deepgram/listen/v2/__init__.py index db7c724c..ca134a12 100644 --- a/src/deepgram/listen/v2/__init__.py +++ b/src/deepgram/listen/v2/__init__.py @@ -9,6 +9,11 @@ from .types import ( ListenV2CloseStream, ListenV2CloseStreamType, + ListenV2Configure, + ListenV2ConfigureFailure, + ListenV2ConfigureSuccess, + ListenV2ConfigureSuccessThresholds, + ListenV2ConfigureThresholds, ListenV2Connected, ListenV2FatalError, ListenV2TurnInfo, @@ -17,6 +22,11 @@ ) from .requests import ( ListenV2CloseStreamParams, + ListenV2ConfigureFailureParams, + ListenV2ConfigureParams, + ListenV2ConfigureSuccessParams, + ListenV2ConfigureSuccessThresholdsParams, + ListenV2ConfigureThresholdsParams, ListenV2ConnectedParams, ListenV2FatalErrorParams, ListenV2TurnInfoParams, @@ -26,6 +36,16 @@ "ListenV2CloseStream": ".types", "ListenV2CloseStreamParams": ".requests", "ListenV2CloseStreamType": ".types", + "ListenV2Configure": ".types", + "ListenV2ConfigureFailure": ".types", + "ListenV2ConfigureFailureParams": ".requests", + "ListenV2ConfigureParams": ".requests", + "ListenV2ConfigureSuccess": ".types", + "ListenV2ConfigureSuccessParams": ".requests", + "ListenV2ConfigureSuccessThresholds": ".types", + "ListenV2ConfigureSuccessThresholdsParams": ".requests", + "ListenV2ConfigureThresholds": ".types", + "ListenV2ConfigureThresholdsParams": ".requests", "ListenV2Connected": ".types", "ListenV2ConnectedParams": ".requests", "ListenV2FatalError": ".types", @@ -63,6 +83,16 @@ def __dir__(): "ListenV2CloseStream", "ListenV2CloseStreamParams", "ListenV2CloseStreamType", + "ListenV2Configure", + "ListenV2ConfigureFailure", + "ListenV2ConfigureFailureParams", + "ListenV2ConfigureParams", + "ListenV2ConfigureSuccess", + "ListenV2ConfigureSuccessParams", + "ListenV2ConfigureSuccessThresholds", + "ListenV2ConfigureSuccessThresholdsParams", + "ListenV2ConfigureThresholds", + "ListenV2ConfigureThresholdsParams", "ListenV2Connected", "ListenV2ConnectedParams", "ListenV2FatalError", diff --git a/src/deepgram/listen/v2/raw_client.py b/src/deepgram/listen/v2/raw_client.py index 5b3819c9..ad04efae 100644 --- a/src/deepgram/listen/v2/raw_client.py +++ b/src/deepgram/listen/v2/raw_client.py @@ -11,7 +11,16 @@ from ...core.query_encoder import encode_query from ...core.remove_none_from_dict import remove_none_from_dict from ...core.request_options import RequestOptions +from ...core.serialization import convert_and_respect_annotation_metadata from ...core.websocket_compat import InvalidWebSocketStatus, get_status_code +from ...requests.listen_v2keyterm import ListenV2KeytermParams +from ...types.listen_v2eager_eot_threshold import ListenV2EagerEotThreshold +from ...types.listen_v2encoding import ListenV2Encoding +from ...types.listen_v2eot_threshold import ListenV2EotThreshold +from ...types.listen_v2eot_timeout_ms import ListenV2EotTimeoutMs +from ...types.listen_v2mip_opt_out import ListenV2MipOptOut +from ...types.listen_v2sample_rate import ListenV2SampleRate +from ...types.listen_v2tag import ListenV2Tag from .socket_client import AsyncV2SocketClient, V2SocketClient try: @@ -28,15 +37,14 @@ def __init__(self, *, client_wrapper: SyncClientWrapper): def connect( self, *, - model: str, - encoding: typing.Optional[str] = None, - sample_rate: typing.Optional[str] = None, - eager_eot_threshold: typing.Optional[str] = None, - eot_threshold: typing.Optional[str] = None, - eot_timeout_ms: typing.Optional[str] = None, - keyterm: typing.Optional[str] = None, - mip_opt_out: typing.Optional[str] = None, - tag: typing.Optional[str] = None, + encoding: typing.Optional[ListenV2Encoding] = None, + sample_rate: typing.Optional[ListenV2SampleRate] = None, + eager_eot_threshold: typing.Optional[ListenV2EagerEotThreshold] = None, + eot_threshold: typing.Optional[ListenV2EotThreshold] = None, + eot_timeout_ms: typing.Optional[ListenV2EotTimeoutMs] = None, + keyterm: typing.Optional[ListenV2KeytermParams] = None, + mip_opt_out: typing.Optional[ListenV2MipOptOut] = None, + tag: typing.Optional[ListenV2Tag] = None, authorization: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> typing.Iterator[V2SocketClient]: @@ -46,28 +54,26 @@ def connect( Parameters ---------- - model : str + encoding : typing.Optional[ListenV2Encoding] - encoding : typing.Optional[str] + sample_rate : typing.Optional[ListenV2SampleRate] - sample_rate : typing.Optional[str] + eager_eot_threshold : typing.Optional[ListenV2EagerEotThreshold] - eager_eot_threshold : typing.Optional[str] + eot_threshold : typing.Optional[ListenV2EotThreshold] - eot_threshold : typing.Optional[str] + eot_timeout_ms : typing.Optional[ListenV2EotTimeoutMs] - eot_timeout_ms : typing.Optional[str] + keyterm : typing.Optional[ListenV2KeytermParams] - keyterm : typing.Optional[str] + mip_opt_out : typing.Optional[ListenV2MipOptOut] - mip_opt_out : typing.Optional[str] - - tag : typing.Optional[str] + tag : typing.Optional[ListenV2Tag] authorization : typing.Optional[str] - Use your API key for authentication, or alternatively generate a [temporary token](/guides/fundamentals/token-based-authentication) and pass it via the `token` query parameter. + Use your API key or a [temporary token](/guides/fundamentals/token-based-authentication) for authentication via the `Authorization` header. In client-side environments where custom headers are not supported, use the [`Sec-WebSocket-Protocol`](/guides/deep-dives/using-the-sec-websocket-protocol) header instead. - **Example:** `token %DEEPGRAM_API_KEY%` or `bearer %DEEPGRAM_TOKEN%` + **Example:** `Authorization: Token %DEEPGRAM_API_KEY%` or `Authorization: Bearer %DEEPGRAM_TOKEN%` request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -81,13 +87,19 @@ def connect( jsonable_encoder( remove_none_from_dict( { - "model": model, + "model": "flux-general-en", "encoding": encoding, "sample_rate": sample_rate, "eager_eot_threshold": eager_eot_threshold, "eot_threshold": eot_threshold, "eot_timeout_ms": eot_timeout_ms, - "keyterm": keyterm, + "keyterm": convert_and_respect_annotation_metadata( + object_=convert_and_respect_annotation_metadata( + object_=keyterm, annotation=ListenV2KeytermParams, direction="write" + ), + annotation=ListenV2KeytermParams, + direction="write", + ), "mip_opt_out": mip_opt_out, "tag": tag, **( @@ -132,15 +144,14 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper): async def connect( self, *, - model: str, - encoding: typing.Optional[str] = None, - sample_rate: typing.Optional[str] = None, - eager_eot_threshold: typing.Optional[str] = None, - eot_threshold: typing.Optional[str] = None, - eot_timeout_ms: typing.Optional[str] = None, - keyterm: typing.Optional[str] = None, - mip_opt_out: typing.Optional[str] = None, - tag: typing.Optional[str] = None, + encoding: typing.Optional[ListenV2Encoding] = None, + sample_rate: typing.Optional[ListenV2SampleRate] = None, + eager_eot_threshold: typing.Optional[ListenV2EagerEotThreshold] = None, + eot_threshold: typing.Optional[ListenV2EotThreshold] = None, + eot_timeout_ms: typing.Optional[ListenV2EotTimeoutMs] = None, + keyterm: typing.Optional[ListenV2KeytermParams] = None, + mip_opt_out: typing.Optional[ListenV2MipOptOut] = None, + tag: typing.Optional[ListenV2Tag] = None, authorization: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> typing.AsyncIterator[AsyncV2SocketClient]: @@ -150,28 +161,26 @@ async def connect( Parameters ---------- - model : str + encoding : typing.Optional[ListenV2Encoding] - encoding : typing.Optional[str] + sample_rate : typing.Optional[ListenV2SampleRate] - sample_rate : typing.Optional[str] + eager_eot_threshold : typing.Optional[ListenV2EagerEotThreshold] - eager_eot_threshold : typing.Optional[str] + eot_threshold : typing.Optional[ListenV2EotThreshold] - eot_threshold : typing.Optional[str] + eot_timeout_ms : typing.Optional[ListenV2EotTimeoutMs] - eot_timeout_ms : typing.Optional[str] + keyterm : typing.Optional[ListenV2KeytermParams] - keyterm : typing.Optional[str] + mip_opt_out : typing.Optional[ListenV2MipOptOut] - mip_opt_out : typing.Optional[str] - - tag : typing.Optional[str] + tag : typing.Optional[ListenV2Tag] authorization : typing.Optional[str] - Use your API key for authentication, or alternatively generate a [temporary token](/guides/fundamentals/token-based-authentication) and pass it via the `token` query parameter. + Use your API key or a [temporary token](/guides/fundamentals/token-based-authentication) for authentication via the `Authorization` header. In client-side environments where custom headers are not supported, use the [`Sec-WebSocket-Protocol`](/guides/deep-dives/using-the-sec-websocket-protocol) header instead. - **Example:** `token %DEEPGRAM_API_KEY%` or `bearer %DEEPGRAM_TOKEN%` + **Example:** `Authorization: Token %DEEPGRAM_API_KEY%` or `Authorization: Bearer %DEEPGRAM_TOKEN%` request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -185,13 +194,19 @@ async def connect( jsonable_encoder( remove_none_from_dict( { - "model": model, + "model": "flux-general-en", "encoding": encoding, "sample_rate": sample_rate, "eager_eot_threshold": eager_eot_threshold, "eot_threshold": eot_threshold, "eot_timeout_ms": eot_timeout_ms, - "keyterm": keyterm, + "keyterm": convert_and_respect_annotation_metadata( + object_=convert_and_respect_annotation_metadata( + object_=keyterm, annotation=ListenV2KeytermParams, direction="write" + ), + annotation=ListenV2KeytermParams, + direction="write", + ), "mip_opt_out": mip_opt_out, "tag": tag, **( diff --git a/src/deepgram/listen/v2/requests/__init__.py b/src/deepgram/listen/v2/requests/__init__.py index 96ce5ece..84e08faa 100644 --- a/src/deepgram/listen/v2/requests/__init__.py +++ b/src/deepgram/listen/v2/requests/__init__.py @@ -7,12 +7,22 @@ if typing.TYPE_CHECKING: from .listen_v2close_stream import ListenV2CloseStreamParams + from .listen_v2configure import ListenV2ConfigureParams + from .listen_v2configure_failure import ListenV2ConfigureFailureParams + from .listen_v2configure_success import ListenV2ConfigureSuccessParams + from .listen_v2configure_success_thresholds import ListenV2ConfigureSuccessThresholdsParams + from .listen_v2configure_thresholds import ListenV2ConfigureThresholdsParams from .listen_v2connected import ListenV2ConnectedParams from .listen_v2fatal_error import ListenV2FatalErrorParams from .listen_v2turn_info import ListenV2TurnInfoParams from .listen_v2turn_info_words_item import ListenV2TurnInfoWordsItemParams _dynamic_imports: typing.Dict[str, str] = { "ListenV2CloseStreamParams": ".listen_v2close_stream", + "ListenV2ConfigureFailureParams": ".listen_v2configure_failure", + "ListenV2ConfigureParams": ".listen_v2configure", + "ListenV2ConfigureSuccessParams": ".listen_v2configure_success", + "ListenV2ConfigureSuccessThresholdsParams": ".listen_v2configure_success_thresholds", + "ListenV2ConfigureThresholdsParams": ".listen_v2configure_thresholds", "ListenV2ConnectedParams": ".listen_v2connected", "ListenV2FatalErrorParams": ".listen_v2fatal_error", "ListenV2TurnInfoParams": ".listen_v2turn_info", @@ -43,6 +53,11 @@ def __dir__(): __all__ = [ "ListenV2CloseStreamParams", + "ListenV2ConfigureFailureParams", + "ListenV2ConfigureParams", + "ListenV2ConfigureSuccessParams", + "ListenV2ConfigureSuccessThresholdsParams", + "ListenV2ConfigureThresholdsParams", "ListenV2ConnectedParams", "ListenV2FatalErrorParams", "ListenV2TurnInfoParams", diff --git a/src/deepgram/listen/v2/requests/listen_v2configure.py b/src/deepgram/listen/v2/requests/listen_v2configure.py new file mode 100644 index 00000000..2685339a --- /dev/null +++ b/src/deepgram/listen/v2/requests/listen_v2configure.py @@ -0,0 +1,22 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import typing_extensions +from ....requests.listen_v2keyterm import ListenV2KeytermParams +from .listen_v2configure_thresholds import ListenV2ConfigureThresholdsParams + + +class ListenV2ConfigureParams(typing_extensions.TypedDict): + type: typing.Literal["Configure"] + """ + Message type identifier + """ + + thresholds: typing_extensions.NotRequired[ListenV2ConfigureThresholdsParams] + """ + Updates each parameter, if it is supplied. If a particular threshold parameter + is not supplied, the configuration continues using the currently configured value. + """ + + keyterms: typing_extensions.NotRequired[ListenV2KeytermParams] diff --git a/src/deepgram/listen/v2/requests/listen_v2configure_failure.py b/src/deepgram/listen/v2/requests/listen_v2configure_failure.py new file mode 100644 index 00000000..bfe53f86 --- /dev/null +++ b/src/deepgram/listen/v2/requests/listen_v2configure_failure.py @@ -0,0 +1,24 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import typing_extensions + + +class ListenV2ConfigureFailureParams(typing_extensions.TypedDict): + type: typing.Literal["ConfigureFailure"] + """ + Message type identifier + """ + + request_id: str + """ + The unique identifier of the request + """ + + sequence_id: float + """ + Starts at `0` and increments for each message the server sends + to the client. This includes messages of other types, like + `TurnInfo` messages. + """ diff --git a/src/deepgram/listen/v2/requests/listen_v2configure_success.py b/src/deepgram/listen/v2/requests/listen_v2configure_success.py new file mode 100644 index 00000000..92706d17 --- /dev/null +++ b/src/deepgram/listen/v2/requests/listen_v2configure_success.py @@ -0,0 +1,33 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import typing_extensions +from ....requests.listen_v2keyterm import ListenV2KeytermParams +from .listen_v2configure_success_thresholds import ListenV2ConfigureSuccessThresholdsParams + + +class ListenV2ConfigureSuccessParams(typing_extensions.TypedDict): + type: typing.Literal["ConfigureSuccess"] + """ + Message type identifier + """ + + request_id: str + """ + The unique identifier of the request + """ + + thresholds: ListenV2ConfigureSuccessThresholdsParams + """ + Updates each parameter, if it is supplied. If a particular threshold parameter + is not supplied, the configuration continues using the currently configured value. + """ + + keyterms: ListenV2KeytermParams + sequence_id: float + """ + Starts at `0` and increments for each message the server sends + to the client. This includes messages of other types, like + `TurnInfo` messages. + """ diff --git a/src/deepgram/listen/v2/requests/listen_v2configure_success_thresholds.py b/src/deepgram/listen/v2/requests/listen_v2configure_success_thresholds.py new file mode 100644 index 00000000..7a16cdf6 --- /dev/null +++ b/src/deepgram/listen/v2/requests/listen_v2configure_success_thresholds.py @@ -0,0 +1,17 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing_extensions +from ....types.listen_v2eager_eot_threshold import ListenV2EagerEotThreshold +from ....types.listen_v2eot_threshold import ListenV2EotThreshold +from ....types.listen_v2eot_timeout_ms import ListenV2EotTimeoutMs + + +class ListenV2ConfigureSuccessThresholdsParams(typing_extensions.TypedDict): + """ + Updates each parameter, if it is supplied. If a particular threshold parameter + is not supplied, the configuration continues using the currently configured value. + """ + + eager_eot_threshold: typing_extensions.NotRequired[ListenV2EagerEotThreshold] + eot_threshold: typing_extensions.NotRequired[ListenV2EotThreshold] + eot_timeout_ms: typing_extensions.NotRequired[ListenV2EotTimeoutMs] diff --git a/src/deepgram/listen/v2/requests/listen_v2configure_thresholds.py b/src/deepgram/listen/v2/requests/listen_v2configure_thresholds.py new file mode 100644 index 00000000..4f81602f --- /dev/null +++ b/src/deepgram/listen/v2/requests/listen_v2configure_thresholds.py @@ -0,0 +1,17 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing_extensions +from ....types.listen_v2eager_eot_threshold import ListenV2EagerEotThreshold +from ....types.listen_v2eot_threshold import ListenV2EotThreshold +from ....types.listen_v2eot_timeout_ms import ListenV2EotTimeoutMs + + +class ListenV2ConfigureThresholdsParams(typing_extensions.TypedDict): + """ + Updates each parameter, if it is supplied. If a particular threshold parameter + is not supplied, the configuration continues using the currently configured value. + """ + + eager_eot_threshold: typing_extensions.NotRequired[ListenV2EagerEotThreshold] + eot_threshold: typing_extensions.NotRequired[ListenV2EotThreshold] + eot_timeout_ms: typing_extensions.NotRequired[ListenV2EotTimeoutMs] diff --git a/src/deepgram/listen/v2/types/__init__.py b/src/deepgram/listen/v2/types/__init__.py index 229417bf..15cc6fba 100644 --- a/src/deepgram/listen/v2/types/__init__.py +++ b/src/deepgram/listen/v2/types/__init__.py @@ -8,6 +8,11 @@ if typing.TYPE_CHECKING: from .listen_v2close_stream import ListenV2CloseStream from .listen_v2close_stream_type import ListenV2CloseStreamType + from .listen_v2configure import ListenV2Configure + from .listen_v2configure_failure import ListenV2ConfigureFailure + from .listen_v2configure_success import ListenV2ConfigureSuccess + from .listen_v2configure_success_thresholds import ListenV2ConfigureSuccessThresholds + from .listen_v2configure_thresholds import ListenV2ConfigureThresholds from .listen_v2connected import ListenV2Connected from .listen_v2fatal_error import ListenV2FatalError from .listen_v2turn_info import ListenV2TurnInfo @@ -16,6 +21,11 @@ _dynamic_imports: typing.Dict[str, str] = { "ListenV2CloseStream": ".listen_v2close_stream", "ListenV2CloseStreamType": ".listen_v2close_stream_type", + "ListenV2Configure": ".listen_v2configure", + "ListenV2ConfigureFailure": ".listen_v2configure_failure", + "ListenV2ConfigureSuccess": ".listen_v2configure_success", + "ListenV2ConfigureSuccessThresholds": ".listen_v2configure_success_thresholds", + "ListenV2ConfigureThresholds": ".listen_v2configure_thresholds", "ListenV2Connected": ".listen_v2connected", "ListenV2FatalError": ".listen_v2fatal_error", "ListenV2TurnInfo": ".listen_v2turn_info", @@ -48,6 +58,11 @@ def __dir__(): __all__ = [ "ListenV2CloseStream", "ListenV2CloseStreamType", + "ListenV2Configure", + "ListenV2ConfigureFailure", + "ListenV2ConfigureSuccess", + "ListenV2ConfigureSuccessThresholds", + "ListenV2ConfigureThresholds", "ListenV2Connected", "ListenV2FatalError", "ListenV2TurnInfo", diff --git a/src/deepgram/listen/v2/types/listen_v2configure.py b/src/deepgram/listen/v2/types/listen_v2configure.py new file mode 100644 index 00000000..e79207eb --- /dev/null +++ b/src/deepgram/listen/v2/types/listen_v2configure.py @@ -0,0 +1,33 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ....core.pydantic_utilities import IS_PYDANTIC_V2 +from ....core.unchecked_base_model import UncheckedBaseModel +from ....types.listen_v2keyterm import ListenV2Keyterm +from .listen_v2configure_thresholds import ListenV2ConfigureThresholds + + +class ListenV2Configure(UncheckedBaseModel): + type: typing.Literal["Configure"] = pydantic.Field(default="Configure") + """ + Message type identifier + """ + + thresholds: typing.Optional[ListenV2ConfigureThresholds] = pydantic.Field(default=None) + """ + Updates each parameter, if it is supplied. If a particular threshold parameter + is not supplied, the configuration continues using the currently configured value. + """ + + keyterms: typing.Optional[ListenV2Keyterm] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/deepgram/listen/v2/types/listen_v2configure_failure.py b/src/deepgram/listen/v2/types/listen_v2configure_failure.py new file mode 100644 index 00000000..b00fc6b1 --- /dev/null +++ b/src/deepgram/listen/v2/types/listen_v2configure_failure.py @@ -0,0 +1,35 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ....core.pydantic_utilities import IS_PYDANTIC_V2 +from ....core.unchecked_base_model import UncheckedBaseModel + + +class ListenV2ConfigureFailure(UncheckedBaseModel): + type: typing.Literal["ConfigureFailure"] = pydantic.Field(default="ConfigureFailure") + """ + Message type identifier + """ + + request_id: str = pydantic.Field() + """ + The unique identifier of the request + """ + + sequence_id: float = pydantic.Field() + """ + Starts at `0` and increments for each message the server sends + to the client. This includes messages of other types, like + `TurnInfo` messages. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/deepgram/listen/v2/types/listen_v2configure_success.py b/src/deepgram/listen/v2/types/listen_v2configure_success.py new file mode 100644 index 00000000..757f1a32 --- /dev/null +++ b/src/deepgram/listen/v2/types/listen_v2configure_success.py @@ -0,0 +1,44 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ....core.pydantic_utilities import IS_PYDANTIC_V2 +from ....core.unchecked_base_model import UncheckedBaseModel +from ....types.listen_v2keyterm import ListenV2Keyterm +from .listen_v2configure_success_thresholds import ListenV2ConfigureSuccessThresholds + + +class ListenV2ConfigureSuccess(UncheckedBaseModel): + type: typing.Literal["ConfigureSuccess"] = pydantic.Field(default="ConfigureSuccess") + """ + Message type identifier + """ + + request_id: str = pydantic.Field() + """ + The unique identifier of the request + """ + + thresholds: ListenV2ConfigureSuccessThresholds = pydantic.Field() + """ + Updates each parameter, if it is supplied. If a particular threshold parameter + is not supplied, the configuration continues using the currently configured value. + """ + + keyterms: ListenV2Keyterm + sequence_id: float = pydantic.Field() + """ + Starts at `0` and increments for each message the server sends + to the client. This includes messages of other types, like + `TurnInfo` messages. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/deepgram/listen/v2/types/listen_v2configure_success_thresholds.py b/src/deepgram/listen/v2/types/listen_v2configure_success_thresholds.py new file mode 100644 index 00000000..6c719233 --- /dev/null +++ b/src/deepgram/listen/v2/types/listen_v2configure_success_thresholds.py @@ -0,0 +1,30 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ....core.pydantic_utilities import IS_PYDANTIC_V2 +from ....core.unchecked_base_model import UncheckedBaseModel +from ....types.listen_v2eager_eot_threshold import ListenV2EagerEotThreshold +from ....types.listen_v2eot_threshold import ListenV2EotThreshold +from ....types.listen_v2eot_timeout_ms import ListenV2EotTimeoutMs + + +class ListenV2ConfigureSuccessThresholds(UncheckedBaseModel): + """ + Updates each parameter, if it is supplied. If a particular threshold parameter + is not supplied, the configuration continues using the currently configured value. + """ + + eager_eot_threshold: typing.Optional[ListenV2EagerEotThreshold] = None + eot_threshold: typing.Optional[ListenV2EotThreshold] = None + eot_timeout_ms: typing.Optional[ListenV2EotTimeoutMs] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/deepgram/listen/v2/types/listen_v2configure_thresholds.py b/src/deepgram/listen/v2/types/listen_v2configure_thresholds.py new file mode 100644 index 00000000..b992c5d8 --- /dev/null +++ b/src/deepgram/listen/v2/types/listen_v2configure_thresholds.py @@ -0,0 +1,30 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ....core.pydantic_utilities import IS_PYDANTIC_V2 +from ....core.unchecked_base_model import UncheckedBaseModel +from ....types.listen_v2eager_eot_threshold import ListenV2EagerEotThreshold +from ....types.listen_v2eot_threshold import ListenV2EotThreshold +from ....types.listen_v2eot_timeout_ms import ListenV2EotTimeoutMs + + +class ListenV2ConfigureThresholds(UncheckedBaseModel): + """ + Updates each parameter, if it is supplied. If a particular threshold parameter + is not supplied, the configuration continues using the currently configured value. + """ + + eager_eot_threshold: typing.Optional[ListenV2EagerEotThreshold] = None + eot_threshold: typing.Optional[ListenV2EotThreshold] = None + eot_timeout_ms: typing.Optional[ListenV2EotTimeoutMs] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/deepgram/requests/list_project_members_v1response_members_item.py b/src/deepgram/requests/list_project_members_v1response_members_item.py index 816af80a..96c0db43 100644 --- a/src/deepgram/requests/list_project_members_v1response_members_item.py +++ b/src/deepgram/requests/list_project_members_v1response_members_item.py @@ -1,5 +1,7 @@ # This file was auto-generated by Fern from our API Definition. +import typing + import typing_extensions @@ -9,4 +11,11 @@ class ListProjectMembersV1ResponseMembersItemParams(typing_extensions.TypedDict) The unique identifier of the member """ + scopes: typing_extensions.NotRequired[typing.Sequence[str]] + """ + The API scopes of the member + """ + email: typing_extensions.NotRequired[str] + first_name: typing_extensions.NotRequired[str] + last_name: typing_extensions.NotRequired[str] diff --git a/src/deepgram/speak/v1/client.py b/src/deepgram/speak/v1/client.py index 1780af66..92785112 100644 --- a/src/deepgram/speak/v1/client.py +++ b/src/deepgram/speak/v1/client.py @@ -14,6 +14,10 @@ from ...core.remove_none_from_dict import remove_none_from_dict from ...core.request_options import RequestOptions from ...core.websocket_compat import InvalidWebSocketStatus, get_status_code +from ...types.speak_v1encoding import SpeakV1Encoding +from ...types.speak_v1mip_opt_out import SpeakV1MipOptOut +from ...types.speak_v1model import SpeakV1Model +from ...types.speak_v1sample_rate import SpeakV1SampleRate from .raw_client import AsyncRawV1Client, RawV1Client from .socket_client import AsyncV1SocketClient, V1SocketClient @@ -47,10 +51,10 @@ def with_raw_response(self) -> RawV1Client: def connect( self, *, - encoding: typing.Optional[str] = None, - mip_opt_out: typing.Optional[str] = None, - model: typing.Optional[str] = None, - sample_rate: typing.Optional[str] = None, + encoding: typing.Optional[SpeakV1Encoding] = None, + mip_opt_out: typing.Optional[SpeakV1MipOptOut] = None, + model: typing.Optional[SpeakV1Model] = None, + sample_rate: typing.Optional[SpeakV1SampleRate] = None, authorization: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> typing.Iterator[V1SocketClient]: @@ -59,18 +63,18 @@ def connect( Parameters ---------- - encoding : typing.Optional[str] + encoding : typing.Optional[SpeakV1Encoding] - mip_opt_out : typing.Optional[str] + mip_opt_out : typing.Optional[SpeakV1MipOptOut] - model : typing.Optional[str] + model : typing.Optional[SpeakV1Model] - sample_rate : typing.Optional[str] + sample_rate : typing.Optional[SpeakV1SampleRate] authorization : typing.Optional[str] - Use your API key for authentication, or alternatively generate a [temporary token](/guides/fundamentals/token-based-authentication) and pass it via the `token` query parameter. + Use your API key or a [temporary token](/guides/fundamentals/token-based-authentication) for authentication via the `Authorization` header. In client-side environments where custom headers are not supported, use the [`Sec-WebSocket-Protocol`](/guides/deep-dives/using-the-sec-websocket-protocol) header instead. - **Example:** `token %DEEPGRAM_API_KEY%` or `bearer %DEEPGRAM_TOKEN%` + **Example:** `Authorization: Token %DEEPGRAM_API_KEY%` or `Authorization: Bearer %DEEPGRAM_TOKEN%` request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -151,10 +155,10 @@ def with_raw_response(self) -> AsyncRawV1Client: async def connect( self, *, - encoding: typing.Optional[str] = None, - mip_opt_out: typing.Optional[str] = None, - model: typing.Optional[str] = None, - sample_rate: typing.Optional[str] = None, + encoding: typing.Optional[SpeakV1Encoding] = None, + mip_opt_out: typing.Optional[SpeakV1MipOptOut] = None, + model: typing.Optional[SpeakV1Model] = None, + sample_rate: typing.Optional[SpeakV1SampleRate] = None, authorization: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> typing.AsyncIterator[AsyncV1SocketClient]: @@ -163,18 +167,18 @@ async def connect( Parameters ---------- - encoding : typing.Optional[str] + encoding : typing.Optional[SpeakV1Encoding] - mip_opt_out : typing.Optional[str] + mip_opt_out : typing.Optional[SpeakV1MipOptOut] - model : typing.Optional[str] + model : typing.Optional[SpeakV1Model] - sample_rate : typing.Optional[str] + sample_rate : typing.Optional[SpeakV1SampleRate] authorization : typing.Optional[str] - Use your API key for authentication, or alternatively generate a [temporary token](/guides/fundamentals/token-based-authentication) and pass it via the `token` query parameter. + Use your API key or a [temporary token](/guides/fundamentals/token-based-authentication) for authentication via the `Authorization` header. In client-side environments where custom headers are not supported, use the [`Sec-WebSocket-Protocol`](/guides/deep-dives/using-the-sec-websocket-protocol) header instead. - **Example:** `token %DEEPGRAM_API_KEY%` or `bearer %DEEPGRAM_TOKEN%` + **Example:** `Authorization: Token %DEEPGRAM_API_KEY%` or `Authorization: Bearer %DEEPGRAM_TOKEN%` request_options : typing.Optional[RequestOptions] Request-specific configuration. diff --git a/src/deepgram/speak/v1/raw_client.py b/src/deepgram/speak/v1/raw_client.py index 0ade1093..fd739c1d 100644 --- a/src/deepgram/speak/v1/raw_client.py +++ b/src/deepgram/speak/v1/raw_client.py @@ -12,6 +12,10 @@ from ...core.remove_none_from_dict import remove_none_from_dict from ...core.request_options import RequestOptions from ...core.websocket_compat import InvalidWebSocketStatus, get_status_code +from ...types.speak_v1encoding import SpeakV1Encoding +from ...types.speak_v1mip_opt_out import SpeakV1MipOptOut +from ...types.speak_v1model import SpeakV1Model +from ...types.speak_v1sample_rate import SpeakV1SampleRate from .socket_client import AsyncV1SocketClient, V1SocketClient try: @@ -28,10 +32,10 @@ def __init__(self, *, client_wrapper: SyncClientWrapper): def connect( self, *, - encoding: typing.Optional[str] = None, - mip_opt_out: typing.Optional[str] = None, - model: typing.Optional[str] = None, - sample_rate: typing.Optional[str] = None, + encoding: typing.Optional[SpeakV1Encoding] = None, + mip_opt_out: typing.Optional[SpeakV1MipOptOut] = None, + model: typing.Optional[SpeakV1Model] = None, + sample_rate: typing.Optional[SpeakV1SampleRate] = None, authorization: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> typing.Iterator[V1SocketClient]: @@ -40,18 +44,18 @@ def connect( Parameters ---------- - encoding : typing.Optional[str] + encoding : typing.Optional[SpeakV1Encoding] - mip_opt_out : typing.Optional[str] + mip_opt_out : typing.Optional[SpeakV1MipOptOut] - model : typing.Optional[str] + model : typing.Optional[SpeakV1Model] - sample_rate : typing.Optional[str] + sample_rate : typing.Optional[SpeakV1SampleRate] authorization : typing.Optional[str] - Use your API key for authentication, or alternatively generate a [temporary token](/guides/fundamentals/token-based-authentication) and pass it via the `token` query parameter. + Use your API key or a [temporary token](/guides/fundamentals/token-based-authentication) for authentication via the `Authorization` header. In client-side environments where custom headers are not supported, use the [`Sec-WebSocket-Protocol`](/guides/deep-dives/using-the-sec-websocket-protocol) header instead. - **Example:** `token %DEEPGRAM_API_KEY%` or `bearer %DEEPGRAM_TOKEN%` + **Example:** `Authorization: Token %DEEPGRAM_API_KEY%` or `Authorization: Bearer %DEEPGRAM_TOKEN%` request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -111,10 +115,10 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper): async def connect( self, *, - encoding: typing.Optional[str] = None, - mip_opt_out: typing.Optional[str] = None, - model: typing.Optional[str] = None, - sample_rate: typing.Optional[str] = None, + encoding: typing.Optional[SpeakV1Encoding] = None, + mip_opt_out: typing.Optional[SpeakV1MipOptOut] = None, + model: typing.Optional[SpeakV1Model] = None, + sample_rate: typing.Optional[SpeakV1SampleRate] = None, authorization: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> typing.AsyncIterator[AsyncV1SocketClient]: @@ -123,18 +127,18 @@ async def connect( Parameters ---------- - encoding : typing.Optional[str] + encoding : typing.Optional[SpeakV1Encoding] - mip_opt_out : typing.Optional[str] + mip_opt_out : typing.Optional[SpeakV1MipOptOut] - model : typing.Optional[str] + model : typing.Optional[SpeakV1Model] - sample_rate : typing.Optional[str] + sample_rate : typing.Optional[SpeakV1SampleRate] authorization : typing.Optional[str] - Use your API key for authentication, or alternatively generate a [temporary token](/guides/fundamentals/token-based-authentication) and pass it via the `token` query parameter. + Use your API key or a [temporary token](/guides/fundamentals/token-based-authentication) for authentication via the `Authorization` header. In client-side environments where custom headers are not supported, use the [`Sec-WebSocket-Protocol`](/guides/deep-dives/using-the-sec-websocket-protocol) header instead. - **Example:** `token %DEEPGRAM_API_KEY%` or `bearer %DEEPGRAM_TOKEN%` + **Example:** `Authorization: Token %DEEPGRAM_API_KEY%` or `Authorization: Bearer %DEEPGRAM_TOKEN%` request_options : typing.Optional[RequestOptions] Request-specific configuration. diff --git a/src/deepgram/speak/v1/requests/speak_v1metadata.py b/src/deepgram/speak/v1/requests/speak_v1metadata.py index 89fb6809..08553952 100644 --- a/src/deepgram/speak/v1/requests/speak_v1metadata.py +++ b/src/deepgram/speak/v1/requests/speak_v1metadata.py @@ -23,10 +23,15 @@ class SpeakV1MetadataParams(typing_extensions.TypedDict): model_version: str """ - Version of the model being used + Version of the primary model being used """ model_uuid: str """ - Unique identifier for the model + Unique identifier for the primary model used + """ + + additional_model_uuids: typing_extensions.NotRequired[typing.Sequence[str]] + """ + List of unique identifiers for any additional models used to serve the request """ diff --git a/src/deepgram/speak/v1/types/speak_v1metadata.py b/src/deepgram/speak/v1/types/speak_v1metadata.py index e009a764..4bb780fc 100644 --- a/src/deepgram/speak/v1/types/speak_v1metadata.py +++ b/src/deepgram/speak/v1/types/speak_v1metadata.py @@ -25,12 +25,17 @@ class SpeakV1Metadata(UncheckedBaseModel): model_version: str = pydantic.Field() """ - Version of the model being used + Version of the primary model being used """ model_uuid: str = pydantic.Field() """ - Unique identifier for the model + Unique identifier for the primary model used + """ + + additional_model_uuids: typing.Optional[typing.List[str]] = pydantic.Field(default=None) + """ + List of unique identifiers for any additional models used to serve the request """ if IS_PYDANTIC_V2: diff --git a/src/deepgram/types/list_project_members_v1response_members_item.py b/src/deepgram/types/list_project_members_v1response_members_item.py index 745e4392..9c90f754 100644 --- a/src/deepgram/types/list_project_members_v1response_members_item.py +++ b/src/deepgram/types/list_project_members_v1response_members_item.py @@ -13,7 +13,14 @@ class ListProjectMembersV1ResponseMembersItem(UncheckedBaseModel): The unique identifier of the member """ + scopes: typing.Optional[typing.List[str]] = pydantic.Field(default=None) + """ + The API scopes of the member + """ + email: typing.Optional[str] = None + first_name: typing.Optional[str] = None + last_name: typing.Optional[str] = None if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/tests/wire/conftest.py b/tests/wire/conftest.py index 9d7c5e1d..94057458 100644 --- a/tests/wire/conftest.py +++ b/tests/wire/conftest.py @@ -46,13 +46,13 @@ def get_client(test_id: str) -> DeepgramClient: if _CLIENT_SUPPORTS_HEADERS: return DeepgramClient( - environment=DeepgramClientEnvironment(base=base_url, production=base_url, agent=base_url), + environment=DeepgramClientEnvironment(base=base_url, agent=base_url, production=base_url), headers=test_headers, api_key="test_api_key", ) return DeepgramClient( - environment=DeepgramClientEnvironment(base=base_url, production=base_url, agent=base_url), + environment=DeepgramClientEnvironment(base=base_url, agent=base_url, production=base_url), httpx_client=httpx.Client(headers=test_headers), api_key="test_api_key", )