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.3.tar.gz (16.5 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.3-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for livekit_plugins_stepfun-1.2.3.tar.gz
Algorithm Hash digest
SHA256 a7a15cf51378ab23c7b79eb98da43c414b34f806bd03f74be9311cc6efc49397
MD5 2134a5714960d43d1c7790ffe96c24c4
BLAKE2b-256 d98f670b8a204c0dac4f8bfab9ccbe9940a87cbf3971a378ebe322f672fa3aff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for livekit_plugins_stepfun-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7c0105b9eecc4ee4cf7d65cc51f5befedcaf229fcb3d12351f82383ae6a445b9
MD5 7114e68248e5b68f1eb211a18e7f0bf8
BLAKE2b-256 6eeb8cb6042ddcc590f47432f6fe4e3b589e3dc26c17ceedf3d3324b9c66f12d

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