livekit-plugins-aws 0.1.1__tar.gz → 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of livekit-plugins-aws might be problematic. Click here for more details.
- {livekit_plugins_aws-0.1.1 → livekit_plugins_aws-0.1.2}/PKG-INFO +3 -3
- {livekit_plugins_aws-0.1.1 → livekit_plugins_aws-0.1.2}/livekit/plugins/aws/llm.py +13 -0
- {livekit_plugins_aws-0.1.1 → livekit_plugins_aws-0.1.2}/livekit/plugins/aws/version.py +1 -1
- {livekit_plugins_aws-0.1.1 → livekit_plugins_aws-0.1.2}/livekit_plugins_aws.egg-info/PKG-INFO +3 -3
- {livekit_plugins_aws-0.1.1 → livekit_plugins_aws-0.1.2}/livekit_plugins_aws.egg-info/requires.txt +1 -1
- {livekit_plugins_aws-0.1.1 → livekit_plugins_aws-0.1.2}/setup.py +1 -1
- {livekit_plugins_aws-0.1.1 → livekit_plugins_aws-0.1.2}/README.md +0 -0
- {livekit_plugins_aws-0.1.1 → livekit_plugins_aws-0.1.2}/livekit/plugins/aws/__init__.py +0 -0
- {livekit_plugins_aws-0.1.1 → livekit_plugins_aws-0.1.2}/livekit/plugins/aws/_utils.py +0 -0
- {livekit_plugins_aws-0.1.1 → livekit_plugins_aws-0.1.2}/livekit/plugins/aws/log.py +0 -0
- {livekit_plugins_aws-0.1.1 → livekit_plugins_aws-0.1.2}/livekit/plugins/aws/models.py +0 -0
- {livekit_plugins_aws-0.1.1 → livekit_plugins_aws-0.1.2}/livekit/plugins/aws/py.typed +0 -0
- {livekit_plugins_aws-0.1.1 → livekit_plugins_aws-0.1.2}/livekit/plugins/aws/stt.py +0 -0
- {livekit_plugins_aws-0.1.1 → livekit_plugins_aws-0.1.2}/livekit/plugins/aws/tts.py +0 -0
- {livekit_plugins_aws-0.1.1 → livekit_plugins_aws-0.1.2}/livekit_plugins_aws.egg-info/SOURCES.txt +0 -0
- {livekit_plugins_aws-0.1.1 → livekit_plugins_aws-0.1.2}/livekit_plugins_aws.egg-info/dependency_links.txt +0 -0
- {livekit_plugins_aws-0.1.1 → livekit_plugins_aws-0.1.2}/livekit_plugins_aws.egg-info/top_level.txt +0 -0
- {livekit_plugins_aws-0.1.1 → livekit_plugins_aws-0.1.2}/pyproject.toml +0 -0
- {livekit_plugins_aws-0.1.1 → livekit_plugins_aws-0.1.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: livekit-plugins-aws
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: LiveKit Agents Plugin for services from AWS
|
|
5
5
|
Home-page: https://github.com/livekit/agents
|
|
6
6
|
License: Apache-2.0
|
|
@@ -19,7 +19,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
19
19
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
20
|
Requires-Python: >=3.9.0
|
|
21
21
|
Description-Content-Type: text/markdown
|
|
22
|
-
Requires-Dist: livekit-agents[codecs]<1.0.0,>=0.12.
|
|
22
|
+
Requires-Dist: livekit-agents[codecs]<1.0.0,>=0.12.20
|
|
23
23
|
Requires-Dist: aiobotocore==2.19.0
|
|
24
24
|
Requires-Dist: boto3==1.36.3
|
|
25
25
|
Requires-Dist: amazon-transcribe>=0.6.2
|
|
@@ -258,12 +258,14 @@ class LLMStream(llm.LLMStream):
|
|
|
258
258
|
self._tool_call_id = tool_use["toolUseId"]
|
|
259
259
|
self._fnc_name = tool_use["name"]
|
|
260
260
|
self._fnc_raw_arguments = ""
|
|
261
|
+
|
|
261
262
|
elif "contentBlockDelta" in chunk:
|
|
262
263
|
delta = chunk["contentBlockDelta"]["delta"]
|
|
263
264
|
if "toolUse" in delta:
|
|
264
265
|
self._fnc_raw_arguments += delta["toolUse"]["input"]
|
|
265
266
|
elif "text" in delta:
|
|
266
267
|
self._text += delta["text"]
|
|
268
|
+
|
|
267
269
|
elif "contentBlockStop" in chunk:
|
|
268
270
|
if self._text:
|
|
269
271
|
chat_chunk = llm.ChatChunk(
|
|
@@ -280,6 +282,17 @@ class LLMStream(llm.LLMStream):
|
|
|
280
282
|
elif self._tool_call_id:
|
|
281
283
|
return self._try_build_function(request_id, chunk)
|
|
282
284
|
|
|
285
|
+
elif "metadata" in chunk:
|
|
286
|
+
metadata = chunk["metadata"]
|
|
287
|
+
return llm.ChatChunk(
|
|
288
|
+
request_id=request_id,
|
|
289
|
+
usage=llm.CompletionUsage(
|
|
290
|
+
completion_tokens=metadata["usage"]["outputTokens"],
|
|
291
|
+
prompt_tokens=metadata["usage"]["inputTokens"],
|
|
292
|
+
total_tokens=metadata["usage"]["totalTokens"],
|
|
293
|
+
),
|
|
294
|
+
)
|
|
295
|
+
|
|
283
296
|
return None
|
|
284
297
|
|
|
285
298
|
def _try_build_function(self, request_id: str, chunk: dict) -> llm.ChatChunk | None:
|
{livekit_plugins_aws-0.1.1 → livekit_plugins_aws-0.1.2}/livekit_plugins_aws.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: livekit-plugins-aws
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: LiveKit Agents Plugin for services from AWS
|
|
5
5
|
Home-page: https://github.com/livekit/agents
|
|
6
6
|
License: Apache-2.0
|
|
@@ -19,7 +19,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
19
19
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
20
|
Requires-Python: >=3.9.0
|
|
21
21
|
Description-Content-Type: text/markdown
|
|
22
|
-
Requires-Dist: livekit-agents[codecs]<1.0.0,>=0.12.
|
|
22
|
+
Requires-Dist: livekit-agents[codecs]<1.0.0,>=0.12.20
|
|
23
23
|
Requires-Dist: aiobotocore==2.19.0
|
|
24
24
|
Requires-Dist: boto3==1.36.3
|
|
25
25
|
Requires-Dist: amazon-transcribe>=0.6.2
|
|
@@ -48,7 +48,7 @@ setuptools.setup(
|
|
|
48
48
|
packages=setuptools.find_namespace_packages(include=["livekit.*"]),
|
|
49
49
|
python_requires=">=3.9.0",
|
|
50
50
|
install_requires=[
|
|
51
|
-
"livekit-agents[codecs]>=0.12.
|
|
51
|
+
"livekit-agents[codecs]>=0.12.20,<1.0.0",
|
|
52
52
|
"aiobotocore==2.19.0",
|
|
53
53
|
"boto3==1.36.3",
|
|
54
54
|
"amazon-transcribe>=0.6.2",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{livekit_plugins_aws-0.1.1 → livekit_plugins_aws-0.1.2}/livekit_plugins_aws.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{livekit_plugins_aws-0.1.1 → livekit_plugins_aws-0.1.2}/livekit_plugins_aws.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|