livekit-plugins-hedra 1.2.1__tar.gz → 1.2.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-hedra might be problematic. Click here for more details.

@@ -169,4 +169,7 @@ node_modules
169
169
 
170
170
  credentials.json
171
171
  pyrightconfig.json
172
- docs/
172
+ docs/
173
+
174
+ # Database files
175
+ *.db
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: livekit-plugins-hedra
3
- Version: 1.2.1
3
+ Version: 1.2.2
4
4
  Summary: Agent Framework plugin for Hedra Avatar
5
5
  Project-URL: Documentation, https://docs.livekit.io
6
6
  Project-URL: Website, https://livekit.io/
@@ -18,7 +18,7 @@ Classifier: Topic :: Multimedia :: Sound/Audio
18
18
  Classifier: Topic :: Multimedia :: Video
19
19
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
20
20
  Requires-Python: >=3.9.0
21
- Requires-Dist: livekit-agents>=1.2.1
21
+ Requires-Dist: livekit-agents>=1.2.2
22
22
  Description-Content-Type: text/markdown
23
23
 
24
24
  # Hedra plugin for LiveKit Agents
@@ -91,13 +91,10 @@ class AvatarSession:
91
91
 
92
92
  try:
93
93
  job_ctx = get_job_context()
94
- decoded = job_ctx.decode_token()
95
- local_participant_identity = decoded["sub"]
96
- except (RuntimeError, KeyError):
94
+ local_participant_identity = job_ctx.token_claims().identity
95
+ except RuntimeError as e:
97
96
  if not room.isconnected():
98
- raise HedraException(
99
- "local participant identity not found in token, and room is not connected"
100
- ) from None
97
+ raise HedraException("failed to get local participant identity") from e
101
98
  local_participant_identity = room.local_participant.identity
102
99
 
103
100
  livekit_token = (
@@ -12,4 +12,4 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- __version__ = "1.2.1"
15
+ __version__ = "1.2.2"
@@ -22,7 +22,7 @@ classifiers = [
22
22
  "Programming Language :: Python :: 3.10",
23
23
  "Programming Language :: Python :: 3 :: Only",
24
24
  ]
25
- dependencies = ["livekit-agents>=1.2.1"]
25
+ dependencies = ["livekit-agents>=1.2.2"]
26
26
 
27
27
  [project.urls]
28
28
  Documentation = "https://docs.livekit.io"