# 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, ai, livekit, realtime, voice",
"author": null,
"author_email": "LiveKit <hello@livekit.io>",
"download_url": "https://files.pythonhosted.org/packages/34/34/a25992f6f2e8e6092febd6ac9e76aca31d7974a32596ddaed5d707a61b73/livekit_plugins_langchain-1.2.18.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.18",
"project_urls": {
"Documentation": "https://docs.livekit.io",
"Source": "https://github.com/livekit/agents",
"Website": "https://livekit.io/"
},
"split_keywords": [
"langchain",
" langgraph",
" ai",
" livekit",
" realtime",
" voice"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "744fc1ecd7b86e5f33214c419aee5e763881ee3565615e53d716dfd174cf3efe",
"md5": "51fc5fd6c67811d7358adf0fb33ee2fb",
"sha256": "18c282650f126878d3736ecd6a6fb6965c534e0fb4dd54955a711ce476ec8c7a"
},
"downloads": -1,
"filename": "livekit_plugins_langchain-1.2.18-py3-none-any.whl",
"has_sig": false,
"md5_digest": "51fc5fd6c67811d7358adf0fb33ee2fb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9.0",
"size": 5455,
"upload_time": "2025-11-05T19:33:09",
"upload_time_iso_8601": "2025-11-05T19:33:09.649763Z",
"url": "https://files.pythonhosted.org/packages/74/4f/c1ecd7b86e5f33214c419aee5e763881ee3565615e53d716dfd174cf3efe/livekit_plugins_langchain-1.2.18-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "3434a25992f6f2e8e6092febd6ac9e76aca31d7974a32596ddaed5d707a61b73",
"md5": "ca90295037f126ea51907de9fdab31aa",
"sha256": "d313112dedae177b5ceea35351d0e23be304332084229e7583d2e547aaaa2cb6"
},
"downloads": -1,
"filename": "livekit_plugins_langchain-1.2.18.tar.gz",
"has_sig": false,
"md5_digest": "ca90295037f126ea51907de9fdab31aa",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9.0",
"size": 5145,
"upload_time": "2025-11-05T19:33:10",
"upload_time_iso_8601": "2025-11-05T19:33:10.409958Z",
"url": "https://files.pythonhosted.org/packages/34/34/a25992f6f2e8e6092febd6ac9e76aca31d7974a32596ddaed5d707a61b73/livekit_plugins_langchain-1.2.18.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-11-05 19:33:10",
"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"
}