livekit-plugins-langchain


Namelivekit-plugins-langchain JSON
Version 1.1.6 PyPI version JSON
download
home_pageNone
SummaryLangChain/LangGraph plugin for LiveKit agents
upload_time2025-07-10 17:32:44
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/f1/4e/47339de1e6950ec8271bf16c325a5e539cb17e3a5d644c9fb310bd83e9c7/livekit_plugins_langchain-1.1.6.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.1.6",
    "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": "ff9c08dddae1b20af422612d0736dc27ec66c408348d4b41eb3c4ebdd3819c24",
                "md5": "a48edcd4b62f13668e245ad5468262e1",
                "sha256": "07011a4d74eaabc3543aba9fa6b87c21dd0104379f8a4aecb911dd2e8e2a2672"
            },
            "downloads": -1,
            "filename": "livekit_plugins_langchain-1.1.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a48edcd4b62f13668e245ad5468262e1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9.0",
            "size": 4877,
            "upload_time": "2025-07-10T17:32:43",
            "upload_time_iso_8601": "2025-07-10T17:32:43.745046Z",
            "url": "https://files.pythonhosted.org/packages/ff/9c/08dddae1b20af422612d0736dc27ec66c408348d4b41eb3c4ebdd3819c24/livekit_plugins_langchain-1.1.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "f14e47339de1e6950ec8271bf16c325a5e539cb17e3a5d644c9fb310bd83e9c7",
                "md5": "ca211f7e53502f2593ca969ee9faddbf",
                "sha256": "01b4160e66895c8fa024f90c6a58fdec56b63ffe6493744c72eeecd9f3ebf797"
            },
            "downloads": -1,
            "filename": "livekit_plugins_langchain-1.1.6.tar.gz",
            "has_sig": false,
            "md5_digest": "ca211f7e53502f2593ca969ee9faddbf",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9.0",
            "size": 4496,
            "upload_time": "2025-07-10T17:32:44",
            "upload_time_iso_8601": "2025-07-10T17:32:44.570162Z",
            "url": "https://files.pythonhosted.org/packages/f1/4e/47339de1e6950ec8271bf16c325a5e539cb17e3a5d644c9fb310bd83e9c7/livekit_plugins_langchain-1.1.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-10 17:32:44",
    "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.50809s