feat(examples): add 540-livekit-voice-agent-python#231
Closed
github-actions[bot] wants to merge 1 commit intomainfrom
Closed
feat(examples): add 540-livekit-voice-agent-python#231github-actions[bot] wants to merge 1 commit intomainfrom
github-actions[bot] wants to merge 1 commit intomainfrom
Conversation
Member
|
Closing to rebuild with updated pipeline (clean PR body, needs-credentials label). |
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.
Closes #225
Auto-generated from issue suggestion by the engineering pipeline.
Action: New
Runtime:
pythonExample:
540-livekit-voice-agent-pythonBuild log
Build log: example 540-livekit-voice-agent-python
⚙️ Container started
ℹ️ Bootstrapping container tools...
ℹ️ Starting agent loop for example 540-livekit-voice-agent-python (max turns: 75)
ℹ️ Turn 1/75 — turn=1 phases=[] tests=not yet run history_len=0
run_command:echo "DEEPGRAM_API_KEY is set: ${DEEPGRAM_API_KEY:+yes}" && echo "LIVEKIT_API_KEY is set: ${LIVEKIT_API_KEY:+yes}" && echo "LIVEKIT_API_SECRET is set: ${LIVEKIT_API_SECRET:+yes}" && echo "LIVEKIT_URL is set: ${LIVEKIT_URL:+yes}"exit:
0ℹ️ Turn 2/75 — turn=2 phases=['api_verified'] tests=not yet run history_len=1
run_command:deepgram --help 2>/dev/null || echo "deepgram CLI not available"exit:
0ℹ️ Turn 3/75 — turn=3 phases=['api_verified'] tests=not yet run history_len=2
run_command:context7 search "livekit agents python deepgram voice"exit:
127stderr:
ℹ️ Turn 4/75 — turn=4 phases=['api_verified'] tests=not yet run history_len=3
ℹ️ Turn 5/75 — turn=5 phases=['api_verified'] tests=not yet run history_len=3
run_command:pip install livekit-agents --dry-run 2>&1 | head -20exit:
0ℹ️ Turn 6/75 — turn=6 phases=['api_verified'] tests=not yet run history_len=4
run_command:pip search livekit-plugins-deepgram 2>&1 || pip index versions livekit-plugins-deepgram 2>&1 || pip install livekit-plugins-deepgram==9999 2>&1 | head -20exit:
0ℹ️ Turn 7/75 — turn=7 phases=['api_verified'] tests=not yet run history_len=5
run_command:cat /workspace/../030-livekit-agents-python/README.md 2>/dev/null || echo "Looking for existing example..."exit:
0ℹ️ Turn 8/75 — turn=8 phases=['api_verified'] tests=not yet run history_len=6
run_command:ls -la /workspace/../ 2>/dev/null | head -20 || echo "can't list parent"exit:
0ℹ️ Turn 9/75 — turn=9 phases=['api_verified'] tests=not yet run history_len=7
run_command:pip install livekit-agents livekit-plugins-deepgram livekit-plugins-silero --quiet 2>&1 | tail -5exit:
0ℹ️ Turn 10/75 — turn=10 phases=['api_verified'] tests=not yet run history_len=8
run_command:python3 -c "import livekit.agents; print(livekit.agents.__version__)"exit:
0ℹ️ Turn 11/75 — turn=11 phases=['api_verified'] tests=not yet run history_len=9
run_command:python3 -c "from livekit.plugins import deepgram; print(dir(deepgram))"exit:
0ℹ️ Turn 12/75 — turn=12 phases=['api_verified'] tests=not yet run history_len=10
run_command:python3 -c "from livekit.plugins.deepgram import STT, TTS; help(STT)" 2>&1 | head -80exit:
0ℹ️ Turn 13/75 — turn=13 phases=['api_verified'] tests=not yet run history_len=11
run_command:python3 -c "from livekit.plugins.deepgram import TTS; help(TTS)" 2>&1 | head -80exit:
0ℹ️ Turn 14/75 — turn=14 phases=['api_verified'] tests=not yet run history_len=12
run_command:python3 -c "from livekit.agents import AgentSession, Agent; help(AgentSession)" 2>&1 | head -100exit:
0ℹ️ Turn 15/75 — turn=15 phases=['api_verified'] tests=not yet run history_len=13
run_command:python3 -c "from livekit.agents import Agent; help(Agent)" 2>&1 | head -60exit:
0ℹ️ Turn 16/75 — turn=16 phases=['api_verified'] tests=not yet run history_len=14
run_command:python3 -c "from livekit.agents import cli; help(cli)" 2>&1 | head -50exit:
0ℹ️ Turn 17/75 — turn=17 phases=['api_verified'] tests=not yet run history_len=15
run_command:python3 -c "from livekit.agents import cli; print(dir(cli))"exit:
0ℹ️ Turn 18/75 — turn=18 phases=['api_verified'] tests=not yet run history_len=16
run_command:python3 -c "from livekit.agents.cli import run_app; help(run_app)" 2>&1 | head -100exit:
0ℹ️ Turn 19/75 — turn=19 phases=['api_verified'] tests=not yet run history_len=17
run_command:python3 -c "from livekit.agents import AgentServer; help(AgentServer)" 2>&1 | head -50exit:
0ℹ️ Turn 20/75 — turn=20 phases=['api_verified'] tests=not yet run history_len=18
run_command:pip install livekit-plugins-openai --quiet 2>&1 | tail -3exit:
0ℹ️ Turn 21/75 — turn=21 phases=['api_verified'] tests=not yet run history_len=19
run_command:python3 -c "from livekit.plugins import openai; print(dir(openai))"exit:
0ℹ️ Turn 22/75 — turn=22 phases=['api_verified'] tests=not yet run history_len=20
run_command:pip index versions livekit-plugins-silero 2>&1 | head -5exit:
0ℹ️ Turn 23/75 — turn=23 phases=['api_verified'] tests=not yet run history_len=21
run_command:echo "OPENAI_API_KEY is set: ${OPENAI_API_KEY:+yes}"exit:
0ℹ️ Turn 24/75 — turn=24 phases=['api_verified'] tests=not yet run history_len=22
run_command:pip search livekit-plugins 2>&1 || pip install livekit-plugins-anthropic==9999 2>&1 | head -15exit:
0ℹ️ Turn 25/75 — turn=25 phases=['api_verified'] tests=not yet run history_len=23
run_command:echo "ANTHROPIC_API_KEY is set: ${ANTHROPIC_API_KEY:+yes}"exit:
0ℹ️ Turn 26/75 — turn=26 phases=['api_verified'] tests=not yet run history_len=24
run_command:pip install livekit-plugins-google==9999 2>&1 | head -5exit:
0ℹ️ Turn 27/75 — turn=27 phases=['api_verified'] tests=not yet run history_len=25
run_command:echo "GOOGLE_API_KEY is set: ${GOOGLE_API_KEY:+yes}"exit:
0ℹ️ Turn 28/75 — turn=28 phases=['api_verified'] tests=not yet run history_len=26
run_command:echo "GROQ_API_KEY is set: ${GROQ_API_KEY:+yes}"exit:
0ℹ️ Turn 29/75 — turn=29 phases=['api_verified'] tests=not yet run history_len=27
run_command:env | grep -i "_API_KEY\|_API_SECRET\|_URL" | sed 's/=.*/=***/' | sortexit:
0ℹ️ Turn 30/75 — turn=30 phases=['api_verified'] tests=not yet run history_len=28
📄 wrote src/agent.py
ℹ️ Turn 31/75 — turn=31 phases=['api_verified', 'source'] tests=not yet run history_len=28
📄 wrote src/init.py
ℹ️ Turn 32/75 — turn=32 phases=['api_verified', 'source'] tests=not yet run history_len=28
📄 wrote requirements.txt
ℹ️ Turn 33/75 — turn=33 phases=['api_verified', 'source'] tests=not yet run history_len=28
📄 wrote .env.example
ℹ️ Turn 34/75 — turn=34 phases=['api_verified', 'env_example', 'source'] tests=not yet run history_len=28
run_command:mkdir -p testsexit:
0ℹ️ Turn 35/75 — turn=35 phases=['api_verified', 'env_example', 'source'] tests=not yet run history_len=29
📄 wrote tests/init.py
ℹ️ Turn 36/75 — turn=36 phases=['api_verified', 'env_example', 'source', 'tests'] tests=not yet run history_len=29
📄 wrote tests/test_deepgram_connection.py
ℹ️ Turn 37/75 — turn=37 phases=['api_verified', 'env_example', 'source', 'tests'] tests=not yet run history_len=29
📄 wrote tests/test_livekit_connection.py
ℹ️ Turn 38/75 — turn=38 phases=['api_verified', 'env_example', 'source', 'tests'] tests=not yet run history_len=29
📄 wrote tests/test_integration.py
ℹ️ Turn 39/75 — turn=39 phases=['api_verified', 'env_example', 'source', 'tests'] tests=not yet run history_len=29
📄 wrote tests/run_tests.py
ℹ️ Turn 40/75 — turn=40 phases=['api_verified', 'env_example', 'source', 'tests'] tests=not yet run history_len=29
run_command:pip install python-dotenv livekit-api --quiet 2>&1 | tail -3exit:
0ℹ️ Turn 41/75 — turn=41 phases=['api_verified', 'env_example', 'source', 'tests'] tests=not yet run history_len=30
run_command:cd /workspace && python tests/test_deepgram_connection.pyexit:
1stderr:
ℹ️ Turn 42/75 — turn=42 phases=['api_verified', 'env_example', 'source', 'tests'] tests=not yet run history_len=31
📄 wrote tests/test_deepgram_connection.py
ℹ️ Turn 43/75 — turn=43 phases=['api_verified', 'env_example', 'source', 'tests'] tests=not yet run history_len=31
run_command:cd /workspace && python tests/test_deepgram_connection.pyexit:
1stderr:
ℹ️ Turn 44/75 — turn=44 phases=['api_verified', 'env_example', 'source', 'tests'] tests=not yet run history_len=32
run_command:python3 -c "from livekit.agents.stt import SpeechEvent; help(SpeechEvent)" 2>&1 | head -60exit:
0ℹ️ Turn 45/75 — turn=45 phases=['api_verified', 'env_example', 'source', 'tests'] tests=not yet run history_len=33
run_command:python3 -c "from livekit.agents.stt import SpeechEventType; print(list(SpeechEventType))"exit:
0ℹ️ Turn 46/75 — turn=46 phases=['api_verified', 'env_example', 'source', 'tests'] tests=not yet run history_len=34
📄 wrote tests/test_deepgram_connection.py
ℹ️ Turn 47/75 — turn=47 phases=['api_verified', 'env_example', 'source', 'tests'] tests=not yet run history_len=34
run_command:cd /workspace && python tests/test_deepgram_connection.pyexit:
0stderr:
⚙️ Rules fired: ['R4']
ℹ️ Turn 48/75 — turn=48 phases=['api_verified', 'env_example', 'source', 'tests'] tests=not yet run history_len=35
run_command:cd /workspace && python tests/test_livekit_connection.pyexit:
2ℹ️ Turn 49/75 — turn=49 phases=['api_verified', 'env_example', 'source', 'tests'] tests=not yet run history_len=36
run_command:cd /workspace && python tests/test_integration.pyexit:
0stderr:
ℹ️ Turn 50/75 — turn=50 phases=['api_verified', 'env_example', 'source', 'tests'] tests=not yet run history_len=37
run_command:cd /workspace && python tests/run_tests.pyexit:
0stderr:
ℹ️ Turn 51/75 — turn=51 phases=['api_verified', 'env_example', 'source', 'tests'] tests=not yet run history_len=38
📄 wrote README.md
ℹ️ Turn 52/75 — turn=52 phases=['api_verified', 'env_example', 'readme', 'source', 'tests'] tests=not yet run history_len=38
📄 wrote BLOG.md
ℹ️ Turn 53/75 — turn=53 phases=['api_verified', 'blog', 'env_example', 'readme', 'source', 'tests'] tests=not yet run history_len=38
run_command:pip install playwright --quiet 2>&1 | tail -2exit:
0ℹ️ Turn 54/75 — turn=54 phases=['api_verified', 'blog', 'env_example', 'readme', 'source', 'tests'] tests=not yet run history_len=39
run_command:playwright install chromium 2>&1 | tail -5exit:
0ℹ️ Turn 55/75 — turn=55 phases=['api_verified', 'blog', 'env_example', 'readme', 'source', 'tests'] tests=not yet run history_len=40
📄 wrote tools/create_screenshot.py
ℹ️ Turn 56/75 — turn=56 phases=['api_verified', 'blog', 'env_example', 'readme', 'source', 'tests'] tests=not yet run history_len=40
run_command:cd /workspace && python tools/create_screenshot.pyexit:
0ℹ️ Turn 57/75 — turn=57 phases=['api_verified', 'blog', 'env_example', 'readme', 'source', 'tests'] tests=not yet run history_len=41
run_command:ls -la /workspace/screenshot.pngexit:
0ℹ️ Turn 58/75 — turn=58 phases=['api_verified', 'blog', 'env_example', 'readme', 'source', 'tests'] tests=not yet run history_len=42
ℹ️ Turn 59/75 — turn=59 phases=['api_verified', 'blog', 'env_example', 'readme', 'source', 'tests'] tests=not yet run history_len=42
run_command:rm -rf /workspace/src/__pycache__ /workspace/toolsexit:
0ℹ️ Turn 60/75 — turn=60 phases=['api_verified', 'blog', 'env_example', 'readme', 'source', 'tests'] tests=not yet run history_len=43
⚙️ Rules fired: ['R7']
ℹ️ Turn 61/75 — turn=61 phases=['api_verified', 'blog', 'env_example', 'readme', 'source', 'tests'] tests=not yet run history_len=43
run_command:cd /workspace && python tests/run_tests.pyexit:
0stderr:
ℹ️ Turn 62/75 — turn=62 phases=['api_verified', 'blog', 'env_example', 'readme', 'source', 'tests'] tests=not yet run history_len=44
run_command:cd /workspace && ls -la && echo "---" && cat .env.exampleexit:
0ℹ️ Turn 63/75 — turn=63 phases=['api_verified', 'blog', 'env_example', 'readme', 'source', 'tests'] tests=not yet run history_len=45
run_command:grep -r "DEEPGRAM_API_KEY\|LIVEKIT\|OPENAI" /workspace/src/ --include="*.py" | head -5exit:
0ℹ️ Turn 64/75 — turn=64 phases=['api_verified', 'blog', 'env_example', 'readme', 'source', 'tests'] tests=not yet run history_len=46
ℹ️ Turn 65/75 — turn=65 phases=['api_verified', 'blog', 'env_example', 'readme', 'source', 'tests'] tests=not yet run history_len=46
ℹ️ Turn 66/75 — turn=66 phases=['api_verified', 'blog', 'env_example', 'readme', 'source', 'tests'] tests=not yet run history_len=46
run_command:rm -rf /workspace/src/__pycache__exit:
0ℹ️ Turn 67/75 — turn=67 phases=['api_verified', 'blog', 'env_example', 'readme', 'source', 'tests'] tests=not yet run history_len=47
ℹ️ Agent signalled completion after 67 turns — constraints verified ✓