LiveKit Agent Plugins for Zhipu
Project description
LiveKit Plugins Zhipu(智谱)
Agent Framework plugin for services from Zhipu. Currently supports LLM
Installation
pip install livekit-plugins-zhipu
Pre-requisites
- Zhipu LLM environment variable:
ZHIPU_LLM_API_KEY
Usage
This example shows how to use the Zhipu plugin to create a voice agent.
from livekit.agents import Agent, AgentSession, JobContext, cli, WorkerOptions
from livekit.plugins import zhipu
from dotenv import load_dotenv
async def entry_point(ctx: JobContext):
await ctx.connect()
agent = Agent(instructions="You are a helpful assistant.")
session = AgentSession(
llm=zhipu.LLM(model="glm-4-flashx"),
)
await session.start(agent=agent, room=ctx.room)
await session.generate_reply()
if __name__ == "__main__":
load_dotenv()
cli.run_app(WorkerOptions(entrypoint_fnc=entry_point))
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file livekit_plugins_zhipu-1.1.0.post4.tar.gz.
File metadata
- Download URL: livekit_plugins_zhipu-1.1.0.post4.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbb82c50b916751e0423f582d16247df7e09500623809a2873c9b6e8cf6e5b85
|
|
| MD5 |
9ea67ac6a609ce20d71014dc5532ac6f
|
|
| BLAKE2b-256 |
be77eb7d92b5ece5b4ab6dcc8dc65a8fc4845c8995d9722cee3e676bafdb4315
|
File details
Details for the file livekit_plugins_zhipu-1.1.0.post4-py3-none-any.whl.
File metadata
- Download URL: livekit_plugins_zhipu-1.1.0.post4-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07900705bdb8ff52dc401c30c945cc074695aee5a8cd7cbace76f7d5f8a2e4a1
|
|
| MD5 |
6253af3a52deeb9989e9221c6304dd55
|
|
| BLAKE2b-256 |
45b2a3b78f2e8b872ecda88236a7ef8f9289dde1cd32aa4d0d5ee3c95c1e98ef
|