livekit-plugins-stepfun


Namelivekit-plugins-stepfun JSON
Version 1.2.2 PyPI version JSON
download
home_pageNone
SummaryLiveKit Agent Plugins for Stepfun
upload_time2025-07-29 06:28:16
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseNone
keywords audio livekit realtime video webrtc
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # livekit-plugins-stepfun

阶跃星辰[livekit-agent](https://github.com/livekit/agents)插件。目前支持[Realtime](https://platform.stepfun.com/docs/api-reference/realtime/chat)

## 安装
```python
pip install livekit-plugins-stepfun
```

## 环境变量

- Stepfun Realtime: `STEPFUN_REALTIME_API_KEY`

## 使用示例


```python
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))
```


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "livekit-plugins-stepfun",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "audio, livekit, realtime, video, webrtc",
    "author": null,
    "author_email": "wangmengdi <790990241@qq.com>",
    "download_url": "https://files.pythonhosted.org/packages/ec/e9/476f5fafb7bd431646d110743e22fec2c4457075f2f6a2c3f779a116b47a/livekit_plugins_stepfun-1.2.2.tar.gz",
    "platform": null,
    "description": "# livekit-plugins-stepfun\n\n\u9636\u8dc3\u661f\u8fb0[livekit-agent](https://github.com/livekit/agents)\u63d2\u4ef6\u3002\u76ee\u524d\u652f\u6301[Realtime](https://platform.stepfun.com/docs/api-reference/realtime/chat)\n\n## \u5b89\u88c5\n```python\npip install livekit-plugins-stepfun\n```\n\n## \u73af\u5883\u53d8\u91cf\n\n- Stepfun Realtime: `STEPFUN_REALTIME_API_KEY`\n\n## \u4f7f\u7528\u793a\u4f8b\n\n\n```python\nfrom livekit.agents import Agent, AgentSession, JobContext, cli, WorkerOptions\nfrom livekit.plugins import stepfun\nfrom dotenv import load_dotenv\n\n\nasync def entry_point(ctx: JobContext):\n    \n    await ctx.connect()\n    \n    agent = Agent(instructions=\"You are a helpful assistant.\")\n\n    session = AgentSession(\n        llm=stepfun.RealtimeModel(voice=\"ganliannvsheng\")\n    )\n    \n    await session.start(agent=agent, room=ctx.room)\n\nif __name__ == \"__main__\":\n    load_dotenv()\n    cli.run_app(WorkerOptions(entrypoint_fnc=entry_point))\n```\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "LiveKit Agent Plugins for Stepfun",
    "version": "1.2.2",
    "project_urls": null,
    "split_keywords": [
        "audio",
        " livekit",
        " realtime",
        " video",
        " webrtc"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "2848ec643e0febad936131f412c58f267fd6cbc10b62f7d7ea9a820efa96ccad",
                "md5": "2c4faa23235bfafc8643296a0f6f94e8",
                "sha256": "03619f9160f6376a7fc86fa66153fa761f10ccb38f1425b226adcc01c6af78f5"
            },
            "downloads": -1,
            "filename": "livekit_plugins_stepfun-1.2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2c4faa23235bfafc8643296a0f6f94e8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 16511,
            "upload_time": "2025-07-29T06:28:14",
            "upload_time_iso_8601": "2025-07-29T06:28:14.932194Z",
            "url": "https://files.pythonhosted.org/packages/28/48/ec643e0febad936131f412c58f267fd6cbc10b62f7d7ea9a820efa96ccad/livekit_plugins_stepfun-1.2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "ece9476f5fafb7bd431646d110743e22fec2c4457075f2f6a2c3f779a116b47a",
                "md5": "2d1b1632eb1927b2c702454cd6be5c8e",
                "sha256": "cc26c58c34db91c2237ebe86ea575e2ad6292d6019151ef2653c429e7b301b87"
            },
            "downloads": -1,
            "filename": "livekit_plugins_stepfun-1.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "2d1b1632eb1927b2c702454cd6be5c8e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 16296,
            "upload_time": "2025-07-29T06:28:16",
            "upload_time_iso_8601": "2025-07-29T06:28:16.273446Z",
            "url": "https://files.pythonhosted.org/packages/ec/e9/476f5fafb7bd431646d110743e22fec2c4457075f2f6a2c3f779a116b47a/livekit_plugins_stepfun-1.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-29 06:28:16",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "livekit-plugins-stepfun"
}
        
Elapsed time: 1.98517s