Skip to main content

Dify plugin for LiveKit Agents

Project description

LiveKit Plugins Dify

To use:

    agent = VoicePipelineAgent(
        vad=ctx.proc.userdata["vad"],
        stt=deepgram.STT(model=dg_model),
        llm=dify.LLM(
            base_url="Your dify API",
            api_key="Your Dify App API Key",
        ),
        tts=openai.TTS(),
        chat_ctx=initial_ctx,
    )

Notes: Do not use initial_ctx = llm.ChatContext().append to add system prompt or context. Implement these in your Dify.

Only 'Chatflow' is supported.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

livekit_plugins_dify-0.2.0.tar.gz (5.2 kB view details)

Uploaded Source

File details

Details for the file livekit_plugins_dify-0.2.0.tar.gz.

File metadata

  • Download URL: livekit_plugins_dify-0.2.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.5

File hashes

Hashes for livekit_plugins_dify-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8565fd10188b8b60746def9d8b3c773aac65d9744dde49cbdfe58154345528cb
MD5 aaa046e30085abed85bb8a6d39d7c84c
BLAKE2b-256 6725c9564f83984c1a9e1001cb2cfe309789e2b992ff50ff61064e544e7b83c5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page