livekit-plugins-langchain


Namelivekit-plugins-langchain JSON
Version 1.2.1 PyPI version JSON
download
home_pageNone
SummaryLangChain/LangGraph plugin for LiveKit agents
upload_time2025-07-17 18:41:49
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9.0
licenseNone
keywords langchain langgraph agents livekit
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # LangChain plugin for LiveKit Agents

This plugin integrates capabilites from LangChain within LiveKit Agents

## Installation

```bash
pip install livekit-plugins-langchain
```

## Usage

### Using LangGraph workflows

You can bring over any existing workflow in LangGraph as an Agents LLM with `langchain.LLMAdapter`. For example:

```python
from langgraph.graph import StateGraph
from livekit.agents import Agent, AgentSession, JobContext
from livekit.plugins import langchain

...

def entrypoint(ctx: JobContext):
    graph = StateGraph(...).compile()

    session = AgentSession(
        vad=...,
        stt=...,
        tts=...,
    )

    await session.start(
        agent=Agent(llm=langchain.LLMAdapter(graph)),
    )
    ...
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "livekit-plugins-langchain",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9.0",
    "maintainer_email": null,
    "keywords": "LangChain, LangGraph, agents, livekit",
    "author": null,
    "author_email": "LiveKit <hello@livekit.io>",
    "download_url": "https://files.pythonhosted.org/packages/89/16/5cc7635e6a97f1cc82cafbf28ef50e0124fd5be56958f9e9cbe90fa59e04/livekit_plugins_langchain-1.2.1.tar.gz",
    "platform": null,
    "description": "# LangChain plugin for LiveKit Agents\n\nThis plugin integrates capabilites from LangChain within LiveKit Agents\n\n## Installation\n\n```bash\npip install livekit-plugins-langchain\n```\n\n## Usage\n\n### Using LangGraph workflows\n\nYou can bring over any existing workflow in LangGraph as an Agents LLM with `langchain.LLMAdapter`. For example:\n\n```python\nfrom langgraph.graph import StateGraph\nfrom livekit.agents import Agent, AgentSession, JobContext\nfrom livekit.plugins import langchain\n\n...\n\ndef entrypoint(ctx: JobContext):\n    graph = StateGraph(...).compile()\n\n    session = AgentSession(\n        vad=...,\n        stt=...,\n        tts=...,\n    )\n\n    await session.start(\n        agent=Agent(llm=langchain.LLMAdapter(graph)),\n    )\n    ...\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "LangChain/LangGraph plugin for LiveKit agents",
    "version": "1.2.1",
    "project_urls": {
        "Documentation": "https://docs.livekit.io",
        "Source": "https://github.com/livekit/agents",
        "Website": "https://livekit.io/"
    },
    "split_keywords": [
        "langchain",
        " langgraph",
        " agents",
        " livekit"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "e46799201ed0d38391d50d19106a0a56e29fdd18b9bad2493661394cda6a8c1d",
                "md5": "89fe4cd0b094e1ae578ce021fe662294",
                "sha256": "2ef699a35b6c04f41f9ec0e7290b1f9ddd27e7743802dd18f825c8c360030df9"
            },
            "downloads": -1,
            "filename": "livekit_plugins_langchain-1.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "89fe4cd0b094e1ae578ce021fe662294",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9.0",
            "size": 4875,
            "upload_time": "2025-07-17T18:41:49",
            "upload_time_iso_8601": "2025-07-17T18:41:49.066152Z",
            "url": "https://files.pythonhosted.org/packages/e4/67/99201ed0d38391d50d19106a0a56e29fdd18b9bad2493661394cda6a8c1d/livekit_plugins_langchain-1.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "89165cc7635e6a97f1cc82cafbf28ef50e0124fd5be56958f9e9cbe90fa59e04",
                "md5": "c41c7b0bc2a2b625efef0ebce2a9e2eb",
                "sha256": "dd5f41882524b35a66133a45e19e1740c00322f61fe41aa8081a9e073a107c5a"
            },
            "downloads": -1,
            "filename": "livekit_plugins_langchain-1.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "c41c7b0bc2a2b625efef0ebce2a9e2eb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9.0",
            "size": 4495,
            "upload_time": "2025-07-17T18:41:49",
            "upload_time_iso_8601": "2025-07-17T18:41:49.919008Z",
            "url": "https://files.pythonhosted.org/packages/89/16/5cc7635e6a97f1cc82cafbf28ef50e0124fd5be56958f9e9cbe90fa59e04/livekit_plugins_langchain-1.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-17 18:41:49",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "livekit",
    "github_project": "agents",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "livekit-plugins-langchain"
}
        
Elapsed time: 1.78703s