Skip to content

manishdighore/livekit_agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sm_livekit-agent

This project integrates the Doctor MCP Agent with LiveKit, providing a backend and frontend for real-time communication.


Table of Contents


Getting Started

Backend Setup (livekit-backend)

  1. Navigate to the backend directory:

    cd livekit-backend
  2. Ensure Python 3.10+ is installed.

  3. Install dependencies:

    pip install -r requirements.txt
  4. Set up environment variables:

    • Copy .env.example to .env and fill in your credentials.
    • Example:
      OPENAI_API_KEY=your_openai_api_key
      LIVEKIT_URL=your_livekit_url
      LIVEKIT_API_KEY=your_livekit_api_key
      LIVEKIT_API_SECRET=your_livekit_api_secret
      SIMLI_API_KEY=your_simli_api_key
      
  5. Run the MCP server:

    python hospital_agent_mcp.py
  6. Run the LiveKit Agent worker (connects to LiveKit Cloud):

    python livekit_agent.py dev

Frontend Setup (livekit-frontend)

  1. Navigate to the frontend directory:

    cd livekit-frontend
  2. Ensure Node.js (>=18) is installed.
    Download Node.js

  3. Install pnpm globally:

    npm install -g pnpm
  4. Install dependencies:

    pnpm install
  5. Set up environment variables:

    • Copy .env.example to .env.local and fill in your credentials.
    • Example:
      LIVEKIT_URL=your_livekit_url
      LIVEKIT_API_KEY=your_livekit_api_key
      LIVEKIT_API_SECRET=your_livekit_api_secret
      
  6. Run the development server:

    pnpm dev

Environment Variables

Both backend and frontend require environment variables. Refer to the provided .env.example files in each directory for required keys.


Running the Project


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published