livekit-plugins-google 0.11.2__tar.gz → 1.0.0__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.
Files changed (29) hide show
  1. livekit_plugins_google-1.0.0/.gitignore +168 -0
  2. {livekit_plugins_google-0.11.2 → livekit_plugins_google-1.0.0}/PKG-INFO +11 -21
  3. {livekit_plugins_google-0.11.2 → livekit_plugins_google-1.0.0}/livekit/plugins/google/beta/realtime/__init__.py +1 -5
  4. {livekit_plugins_google-0.11.2 → livekit_plugins_google-1.0.0}/livekit/plugins/google/beta/realtime/api_proto.py +2 -4
  5. livekit_plugins_google-1.0.0/livekit/plugins/google/beta/realtime/realtime_api.py +550 -0
  6. livekit_plugins_google-1.0.0/livekit/plugins/google/llm.py +357 -0
  7. {livekit_plugins_google-0.11.2 → livekit_plugins_google-1.0.0}/livekit/plugins/google/stt.py +80 -115
  8. {livekit_plugins_google-0.11.2 → livekit_plugins_google-1.0.0}/livekit/plugins/google/tts.py +50 -55
  9. livekit_plugins_google-1.0.0/livekit/plugins/google/utils.py +251 -0
  10. {livekit_plugins_google-0.11.2 → livekit_plugins_google-1.0.0}/livekit/plugins/google/version.py +1 -1
  11. livekit_plugins_google-1.0.0/pyproject.toml +45 -0
  12. livekit_plugins_google-0.11.2/livekit/plugins/google/_utils.py +0 -199
  13. livekit_plugins_google-0.11.2/livekit/plugins/google/beta/realtime/realtime_api.py +0 -592
  14. livekit_plugins_google-0.11.2/livekit/plugins/google/beta/realtime/transcriber.py +0 -270
  15. livekit_plugins_google-0.11.2/livekit/plugins/google/llm.py +0 -419
  16. livekit_plugins_google-0.11.2/livekit_plugins_google.egg-info/PKG-INFO +0 -109
  17. livekit_plugins_google-0.11.2/livekit_plugins_google.egg-info/SOURCES.txt +0 -22
  18. livekit_plugins_google-0.11.2/livekit_plugins_google.egg-info/dependency_links.txt +0 -1
  19. livekit_plugins_google-0.11.2/livekit_plugins_google.egg-info/requires.txt +0 -5
  20. livekit_plugins_google-0.11.2/livekit_plugins_google.egg-info/top_level.txt +0 -1
  21. livekit_plugins_google-0.11.2/pyproject.toml +0 -3
  22. livekit_plugins_google-0.11.2/setup.cfg +0 -4
  23. livekit_plugins_google-0.11.2/setup.py +0 -63
  24. {livekit_plugins_google-0.11.2 → livekit_plugins_google-1.0.0}/README.md +0 -0
  25. {livekit_plugins_google-0.11.2 → livekit_plugins_google-1.0.0}/livekit/plugins/google/__init__.py +0 -0
  26. {livekit_plugins_google-0.11.2 → livekit_plugins_google-1.0.0}/livekit/plugins/google/beta/__init__.py +0 -0
  27. {livekit_plugins_google-0.11.2 → livekit_plugins_google-1.0.0}/livekit/plugins/google/log.py +0 -0
  28. {livekit_plugins_google-0.11.2 → livekit_plugins_google-1.0.0}/livekit/plugins/google/models.py +0 -0
  29. {livekit_plugins_google-0.11.2 → livekit_plugins_google-1.0.0}/livekit/plugins/google/py.typed +0 -0
@@ -0,0 +1,168 @@
1
+ **/.vscode
2
+ **/.DS_Store
3
+
4
+ # Byte-compiled / optimized / DLL files
5
+ __pycache__/
6
+ *.py[cod]
7
+ *$py.class
8
+
9
+ # C extensions
10
+ *.so
11
+
12
+ # Distribution / packaging
13
+ .Python
14
+ build/
15
+ develop-eggs/
16
+ dist/
17
+ downloads/
18
+ eggs/
19
+ .eggs/
20
+ lib/
21
+ lib64/
22
+ parts/
23
+ sdist/
24
+ var/
25
+ wheels/
26
+ share/python-wheels/
27
+ *.egg-info/
28
+ .installed.cfg
29
+ *.egg
30
+ MANIFEST
31
+
32
+ # PyInstaller
33
+ # Usually these files are written by a python script from a template
34
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
35
+ *.manifest
36
+ *.spec
37
+
38
+ # Installer logs
39
+ pip-log.txt
40
+ pip-delete-this-directory.txt
41
+
42
+ # Unit test / coverage reports
43
+ htmlcov/
44
+ .tox/
45
+ .nox/
46
+ .coverage
47
+ .coverage.*
48
+ .cache
49
+ nosetests.xml
50
+ coverage.xml
51
+ *.cover
52
+ *.py,cover
53
+ .hypothesis/
54
+ .pytest_cache/
55
+ cover/
56
+
57
+ # Translations
58
+ *.mo
59
+ *.pot
60
+
61
+ # Django stuff:
62
+ *.log
63
+ local_settings.py
64
+ db.sqlite3
65
+ db.sqlite3-journal
66
+
67
+ # Flask stuff:
68
+ instance/
69
+ .webassets-cache
70
+
71
+ # Scrapy stuff:
72
+ .scrapy
73
+
74
+ # Sphinx documentation
75
+ docs/_build/
76
+
77
+ # PyBuilder
78
+ .pybuilder/
79
+ target/
80
+
81
+ # Jupyter Notebook
82
+ .ipynb_checkpoints
83
+
84
+ # IPython
85
+ profile_default/
86
+ ipython_config.py
87
+
88
+ # pyenv
89
+ # For a library or package, you might want to ignore these files since the code is
90
+ # intended to run in multiple environments; otherwise, check them in:
91
+ # .python-version
92
+
93
+ # pipenv
94
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
95
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
96
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
97
+ # install all needed dependencies.
98
+ #Pipfile.lock
99
+
100
+ # poetry
101
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
102
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
103
+ # commonly ignored for libraries.
104
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
105
+ #poetry.lock
106
+
107
+ # pdm
108
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
109
+ #pdm.lock
110
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
111
+ # in version control.
112
+ # https://pdm.fming.dev/#use-with-ide
113
+ .pdm.toml
114
+
115
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
116
+ __pypackages__/
117
+
118
+ # Celery stuff
119
+ celerybeat-schedule
120
+ celerybeat.pid
121
+
122
+ # SageMath parsed files
123
+ *.sage.py
124
+
125
+ # Environments
126
+ .env
127
+ .venv
128
+ env/
129
+ venv/
130
+ ENV/
131
+ env.bak/
132
+ venv.bak/
133
+
134
+ # Spyder project settings
135
+ .spyderproject
136
+ .spyproject
137
+
138
+ # Rope project settings
139
+ .ropeproject
140
+
141
+ # mkdocs documentation
142
+ /site
143
+
144
+ # mypy
145
+ .mypy_cache/
146
+ .dmypy.json
147
+ dmypy.json
148
+
149
+ # Pyre type checker
150
+ .pyre/
151
+
152
+ # pytype static type analyzer
153
+ .pytype/
154
+
155
+ # Cython debug symbols
156
+ cython_debug/
157
+
158
+ # PyCharm
159
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
160
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
161
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
162
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
163
+ .idea/
164
+
165
+ node_modules
166
+
167
+ credentials.json
168
+ pyrightconfig.json
@@ -1,39 +1,29 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: livekit-plugins-google
3
- Version: 0.11.2
3
+ Version: 1.0.0
4
4
  Summary: Agent Framework plugin for services from Google Cloud
5
- Home-page: https://github.com/livekit/agents
6
- License: Apache-2.0
7
5
  Project-URL: Documentation, https://docs.livekit.io
8
6
  Project-URL: Website, https://livekit.io/
9
7
  Project-URL: Source, https://github.com/livekit/agents
10
- Keywords: webrtc,realtime,audio,video,livekit
8
+ Author: LiveKit
9
+ License-Expression: Apache-2.0
10
+ Keywords: audio,livekit,realtime,video,webrtc
11
11
  Classifier: Intended Audience :: Developers
12
12
  Classifier: License :: OSI Approved :: Apache Software License
13
- Classifier: Topic :: Multimedia :: Sound/Audio
14
- Classifier: Topic :: Multimedia :: Video
15
- Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
16
13
  Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3 :: Only
17
15
  Classifier: Programming Language :: Python :: 3.9
18
16
  Classifier: Programming Language :: Python :: 3.10
19
- Classifier: Programming Language :: Python :: 3 :: Only
17
+ Classifier: Topic :: Multimedia :: Sound/Audio
18
+ Classifier: Topic :: Multimedia :: Video
19
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
20
20
  Requires-Python: >=3.9.0
21
- Description-Content-Type: text/markdown
22
21
  Requires-Dist: google-auth<3,>=2
23
22
  Requires-Dist: google-cloud-speech<3,>=2
24
23
  Requires-Dist: google-cloud-texttospeech<3,>=2
25
- Requires-Dist: google-genai==1.3.0
26
- Requires-Dist: livekit-agents<1.0.0,>=0.12.16
27
- Dynamic: classifier
28
- Dynamic: description
29
- Dynamic: description-content-type
30
- Dynamic: home-page
31
- Dynamic: keywords
32
- Dynamic: license
33
- Dynamic: project-url
34
- Dynamic: requires-dist
35
- Dynamic: requires-python
36
- Dynamic: summary
24
+ Requires-Dist: google-genai==1.5.0
25
+ Requires-Dist: livekit-agents>=1.0.0
26
+ Description-Content-Type: text/markdown
37
27
 
38
28
  # LiveKit Plugins Google
39
29
 
@@ -1,8 +1,4 @@
1
- from .api_proto import (
2
- ClientEvents,
3
- LiveAPIModels,
4
- Voice,
5
- )
1
+ from .api_proto import ClientEvents, LiveAPIModels, Voice
6
2
  from .realtime_api import RealtimeModel
7
3
 
8
4
  __all__ = [
@@ -1,16 +1,14 @@
1
1
  from __future__ import annotations
2
2
 
3
- from typing import Literal, Sequence, Union
3
+ from collections.abc import Sequence
4
+ from typing import Literal, Union
4
5
 
5
6
  from google.genai import types
6
7
 
7
- from ..._utils import _build_gemini_ctx, _build_tools
8
-
9
8
  LiveAPIModels = Literal["gemini-2.0-flash-exp"]
10
9
 
11
10
  Voice = Literal["Puck", "Charon", "Kore", "Fenrir", "Aoede"]
12
11
 
13
- __all__ = ["_build_tools", "ClientEvents", "_build_gemini_ctx"]
14
12
 
15
13
  ClientEvents = Union[
16
14
  types.ContentListUnion,