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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file livekit_plugins_dify-0.1.0.tar.gz.
File metadata
- Download URL: livekit_plugins_dify-0.1.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fab8c799ffdded76196c492c1282759c4e480bf6781bcff874648e8d13cdec5
|
|
| MD5 |
a3bcd2b785adaae75731a741cc065604
|
|
| BLAKE2b-256 |
ed5f2ef090e85ccca25b02e77680ae8344271b9017db6f20f0d528115d6d561d
|