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.post1.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.post1-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for livekit_plugins_stepfun-1.2.3.post1.tar.gz
Algorithm Hash digest
SHA256 a36d69760db61ff2be8de18fe9559e6c925a09d7b6818aa95249b6a62e16b037
MD5 d30ea83351da344a06d3686018fbe9cb
BLAKE2b-256 1d113369d3b409daeec4bca7746d30c1dbbab6b80a7ffab711e278015a92cf98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for livekit_plugins_stepfun-1.2.3.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 778a5ed83d9d6380142f59eaedba1e0fe75e5c8d5a48833f374164048028dfe4
MD5 0f3ab9fdad789b0c8459a7a497362a9a
BLAKE2b-256 9bbc58225459027911f53341114e04c7cadfa5df48001d00349e06dc2cf76939

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