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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for livekit_plugins_stepfun-1.2.3.post0.tar.gz
Algorithm Hash digest
SHA256 9877f5e60d897e0fc1728186eb530f2e125ceeb264b7fc9d22be0c9b47c68822
MD5 644408e4002e7a2814ed816a96bb3940
BLAKE2b-256 b240315cfa39c0bc50c6312e994b3129de2d7be178c6cd9f5244583216b94ef5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for livekit_plugins_stepfun-1.2.3.post0-py3-none-any.whl
Algorithm Hash digest
SHA256 cfb89a7b398c4386c6bc7c3ee59d26f2dec9f4b68b7f37b86ff4008419d0a944
MD5 aee8a8d8181d5c161e2a70f34cfe4ac7
BLAKE2b-256 dae2b804d4e91f82910b046598f107475db9928e723ddbb9652e420a70bbf42b

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