Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/bright-flux-options.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/bright-socks-prove.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/calm-mics-switch.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/calm-pools-retry.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/cancel-parked-preemptive-generation.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/cancel-refused-speech.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/clean-taxis-finish.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-default-vad-transcription-delay.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-windows-pretty-unicode.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fresh-cartesia-contexts.md

This file was deleted.

35 changes: 0 additions & 35 deletions .changeset/genai-semconv-and-pii-stripping.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/openai-realtime-session-metadata.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/phonic-responses-tool-definitions.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/phonic-update-config.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/quiet-elevenlabs-partials.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/quiet-moons-tap.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/quiet-pandas-listen.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/quiet-simulations-yield.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/redact-websocket-handshakes.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/restore-warm-transfer-room-close.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/retire-gateway-elevenlabs.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/route-gemma-thinking-level.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/shy-lions-transcribe.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/stop-idle-stt-retries.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/surface-inference-gateway-errors.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tender-cats-pause.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tidy-mistral-contexts.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/timestamp-say-transcripts.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/witty-pandas-refuse.md

This file was deleted.

80 changes: 80 additions & 0 deletions agents/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,85 @@
# @livekit/agents

## 1.8.0

### Minor Changes

- Emit the full OpenTelemetry GenAI semantic conventions on agent spans. - [#2411](https://github.com/livekit/agents-js/pull/2411) ([@theomonnom](https://github.com/theomonnom))

Spans now carry the standard `gen_ai.*` attributes — operation, provider, request/response
model, per-modality token usage, cached tokens, finish reasons, time-to-first-chunk, tool
name/type/call id, and the `gen_ai.input.messages` / `gen_ai.output.messages` /
`gen_ai.system_instructions` / `gen_ai.tool.definitions` content payloads — so Datadog Agent
Observability, Langfuse and any other backend that reads the conventions (OTel v1.37+)
renders a LiveKit trace without a custom mapping. The session maps to `invoke_workflow`, an
agent turn to `invoke_agent`, inference to `chat` (realtime turns to `generate_content` on
their own nested span), and tool execution to `execute_tool`.

`gen_ai.provider.name` now reports the registry spelling the convention requires. Plugins
expose `provider` either as a display name (`MistralAI`, `AWS Bedrock`, `Vertex AI`) or as the
client's base-URL host (`api.openai.com`, `api.anthropic.com`); both are normalized, so
`openai`, `anthropic`, `mistral_ai`, `aws.bedrock`, `gcp.vertex_ai`, `gcp.gemini`, `x_ai`,
`groq` and `perplexity` are recognized by GenAI backends. A provider outside the registry
keeps its own id, which the convention allows.

Conversational content reaches every configured exporter, as before. To withhold it from a
third-party pipeline while LiveKit Cloud keeps receiving it, pass `allowPii: false`:

```ts
telemetry.setTracerProvider(provider, { registerSpanProcessor, allowPii: false });
```

or set `LIVEKIT_TELEMETRY_ALLOW_PII=0` when the framework adopts the ambient OpenTelemetry
provider and there is no call site. What LiveKit Cloud receives stays governed by the
project's PII setting in the dashboard; when that mandates redaction, PII is withheld from
every destination and `allowPii` does not weaken it. Content can be dropped entirely with
`telemetry.genAI.setCaptureContent(false)` or
`OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=false`.

### Patch Changes

- Handle microphone track replacement for an existing RoomIO publication. - [#2363](https://github.com/livekit/agents-js/pull/2363) ([@rosetta-livekit-bot](https://github.com/apps/rosetta-livekit-bot))

- Retry connection pool prewarming after a previous attempt fails or completes. - [#2378](https://github.com/livekit/agents-js/pull/2378) ([@rosetta-livekit-bot](https://github.com/apps/rosetta-livekit-bot))

- fix(voice): cancel a parked preemptive generation when pausing speech scheduling so agent handoffs cannot deadlock - [#2398](https://github.com/livekit/agents-js/pull/2398) ([@rosetta-livekit-bot](https://github.com/apps/rosetta-livekit-bot))

- fix(voice): cancel a speech that `scheduleSpeech` refuses while scheduling is paused, so its speech task does not stay parked and block the next `drain()`/`pause()` and `AgentSession.close()` - [#2372](https://github.com/livekit/agents-js/pull/2372) ([@chenghao-mou](https://github.com/chenghao-mou))

- Add an `onSessionEnd` lifecycle callback and configurable timeout before internal session report cleanup. Flush final OTEL logs after shutdown callbacks with a bounded timeout. Apply Python's connection, total, and retry policy to session report uploads. - [#2387](https://github.com/livekit/agents-js/pull/2387) ([@chenghao-mou](https://github.com/chenghao-mou))

Wait for session report cleanup before applying the process shutdown timeout, force-stop jobs that exceed memory limits, preserve logs queued during a final flush, and keep cleanup details and session metadata safe for logging.

Honour `LIVEKIT_OBSERVABILITY_URL` when resolving the observability endpoint, keeping the override's scheme, port, and base path so a plaintext or non-default-port collector is reachable.

The telemetry exporters now take `observabilityUrl` (a full base URL) in place of `cloudHostname` (a bare host that always implied https). `cloudHostname` is deprecated but still accepted on `setupCloudTracer`, `uploadSessionReport`, `SimpleOTLPHttpLogExporterConfig`, and `PinoCloudExporterConfig`, and resolves to the same endpoint as before.

- Preserve wired VAD speech-end anchors when reporting transcription delay, expose absolute STT speech-end timing, and restore default-VAD speaking state for false-interruption recovery. - [#2382](https://github.com/livekit/agents-js/pull/2382) ([@rosetta-livekit-bot](https://github.com/apps/rosetta-livekit-bot))

- Preserve non-ASCII characters in pretty logs on Windows terminals. - [#2367](https://github.com/livekit/agents-js/pull/2367) ([@chenghao-mou](https://github.com/chenghao-mou))

- Ignore late adaptive interruption responses after the agent speech that requested them ends. - [#2417](https://github.com/livekit/agents-js/pull/2417) ([@chenghao-mou](https://github.com/chenghao-mou))

- Text-mode simulation jobs now send `X-LiveKit-Inference-Priority: low` on every inference request, overriding the model's configured `inferenceClass`, so simulation runs are paced into spare quota instead of competing with live voice traffic. Matches the Python SDK. - [#2423](https://github.com/livekit/agents-js/pull/2423) ([@u9g](https://github.com/u9g))

- Redact API keys from rejected WebSocket handshake errors. - [#2379](https://github.com/livekit/agents-js/pull/2379) ([@rosetta-livekit-bot](https://github.com/apps/rosetta-livekit-bot))

- Fix `WarmTransferTask` hanging after a failed participant move when the human agent disconnects. - [#2361](https://github.com/livekit/agents-js/pull/2361) ([@chenghao-mou](https://github.com/chenghao-mou))

- Remove retired ElevenLabs models from LiveKit Inference STT and TTS. - [#2415](https://github.com/livekit/agents-js/pull/2415) ([@chenghao-mou](https://github.com/chenghao-mou))

- Close LiveKit Inference STT sessions and sockets when input ends, include the model in WebSocket dials, and stop retrying gateway inactivity closures. - [#2413](https://github.com/livekit/agents-js/pull/2413) ([@chenghao-mou](https://github.com/chenghao-mou))

- Surface inference gateway status errors from WebSocket handshakes and active STT sessions. - [#2412](https://github.com/livekit/agents-js/pull/2412) ([@chenghao-mou](https://github.com/chenghao-mou))

- Exclude active agent speech from pauses learned by dynamic endpointing. - [#2422](https://github.com/livekit/agents-js/pull/2422) ([@rosetta-livekit-bot](https://github.com/apps/rosetta-livekit-bot))

- Support Mistral Conversations requests when the chat context ends with an assistant message. - [#2376](https://github.com/livekit/agents-js/pull/2376) ([@rosetta-livekit-bot](https://github.com/apps/rosetta-livekit-bot))

- Timestamp `say()` transcripts when speech starts so interrupted turns remain chronologically ordered. - [#2421](https://github.com/livekit/agents-js/pull/2421) ([@rosetta-livekit-bot](https://github.com/apps/rosetta-livekit-bot))

- RoomIO now preserves a pre-set `session.input.audio` and `session.output.transcription` instead of silently replacing them, matching the existing behavior for `session.output.audio` and the python implementation. - [#2296](https://github.com/livekit/agents-js/pull/2296) ([@1egoman](https://github.com/1egoman))

## 1.7.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion agents/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@livekit/agents",
"version": "1.7.1",
"version": "1.8.0",
"description": "LiveKit Agents - Node.js",
"main": "dist/index.js",
"require": "dist/index.cjs",
Expand Down
7 changes: 7 additions & 0 deletions plugins/anam/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @livekit/agents-plugin-anam

## 1.8.0

### Patch Changes

- Updated dependencies [[`38243d9`](https://github.com/livekit/agents-js/commit/38243d90464519808ce7ce021642d2837c69a923), [`ba4a502`](https://github.com/livekit/agents-js/commit/ba4a5027df32c413e45966f353ece17eeb3d8d0c), [`30dbde5`](https://github.com/livekit/agents-js/commit/30dbde5f67204af045c989ed3a6f03c73e854234), [`0d9e641`](https://github.com/livekit/agents-js/commit/0d9e6416674c38cbf7737f20312bd37c867fa54d), [`af46117`](https://github.com/livekit/agents-js/commit/af4611720949cb124dad0ee6bcba010120fd3083), [`080db3e`](https://github.com/livekit/agents-js/commit/080db3e5a0ac13de00d30e4dd11ff4b2ae5fbd90), [`a001e13`](https://github.com/livekit/agents-js/commit/a001e13fa679f93060e06552a4e349e638207231), [`66bffa7`](https://github.com/livekit/agents-js/commit/66bffa7ec0f0d1ae653138c3b0ce2c7f9642e69f), [`4e405c4`](https://github.com/livekit/agents-js/commit/4e405c4470965e808d69604aff29d425bcbf465d), [`41bde92`](https://github.com/livekit/agents-js/commit/41bde92f00216d4d906b814c8962cb5ec59d595a), [`c5a205b`](https://github.com/livekit/agents-js/commit/c5a205b854e8224f8ab71373cf51bf100bcfe2a1), [`128f3f6`](https://github.com/livekit/agents-js/commit/128f3f6a230616e960325b112067861ce1f1a17f), [`5d0304a`](https://github.com/livekit/agents-js/commit/5d0304aae8e159b4c6b015f5e8fb3a80e58bf56b), [`cf73c13`](https://github.com/livekit/agents-js/commit/cf73c13d6c6837bf9afa9537d050293f7739bc6b), [`3ddd35e`](https://github.com/livekit/agents-js/commit/3ddd35ee1f0c4f2a502bc2ab95d9e5800e8f852a), [`316610c`](https://github.com/livekit/agents-js/commit/316610cbeb25815cb54cee6aeb21ef24f3f08e1a), [`ac882c0`](https://github.com/livekit/agents-js/commit/ac882c0ca2dcc7cdb39994a5443a82bc01dd3732), [`bb16578`](https://github.com/livekit/agents-js/commit/bb16578a0ee17a16a508fe05d162aad4bbac750b), [`2895612`](https://github.com/livekit/agents-js/commit/28956128d8bcb8c8fac8d53dbd1afcf3e114fa6e)]:
- @livekit/agents@1.8.0

## 1.7.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion plugins/anam/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@livekit/agents-plugin-anam",
"version": "1.7.1",
"version": "1.8.0",
"description": "Anam plugin for LiveKit Node Agents",
"main": "dist/index.js",
"require": "dist/index.cjs",
Expand Down
7 changes: 7 additions & 0 deletions plugins/anthropic/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @livekit/agents-plugin-anthropic

## 1.8.0

### Patch Changes

- Updated dependencies [[`38243d9`](https://github.com/livekit/agents-js/commit/38243d90464519808ce7ce021642d2837c69a923), [`ba4a502`](https://github.com/livekit/agents-js/commit/ba4a5027df32c413e45966f353ece17eeb3d8d0c), [`30dbde5`](https://github.com/livekit/agents-js/commit/30dbde5f67204af045c989ed3a6f03c73e854234), [`0d9e641`](https://github.com/livekit/agents-js/commit/0d9e6416674c38cbf7737f20312bd37c867fa54d), [`af46117`](https://github.com/livekit/agents-js/commit/af4611720949cb124dad0ee6bcba010120fd3083), [`080db3e`](https://github.com/livekit/agents-js/commit/080db3e5a0ac13de00d30e4dd11ff4b2ae5fbd90), [`a001e13`](https://github.com/livekit/agents-js/commit/a001e13fa679f93060e06552a4e349e638207231), [`66bffa7`](https://github.com/livekit/agents-js/commit/66bffa7ec0f0d1ae653138c3b0ce2c7f9642e69f), [`4e405c4`](https://github.com/livekit/agents-js/commit/4e405c4470965e808d69604aff29d425bcbf465d), [`41bde92`](https://github.com/livekit/agents-js/commit/41bde92f00216d4d906b814c8962cb5ec59d595a), [`c5a205b`](https://github.com/livekit/agents-js/commit/c5a205b854e8224f8ab71373cf51bf100bcfe2a1), [`128f3f6`](https://github.com/livekit/agents-js/commit/128f3f6a230616e960325b112067861ce1f1a17f), [`5d0304a`](https://github.com/livekit/agents-js/commit/5d0304aae8e159b4c6b015f5e8fb3a80e58bf56b), [`cf73c13`](https://github.com/livekit/agents-js/commit/cf73c13d6c6837bf9afa9537d050293f7739bc6b), [`3ddd35e`](https://github.com/livekit/agents-js/commit/3ddd35ee1f0c4f2a502bc2ab95d9e5800e8f852a), [`316610c`](https://github.com/livekit/agents-js/commit/316610cbeb25815cb54cee6aeb21ef24f3f08e1a), [`ac882c0`](https://github.com/livekit/agents-js/commit/ac882c0ca2dcc7cdb39994a5443a82bc01dd3732), [`bb16578`](https://github.com/livekit/agents-js/commit/bb16578a0ee17a16a508fe05d162aad4bbac750b), [`2895612`](https://github.com/livekit/agents-js/commit/28956128d8bcb8c8fac8d53dbd1afcf3e114fa6e)]:
- @livekit/agents@1.8.0

## 1.7.1

### Patch Changes
Expand Down
Loading
Loading