Repository navigation
Add LiveKit Agents + Eleven Realtime example (Python) - #263
Draft
kraenhansen wants to merge 2 commits into
Draft
kraenhansen wants to merge 2 commits into
kraenhansen wants to merge 2 commits into
Conversation
Installs livekit-plugins-elevenlabs from the livekit/agents#8075 branch until its realtime module is released. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
livekit-plugins-elevenlabs reads ELEVEN_API_KEY, unlike the ELEVENLABS_API_KEY used across this repo. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Developers building on LiveKit Agents need a runnable example of using ElevenLabs Realtime as the speech-to-speech model. Blocked on livekit/agents#8075 being released: until then
requirements.txtinstallslivekit-plugins-elevenlabsfrom that PR's branch.Merging this PR will:
agents/python/livekit(PROMPT.md,setup.sh,README.md, generatedexample/): a LiveKitAgentServerconsole agent usingelevenlabs.realtime.RealtimeModelwith anon_entergreeting and alookup_weatherfunction tool.README.md.Additional context intended for coding agents and bots
Layout and conventions
<product>/<runtime>/<slug>from.cursor/skills/scaffold-elevenlabs-example, seeded fromtemplates/pythonlike the other Python quickstarts (main.py,requirements.txt,.envloaded withload_dotenv(),.venv/bin/python main.py ...).setup.shoverwrites the template'srequirements.txt(no ElevenLabs SDK;livekit-agentsplus the plugin) and.env.example, analogous to how the Next.jssetup.shscripts patchpackage.json.ELEVEN_API_KEYrather than the repo's usualELEVENLABS_API_KEY, because that is whatlivekit-plugins-elevenlabsreads by default.Unblocking
Once livekit/agents#8075 ships, replace the git requirement in
setup.shandexample/requirements.txtwith a releasedlivekit-plugins-elevenlabs>=<version>, drop theTODOinsetup.sh, and remove the dependency note from bothREADME.mdcopies.Test plan and verification
bash agents/python/livekit/setup.sh(Python 3.14): resolves and installslivekit-agents1.8.10 from PyPI andlivekit-plugins-elevenlabsfrom the PR branchmain.pywith a dummyELEVEN_API_KEY:AgentServerandRealtimeModelconstruct,Assistantexposes thelookup_weathertool.venv/bin/python main.py --helplists theconsolecommandruff check .(clean, matches CI)npx prettier . --check(clean, matches CI)consolesession against ElevenLabs Realtime (not run)🤖 Generated with Claude Code