Skip to content

Commit a51380e

Browse files
fern-api[bot]lukeocodes
authored andcommitted
feat(agent): support multi-provider speak/think configuration and typed listen parameters
1 parent 78846e8 commit a51380e

388 files changed

Lines changed: 7404 additions & 2591 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.fern/metadata.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"cliVersion": "3.77.1",
2+
"cliVersion": "4.46.0",
33
"generatorName": "fernapi/fern-python-sdk",
4-
"generatorVersion": "4.57.2",
4+
"generatorVersion": "4.62.0",
55
"generatorConfig": {
66
"client": {
77
"class_name": "BaseClient",
@@ -16,5 +16,6 @@
1616
"skip_validation": true
1717
}
1818
},
19-
"sdkVersion": "6.0.1"
19+
"originGitCommit": "879c76c78827f323e425c1640f76a6e50d6c68d3",
20+
"sdkVersion": "6.0.2"
2021
}

poetry.lock

Lines changed: 181 additions & 165 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ dynamic = ["version"]
44

55
[tool.poetry]
66
name = "deepgram-sdk"
7-
version = "6.0.1"
7+
version = "6.0.2"
88
description = ""
99
readme = "README.md"
1010
authors = []

src/deepgram/__init__.py

Lines changed: 18 additions & 192 deletions
Large diffs are not rendered by default.

src/deepgram/agent/__init__.py

Lines changed: 606 additions & 0 deletions
Large diffs are not rendered by default.

src/deepgram/agent/v1/__init__.py

Lines changed: 606 additions & 0 deletions
Large diffs are not rendered by default.

src/deepgram/agent/v1/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ def connect(
5353
Parameters
5454
----------
5555
authorization : typing.Optional[str]
56-
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.
56+
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.
5757
58-
**Example:** `token %DEEPGRAM_API_KEY%` or `bearer %DEEPGRAM_TOKEN%`
58+
**Example:** `Authorization: Token %DEEPGRAM_API_KEY%` or `Authorization: Bearer %DEEPGRAM_TOKEN%`
5959
6060
request_options : typing.Optional[RequestOptions]
6161
Request-specific configuration.
@@ -138,9 +138,9 @@ async def connect(
138138
Parameters
139139
----------
140140
authorization : typing.Optional[str]
141-
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.
141+
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.
142142
143-
**Example:** `token %DEEPGRAM_API_KEY%` or `bearer %DEEPGRAM_TOKEN%`
143+
**Example:** `Authorization: Token %DEEPGRAM_API_KEY%` or `Authorization: Bearer %DEEPGRAM_TOKEN%`
144144
145145
request_options : typing.Optional[RequestOptions]
146146
Request-specific configuration.

src/deepgram/agent/v1/raw_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ def connect(
3434
Parameters
3535
----------
3636
authorization : typing.Optional[str]
37-
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.
37+
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.
3838
39-
**Example:** `token %DEEPGRAM_API_KEY%` or `bearer %DEEPGRAM_TOKEN%`
39+
**Example:** `Authorization: Token %DEEPGRAM_API_KEY%` or `Authorization: Bearer %DEEPGRAM_TOKEN%`
4040
4141
request_options : typing.Optional[RequestOptions]
4242
Request-specific configuration.
@@ -98,9 +98,9 @@ async def connect(
9898
Parameters
9999
----------
100100
authorization : typing.Optional[str]
101-
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.
101+
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.
102102
103-
**Example:** `token %DEEPGRAM_API_KEY%` or `bearer %DEEPGRAM_TOKEN%`
103+
**Example:** `Authorization: Token %DEEPGRAM_API_KEY%` or `Authorization: Bearer %DEEPGRAM_TOKEN%`
104104
105105
request_options : typing.Optional[RequestOptions]
106106
Request-specific configuration.

src/deepgram/agent/v1/requests/__init__.py

Lines changed: 248 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# This file was auto-generated by Fern from our API Definition.
22

3-
import typing
4-
53
import typing_extensions
4+
from ..types.agent_v1agent_audio_done_type import AgentV1AgentAudioDoneType
65

76

87
class AgentV1AgentAudioDoneParams(typing_extensions.TypedDict):
9-
type: typing.Literal["AgentAudioDone"]
8+
type: AgentV1AgentAudioDoneType
109
"""
1110
Message type identifier indicating the agent has finished sending audio
1211
"""

0 commit comments

Comments
 (0)