LiveKit Agent Plugins for Stepfun
Project description
livekit-plugins-stepfun
阶跃星辰livekit-agent插件。目前支持Realtime
安装
pip install livekit-plugins-stepfun
环境变量
- Stepfun Realtime:
STEPFUN_REALTIME_API_KEY
使用示例
from livekit.agents import Agent, AgentSession, JobContext, cli, WorkerOptions
from livekit.plugins import stepfun
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=stepfun.RealtimeModel(voice="ganliannvsheng")
)
await session.start(agent=agent, room=ctx.room)
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_stepfun-1.2.3.post1.tar.gz.
File metadata
- Download URL: livekit_plugins_stepfun-1.2.3.post1.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a36d69760db61ff2be8de18fe9559e6c925a09d7b6818aa95249b6a62e16b037
|
|
| MD5 |
d30ea83351da344a06d3686018fbe9cb
|
|
| BLAKE2b-256 |
1d113369d3b409daeec4bca7746d30c1dbbab6b80a7ffab711e278015a92cf98
|
File details
Details for the file livekit_plugins_stepfun-1.2.3.post1-py3-none-any.whl.
File metadata
- Download URL: livekit_plugins_stepfun-1.2.3.post1-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
778a5ed83d9d6380142f59eaedba1e0fe75e5c8d5a48833f374164048028dfe4
|
|
| MD5 |
0f3ab9fdad789b0c8459a7a497362a9a
|
|
| BLAKE2b-256 |
9bbc58225459027911f53341114e04c7cadfa5df48001d00349e06dc2cf76939
|