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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for livekit_plugins_stepfun-1.2.6.tar.gz
Algorithm Hash digest
SHA256 d0fa1be8df0c50ce5cd3020157f2254fcfbe3e9144fb8c035f3a6649f42fb86e
MD5 9d823c0afa81696ea7f4ed786ced48e7
BLAKE2b-256 d46045119f9fd74b369c9ebb4800b706446522ca1be8ec0c0ef2573c0c0d5208

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for livekit_plugins_stepfun-1.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 0517330a6a9343aff2a401b6da42a959e087d9362dbd7dbb2040a319236f51ab
MD5 84ecf222107facdc7ae32bee85192373
BLAKE2b-256 2e17a3988c3cd6fdc33d1a695233b07bcbc8b2b5cce686c950adfde753d867ff

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