Skip to content

Commit 1f23980

Browse files
authored
Merge branch 'main' into fix-gemini-toolbehaviour
2 parents 9528955 + 4693159 commit 1f23980

File tree

102 files changed

+6651
-532
lines changed

Some content is hidden

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

102 files changed

+6651
-532
lines changed

.changeset/modern-views-fry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@livekit/agents': patch
3+
---
4+
5+
Added SessionReport and onSessionEnd callback

.github/pull_request_template.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- [ ] **AI-generated code reviewed**: Removed unnecessary comments and ensured code quality
1313
- [ ] **Changes explained**: All changes are properly documented and justified above
1414
- [ ] **Scope appropriate**: All changes relate to the PR title, or explanations provided for why they're included
15+
- [ ] **Video demo**: A small video demo showing changes works as expected and did not break any existing functionality using [Agent Playground](https://agents-playground.livekit.io/#cam=0&mic=1&screen=1&video=1&audio=1&chat=1&theme_color=green) (if applicable)
1516

1617
## Testing
1718
<!-- Describe how you tested these changes -->

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,4 +189,8 @@ docs
189189
# vscode workspace config
190190
agents-js.code-workspace
191191

192-
examples/src/test_*.ts
192+
examples/src/test_*.ts
193+
194+
# Ignore all markdown files except root README
195+
*.md
196+
!README.md

REUSE.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,9 @@ SPDX-License-Identifier = "CC-BY-NC-SA-4.0"
3636
path = ["**/.gitattributes", "**.wav", "**/__snapshots__/**"]
3737
SPDX-FileCopyrightText = "2024 LiveKit, Inc."
3838
SPDX-License-Identifier = "Apache-2.0"
39+
40+
# audio resources
41+
[[annotations]]
42+
path = ["agents/resources/*.ogg", "agents/resources/NOTICE"]
43+
SPDX-FileCopyrightText = "2024 LiveKit, Inc."
44+
SPDX-License-Identifier = "Apache-2.0"

agents/CHANGELOG.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,53 @@
11
# @livekit/agents
22

3+
## 1.0.18
4+
5+
### Patch Changes
6+
7+
- bump openai to 6.x - [#813](https://github.com/livekit/agents-js/pull/813) ([@toubatbrian](https://github.com/toubatbrian))
8+
9+
- Emit away events for User - [#801](https://github.com/livekit/agents-js/pull/801) ([@paulheinrichs-jb](https://github.com/paulheinrichs-jb))
10+
11+
- Support openai half-duplex mode (audio in -> text out -> custom TTS model) - [#814](https://github.com/livekit/agents-js/pull/814) ([@toubatbrian](https://github.com/toubatbrian))
12+
13+
- Support strict tool schema for openai-competible model - [#816](https://github.com/livekit/agents-js/pull/816) ([@toubatbrian](https://github.com/toubatbrian))
14+
15+
## 1.0.17
16+
17+
### Patch Changes
18+
19+
- handle APIError in STT & TTS retry mechanism and prevent ERR_UNHANDLED_ERROR - [#804](https://github.com/livekit/agents-js/pull/804) ([@toubatbrian](https://github.com/toubatbrian))
20+
21+
## 1.0.16
22+
23+
### Patch Changes
24+
25+
- Add preemptive generation - [#798](https://github.com/livekit/agents-js/pull/798) ([@toubatbrian](https://github.com/toubatbrian))
26+
27+
- Rename Worker to AgentServer - [#713](https://github.com/livekit/agents-js/pull/713) ([@Shubhrakanti](https://github.com/Shubhrakanti))
28+
29+
## 1.0.15
30+
31+
### Patch Changes
32+
33+
- Fix race condition causing "Writer is not bound to a WritableStream" error in Silero VAD - [#786](https://github.com/livekit/agents-js/pull/786) ([@toubatbrian](https://github.com/toubatbrian))
34+
35+
- Support Zod V4 tool schema and backward competible to V3 - [#792](https://github.com/livekit/agents-js/pull/792) ([@toubatbrian](https://github.com/toubatbrian))
36+
37+
## 1.0.14
38+
39+
### Patch Changes
40+
41+
- Fix ffmpeg dependency cannot found issue - [#793](https://github.com/livekit/agents-js/pull/793) ([@toubatbrian](https://github.com/toubatbrian))
42+
43+
## 1.0.13
44+
45+
### Patch Changes
46+
47+
- Add utility to play local audio file to livekit - [#788](https://github.com/livekit/agents-js/pull/788) ([@toubatbrian](https://github.com/toubatbrian))
48+
49+
- Add BackgroundAudio support - [#789](https://github.com/livekit/agents-js/pull/789) ([@toubatbrian](https://github.com/toubatbrian))
50+
351
## 1.0.12
452

553
### Patch Changes

agents/package.json

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@livekit/agents",
3-
"version": "1.0.12",
3+
"version": "1.0.18",
44
"description": "LiveKit Agents - Node.js",
55
"main": "dist/index.js",
66
"require": "dist/index.cjs",
@@ -22,6 +22,7 @@
2222
"files": [
2323
"dist",
2424
"src",
25+
"resources",
2526
"README.md"
2627
],
2728
"scripts": {
@@ -34,34 +35,45 @@
3435
"api:update": "api-extractor run --local --typescript-compiler-folder ../node_modules/typescript --verbose"
3536
},
3637
"devDependencies": {
37-
"@livekit/rtc-node": "^0.13.12",
38+
"@livekit/rtc-node": "^0.13.13",
3839
"@microsoft/api-extractor": "^7.35.0",
40+
"@types/fluent-ffmpeg": "^2.1.28",
3941
"@types/json-schema": "^7.0.15",
4042
"@types/node": "^22.5.5",
4143
"@types/ws": "^8.5.10",
4244
"tsup": "^8.4.0",
43-
"typescript": "^5.0.0"
45+
"typescript": "^5.0.0",
46+
"zod": "^3.25.76"
4447
},
4548
"dependencies": {
49+
"@ffmpeg-installer/ffmpeg": "^1.1.0",
4650
"@livekit/mutex": "^1.1.1",
47-
"@livekit/protocol": "^1.41.0",
51+
"@livekit/protocol": "^1.43.0",
4852
"@livekit/typed-emitter": "^3.0.0",
53+
"@opentelemetry/api": "^1.9.0",
54+
"@opentelemetry/exporter-trace-otlp-http": "^0.54.0",
55+
"@opentelemetry/otlp-exporter-base": "^0.208.0",
56+
"@opentelemetry/resources": "^1.28.0",
57+
"@opentelemetry/sdk-trace-base": "^1.28.0",
58+
"@opentelemetry/sdk-trace-node": "^1.28.0",
59+
"@opentelemetry/semantic-conventions": "^1.28.0",
4960
"@types/pidusage": "^2.0.5",
5061
"commander": "^12.0.0",
62+
"fluent-ffmpeg": "^2.1.3",
5163
"heap-js": "^2.6.0",
5264
"json-schema": "^0.4.0",
53-
"openai": "^4.91.1",
54-
"livekit-server-sdk": "^2.13.3",
65+
"livekit-server-sdk": "^2.14.1",
66+
"openai": "^6.8.1",
5567
"pidusage": "^4.0.1",
5668
"pino": "^8.19.0",
5769
"pino-pretty": "^11.0.0",
5870
"sharp": "0.34.3",
5971
"uuid": "^11.1.0",
60-
"ws": "^8.16.0",
61-
"zod": "^3.23.8",
72+
"ws": "^8.18.0",
6273
"zod-to-json-schema": "^3.24.6"
6374
},
6475
"peerDependencies": {
65-
"@livekit/rtc-node": "^0.13.12"
76+
"@livekit/rtc-node": "^0.13.12",
77+
"zod": "^3.25.76 || ^4.1.8"
6678
}
6779
}

agents/resources/NOTICE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
keyboard-typing.ogg by Anton -- https://freesound.org/s/137/ -- License: Attribution 4.0
2+
keyboard-typing2.opg by Anton -- https://freesound.org/s/137/ -- License: Attribution 4.0
71.9 KB
Binary file not shown.
27.4 KB
Binary file not shown.
186 KB
Binary file not shown.

0 commit comments

Comments
 (0)