Skip to content

Commit c134b96

Browse files
author
aoife cassidy
authored
chore(sync): agents -> 0.6.1 (#251)
2 parents aed2da2 + 4f800a8 commit c134b96

36 files changed

+714
-84
lines changed

.changeset/clean-pillows-pay.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+
remove incorrect !-assertion in queue implementation leading to race conditions

.changeset/fresh-bikes-sin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@livekit/agents-plugin-elevenlabs": patch
3+
---
4+
5+
allow any string for model

.changeset/green-eagles-perform.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@livekit/agents-plugin-elevenlabs": patch
3+
---
4+
5+
add flash models

.changeset/happy-coins-drop.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@livekit/agents-plugin-openai': minor
3+
---
4+
5+
Add support for OpenAI Whisper STT prompt parameter

.changeset/large-mangos-hunt.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+
chore(bump): rtc-node -> 0.13.1

.changeset/short-dryers-refuse.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@livekit/agents": patch
3+
"@livekit/agents-plugin-openai": patch
4+
---
5+
6+
re-request audio response in multimodal agent when text is given

.changeset/tiny-cameras-sort.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@livekit/agents-plugin-cartesia": minor
3+
---
4+
5+
plugins(cartesia): init with TTS

.github/workflows/test.yml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,37 @@ jobs:
2929
run: pnpm install --frozen-lockfile
3030
- name: Build
3131
run: pnpm build
32-
- name: Test
32+
- name: Check which tests to run
33+
uses: dorny/paths-filter@v3
34+
id: filter
35+
with:
36+
filters: |
37+
agents-or-tests:
38+
- 'agents/**'
39+
- 'plugins/test/**'
40+
plugins:
41+
- 'plugins/**'
42+
- name: Test agents
43+
if: steps.filter.outputs.agents-or-tests == 'true' || github.event_name != 'pull_request'
44+
run: pnpm test agents
45+
- name: Test all plugins
46+
if: steps.filter.outputs.agents-or-tests == 'true' || github.event_name != 'pull_request'
47+
env:
48+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
49+
ELEVEN_API_KEY: ${{ secrets.ELEVEN_API_KEY }}
50+
DEEPGRAM_API_KEY: ${{ secrets.DEEPGRAM_API_KEY }}
51+
CARTESIA_API_KEY: ${{ secrets.CARTESIA_API_KEY }}
52+
run: pnpm test plugins
53+
- name: Test specific plugins
54+
if: steps.filter.outputs.agents-or-tests == 'false' && steps.filter.outputs.plugins == 'true' && github.event_name == 'pull_request'
3355
env:
3456
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
3557
ELEVEN_API_KEY: ${{ secrets.ELEVEN_API_KEY }}
3658
DEEPGRAM_API_KEY: ${{ secrets.DEEPGRAM_API_KEY }}
37-
run: pnpm test
59+
CARTESIA_API_KEY: ${{ secrets.CARTESIA_API_KEY }}
60+
run: |
61+
plugins=$(git diff-tree --name-only --no-commit-id -r ${{ github.sha }} | grep '^plugins.*\.ts$' | cut -d/ -f2 | sort -u | tr '\n' ' ')
62+
read -ra plugins <<< "$plugins"
63+
for plugin in "${plugins[@]}"; do
64+
pnpm test $plugin
65+
done

agents/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"api:update": "api-extractor run --local --typescript-compiler-folder ../node_modules/typescript --verbose"
3131
},
3232
"devDependencies": {
33-
"@livekit/rtc-node": "^0.12.1",
33+
"@livekit/rtc-node": "^0.13.1",
3434
"@microsoft/api-extractor": "^7.35.0",
3535
"@types/node": "^22.5.5",
3636
"@types/ws": "^8.5.10",
@@ -49,6 +49,6 @@
4949
"zod": "^3.23.8"
5050
},
5151
"peerDependencies": {
52-
"@livekit/rtc-node": "^0.12.1"
52+
"@livekit/rtc-node": "^0.13.1"
5353
}
5454
}

agents/src/job.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,15 +190,15 @@ export class JobContext {
190190
/** @internal */
191191
onParticipantConnected(p: RemoteParticipant) {
192192
for (const callback of this.#participantEntrypoints) {
193-
if (this.#participantTasks[p.identity]?.callback == callback) {
193+
if (this.#participantTasks[p.identity!]?.callback == callback) {
194194
this.#logger.warn(
195195
'a participant has joined before a prior prticipant task matching the same identity has finished:',
196196
p.identity,
197197
);
198198
}
199199
const result = callback(this, p);
200-
result.finally(() => delete this.#participantTasks[p.identity]);
201-
this.#participantTasks[p.identity] = { callback, result };
200+
result.finally(() => delete this.#participantTasks[p.identity!]);
201+
this.#participantTasks[p.identity!] = { callback, result };
202202
}
203203
}
204204

0 commit comments

Comments
 (0)