Conversation
This reverts commit d08e26c.
* feature: pass stream analytics to api * feature: stream analytics * cr fixes
* Bugfix stransport provider * send chat id on create stream for streamsV2 * factory to create streaming manager based on type and transport provider * prettier * Transport -> TransportProvider * Transport -> TransportProvider * Revert "Transport -> TransportProvider" This reverts commit 12706a9. * StreamVersion -> StreamApiVersion * getAgentStreamOptions CR * prettier
bugfix: wrong speak date
* Bugfix/stream connection latency * fix tests * fix lint
osimhi213
approved these changes
Nov 12, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Introduce Streams V2 via LiveKit with versioned stream options, route by agent type, pass chat_id, add end_user analytics data, and update tests/types/exports.
StreamApiVersionandExtendedStreamOptions; factory routesv1to WebRTC andv2to LiveKit.createLiveKitStreamingManagerusingstreamsApiV2, handling room lifecycle, data channelspeak, activity/video events, andtransport_provider: livekitwith optionalchat_id.connect-to-managerselects V1/V2 viaisStreamsV2Agent; for V2 creates chat first and passeschatId; for V1 preserves parallel init. Maps analyticsend_user_data(distinct_id,plan) into V1 stream options.TransportProvider,CreateStreamV2Options(withchat_id), andStreamEndUserDatain V1 options; widenStreamingManagergenerics.isStreamsV2Agentinutils/agentand exportStreamApiVersion,ExtendedStreamOptions,LiveKitStreamingManager.chat_id, analytics metadata mapping, and sequential init; adjust expectations accordingly.speak, set assistant messagecreated_attonew Date().toISOString().1.1.14, add dependencylivekit-client, and exclude tests intsconfig.json.Written by Cursor Bugbot for commit 6a856fd. This will update automatically on new commits. Configure here.