Skip to content

feat(examples): add 540-livekit-integration-python [WIP]#237

Closed
github-actions[bot] wants to merge 4 commits intomainfrom
example/540-livekit-integration-python
Closed

feat(examples): add 540-livekit-integration-python [WIP]#237
github-actions[bot] wants to merge 4 commits intomainfrom
example/540-livekit-integration-python

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

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

Part of #225 — turn limit reached, build incomplete.

⚠️ WIP — the agent ran out of turns. Comment @deepgram-robot continue to resume from where it left off.

Action: New
Runtime: python
Example: 540-livekit-integration-python


Build summary

❓ Unknown completion state after 11 turns.
Rules fired: none


Tests

tests/test_integration.py

import subprocess
import os

# Define environment variables for the test
os.environ['DEEPGRAM_API_KEY'] = 'your_deepgram_api_key'
os.environ['LIVEKIT_WS_URL'] = 'ws://localhost:7880'

# Function to run the Python script and check the output
def test_transcription():
    try:
        # Run the main script
        result = subprocess.run(
            ['python3', 'src/main.py'],
            capture_output=True,
            text=True,
            check=True
        )

        # Check for expected outputs
        assert "Transcript received:" in result.stdout
        print("Integration test passed.")

    except subprocess.CalledProcessError as e:
        print("Error running the script:", e)
        exit(1)
    except AssertionError:
        print("Test failed: Output did not match expected output.")
        exit(1)

test_transcription()

Test output

ℹ️ Turn 1/150 — turn=1 phases=[] tests=not yet run history_len=0
ℹ️ Turn 2/150 — turn=2 phases=[] tests=not yet run history_len=0
ℹ️ Turn 3/150 — turn=3 phases=[] tests=not yet run history_len=0
**exit**: `127`
ℹ️ Turn 4/150 — turn=4 phases=[] tests=not yet run history_len=1
**exit**: `127`
ℹ️ Turn 5/150 — turn=5 phases=[] tests=not yet run history_len=2
**exit**: `0`
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
ℹ️ Turn 6/150 — turn=6 phases=['api_verified'] tests=not yet run history_len=3
ℹ️ Turn 7/150 — turn=7 phases=['api_verified', 'source'] tests=not yet run history_len=3
📄 wrote tests/test_integration.py
ℹ️ Turn 8/150 — turn=8 phases=['api_verified', 'source', 'tests'] tests=not yet run history_len=3
ℹ️ Turn 9/150 — turn=9 phases=['api_verified', 'blog', 'env_example', 'readme', 'source', 'tests'] tests=not yet run history_len=3
### `run_command`: `pytest tests/test_integration.py`
**exit**: `127`
bash: line 1: pytest: command not found
ℹ️ Turn 10/150 — turn=10 phases=['api_verified', 'blog', 'env_example', 'readme', 'source', 'tests'] tests=failing history_len=4
### `run_command`: `pip install pytest`
**exit**: `0`
Collecting pytest
  Downloading pytest-9.0.3-py3-none-any.whl.metadata (7.6 kB)
Collecting iniconfig>=1.0.1 (from pytest)
Collecting packaging>=22 (from pytest)
Collecting pluggy<2,>=1.5 (from pytest)
Collecting pygments>=2.7.2 (from pytest)
Downloading pytest-9.0.3-py3-none-any.whl (375 kB)
Installing collected packages: pygments, pluggy, packaging, iniconfig, pytest
Successfully installed iniconfig-2.3.0 packaging-26.1 pluggy-1.6.0 pygments-2.20.0 pytest-9.0.3
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
ℹ️ Turn 11/150 — turn=11 phases=['api_verified', 'blog', 'env_example', 'readme', 'source', 'tests'] tests=passing history_len=5

@github-actions github-actions bot added type:example New example app automated Opened by the build pipeline labels Apr 15, 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 type:example New example app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant