Add LiveKitSessionArguments session type - #196
Closed
markbackman wants to merge 1 commit into
Closed
Conversation
Adds a LiveKit agent session type alongside the existing Daily, WebSocket, and SmallWebRTC ones. Like the others it subclasses the matching pipecat-ai runner type (LiveKitRunnerArguments), so it carries room_name, url, token, and session_id and works with pipecat's create_transport and isinstance checks. pipecat.runner.run vends LiveKitRunnerArguments for local runs. To start an agent on Pipecat Cloud, an app mints the room and tokens and sends the connection details in the start request's body, in whatever shape it defines. A bot builds these arguments from that body and create_transport takes it from there.
markbackman
force-pushed
the
add-livekit-session-arguments
branch
from
August 19, 2026 22:34
c6350a6 to
cd331c4
Compare
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.
Adds a LiveKit agent session type alongside the existing Daily, WebSocket, and SmallWebRTC ones.
What changed
LiveKitSessionArgumentsinsrc/pipecatcloud/agent.py, subclassing pipecat-ai'sLiveKitRunnerArgumentslike the other session types do. It carriesroom_name,url,token, andsession_id, and works with pipecat'screate_transportandisinstancechecks.pipecatcloud(both the lazy-export tuple and__all__).Passing connection details
Pass the LiveKit connection details in the
bodyrequest parameter when starting a session, under alivekitkey holdingurl,room_name, and the bot'stoken. Base image 0.1.28 and later turns that block intoLiveKitSessionArgumentsbefore callingbot().Test plan
uv run pytest— 349 passed.🤖 Generated with Claude Code