Skip to main content

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


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_stepfun-1.2.9.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

livekit_plugins_stepfun-1.2.9-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file livekit_plugins_stepfun-1.2.9.tar.gz.

File metadata

File hashes

Hashes for livekit_plugins_stepfun-1.2.9.tar.gz
Algorithm Hash digest
SHA256 a26e74b62d56f258896855e9490aa627e4716ee8d283a4e083938c7f24f74d41
MD5 be8e558e5b92c625cc34d3a0ac8e6c81
BLAKE2b-256 917a275b790e58cb9037ea2f192050ac8e6bea001459e15bbf8481053803f4db

See more details on using hashes here.

File details

Details for the file livekit_plugins_stepfun-1.2.9-py3-none-any.whl.

File metadata

File hashes

Hashes for livekit_plugins_stepfun-1.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 8b3000c87d37438adac78678c91533d2d1a685e2e593dd7cf5f11bab823146f5
MD5 4a7a955b4974bdfa084405a3f63b2356
BLAKE2b-256 9b5e4a178278658b507af17b4a9cde50bd7d2146e70046feba8bb013970608c4

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