Skip to content

Update Node starter to LiveKit Agents 1.5#54

Merged
toubatbrian merged 9 commits into
mainfrom
brian/agents-1.5.0-prerelease
Jul 10, 2026
Merged

Update Node starter to LiveKit Agents 1.5#54
toubatbrian merged 9 commits into
mainfrom
brian/agents-1.5.0-prerelease

Conversation

@toubatbrian

@toubatbrian toubatbrian commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

Updates the Node starter to the stable LiveKit Agents 1.5 release line and adapts the starter to the 1.5 API.

  • Uses @livekit/agents 1.5.x, currently resolving to 1.5.0.
  • Adds @livekit/rtc-node ^0.13.31 to satisfy the Agents 1.5 peer requirement.
  • Uses the functional Agent.create API and current tool/toolset examples.
  • Merges the latest main changes, including Node 24 native type stripping and the Gemma 31B default model.
  • Keeps pnpm-lock.yaml and pnpm-workspace.yaml untracked, matching the existing starter template policy.

Validation

  • pnpm typecheck — passed.
  • pnpm lint — passed.
  • pnpm test — passed (3 tests).
  • pnpm peers check — passed; no peer dependency issues.
  • pnpm build — not available because current main intentionally removed the build script in favor of running TypeScript directly with Node 24.

Dependency installation resolved @livekit/agents 1.5.0 and @livekit/rtc-node 0.13.31. Local verification ran with Node 22.15.1 and emitted the expected engine warning because the merged starter now requires Node 24.

toubatbrian and others added 3 commits June 23, 2026 21:33
Bump @livekit/agents to the 0.0.0-next-20260624041820 pre-release (next
dist-tag) to validate against the upcoming 1.5.0 release. Pinned exactly
for reproducible validation; to be repinned to stable 1.5.0 on release.

Update the commented-out tools example in agent.ts to the 1.5.0 flat-array
tool syntax with a required `name` (llm.tool({ name, ... }) in a `tools: [...]`
array), and note that voice.Agent.create({...}) is now available as an
alternative to subclassing voice.Agent.

Co-authored-by: Cursor <cursoragent@cursor.com>
toubatbrian and others added 2 commits June 23, 2026 22:04
check-template-files fails when pnpm-lock.yaml is tracked, and these files
(absent on main) altered CI's install so prettier wasn't resolved. Untrack
them to align with main.

Co-authored-by: Cursor <cursoragent@cursor.com>
Comment thread src/agent.ts Outdated
super({
instructions: dedent`
// Build a custom voice AI assistant with the functional `Agent.create` API
// (introduced in @livekit/agents 1.5.0). You can also subclass `voice.Agent`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it's a good idea to say you can also subclass voice.Agent, since they should be equally powerful(?)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are they?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both are equally powerful just differ in syntax

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah so no need to have the second line of the comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the second comment line.

Comment thread src/agent.ts Outdated

@rektdeckard rektdeckard left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should wait for stable release to update our public templates, but otherwise this looks good.

toubatbrian and others added 2 commits July 10, 2026 11:34
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@toubatbrian toubatbrian changed the title Adopt @livekit/agents 1.5.0 (pre-release) Update Node starter to LiveKit Agents 1.5 Jul 10, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
@toubatbrian
toubatbrian requested a review from rektdeckard July 10, 2026 19:09
Comment thread src/agent.ts Outdated
super({
instructions: dedent`
// Build a custom voice AI assistant with the functional `Agent.create` API
// (introduced in @livekit/agents 1.5.0). You can also subclass `voice.Agent`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah so no need to have the second line of the comment

Comment thread package.json Outdated
},
"dependencies": {
"@livekit/agents": "^1.4.7",
"@livekit/agents": "1.5.x",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^1.5.0?

@toubatbrian toubatbrian Jul 10, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed the range to ^1.5.0. I also upgraded the starter to Zod 4.

@toubatbrian
toubatbrian requested a review from u9g July 10, 2026 19:11
Co-authored-by: Cursor <cursoragent@cursor.com>
@toubatbrian
toubatbrian merged commit 0e62be0 into main Jul 10, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants