Skip to content

feat(examples): update 030-livekit-agents-python#238

Draft
github-actions[bot] wants to merge 10 commits intomainfrom
example/update-030-livekit-agents-python
Draft

feat(examples): update 030-livekit-agents-python#238
github-actions[bot] wants to merge 10 commits intomainfrom
example/update-030-livekit-agents-python

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions bot commented Apr 16, 2026

Relates to #225

Status

  • Pipeline state: partial progress saved, awaiting continuation or review
  • Action: Modify
  • Runtime: python
  • Example: 030-livekit-agents-python
  • Turns used: 9
  • Tests: failing

This draft PR was left intentionally resumable. Comment @deepgram-robot continue with follow-up instructions to start another lap.

Test Results

  • Command: pytest tests/
  • Exit code: 1
============================= test session starts ==============================
platform linux -- Python 3.12.13, pytest-9.0.3, pluggy-1.6.0
rootdir: /workspace
collected 5 items

tests/test_example.py FFF.F                                              [100%]

=================================== FAILURES ===================================
__________________________ test_agent_module_imports ___________________________

    def test_agent_module_imports():
        """Importing the agent module verifies all dependencies are installed
        and the code is syntactically valid."""
>       import agent  # noqa: F401
        ^^^^^^^^^^^^

tests/test_example.py:28: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    import logging
    import os
    
    from dotenv import load_dotenv
    
    load_dotenv()
    
    # LiveKit agents v1.4+ uses a declarative pipeline: you pick an STT, LLM, and
    # TTS provider and the framework handles audio routing, turn detection, and
    # interruption logic.  Deepgram is plugged in via livekit-plugins-deepgram
    # which wraps the Deepgram SDK internally — you don't call the Deepgram SDK
    # directly.
>   from livekit.agents import (
        Agent,
        AgentServer,
        AgentSession,
        JobContext,
        JobProcess,
        cli,
        inference,
        room_io,
    )
E   ModuleNotFoundError: No module named 'livekit.agents'

src/agent.py:13: ModuleNotFoundError
__________________________ test_voice_assistant_class __________________________

    def test_voice_assistant_class():
        """Verify VoiceAssistant is defined and is a subclass of Agent."""
>       from livekit.agents import Agent
E       ModuleNotFoundError: No module named 'livekit.agents'

tests/test_example.py:35: ModuleNotFoundError
_________________________ test_entrypoint_is_callable __________________________

    def test_entrypoint_is_callable():
        """Verify the entrypoint session function is defined and callable."""
>       import agent

tests/test_example.py:48: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    import logging
    import os
    
    from dotenv import load_dotenv
    
    load_dotenv()
    
    # LiveKit agents v1.4+ uses a declarative pipeline: you pick an STT, LLM, and
    # TTS provider and the framework handles audio routing, turn detection, and
    # interruption logic.  Deepgram is plugged in via livekit-plugins-deepgram
    # which wraps the Deepgram SDK internally — you don't call the Deepgram SDK
    # directly.
>   from livekit.agents import (
        Agent,
        AgentServer,
        AgentSession,
        JobContext,
        JobProcess,
        cli,
        inference,
        room_io,
    )
E   ModuleNotFoundError: No module named 'livekit.agents'

src/agent.py:13: ModuleNotFoundError
__________________________ test_server_object_exists ___________________________

    def test_server_object_exists():
        """Verify the AgentServer object is created at module level."""
>       import agent

tests/test_example.py:75: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    import logging
    import os
    
    from dotenv import load_dotenv
    
    load_dotenv()
    
    # LiveKit agents v1.4+ uses a declarative pipeline: you pick an STT, LLM, and
    # TTS provider and the framework handles audio routing, turn detection, and
    # interruption logic.  Deepgram is plugged in via livekit-plugins-deepgram
    # which wraps the Deepgram SDK internally — you don't call the Deepgram SDK
    # directly.
>   from livekit.agents import (
        Agent,
        AgentServer,
        AgentSession,
        JobContext,
        JobProcess,
        cli,
        inference,
        room_io,
    )
E   ModuleNotFoundError: No module named 'livekit.agents'

src/agent.py:13: ModuleNotFoundError
=========================== short test summary info ============================
FAILED t

needs-credentials — one or more tests exit 2 when credentials are missing. Add the required secrets to the repository to enable end-to-end testing.

@github-actions github-actions bot added type:example New example app automated Opened by the build pipeline labels Apr 16, 2026
@github-actions github-actions bot added the needs-credentials Example needs secrets added to CI before tests can run end-to-end label Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated Opened by the build pipeline needs-credentials Example needs secrets added to CI before tests can run end-to-end type:example New example app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants