Skip to main content

LangChain/LangGraph plugin for LiveKit agents

Project description

LangChain plugin for LiveKit Agents

This plugin integrates capabilites from LangChain within LiveKit Agents

Installation

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:

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)),
    )
    ...

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_langchain-1.5.10.tar.gz (5.6 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_langchain-1.5.10-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file livekit_plugins_langchain-1.5.10.tar.gz.

File metadata

File hashes

Hashes for livekit_plugins_langchain-1.5.10.tar.gz
Algorithm Hash digest
SHA256 88cba385167902b37da321144fb3d14a0ca328c8e846ceeb0bb5c8a9f6356fc9
MD5 d3732d8a6431eab1669bedb7dd33d112
BLAKE2b-256 60729bd45da41dda94ec74f7a8e10691f86014a2313f4a6bba89a28fc3899edb

See more details on using hashes here.

Provenance

The following attestation bundles were made for livekit_plugins_langchain-1.5.10.tar.gz:

Publisher: publish.yml on livekit/agents

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file livekit_plugins_langchain-1.5.10-py3-none-any.whl.

File metadata

File hashes

Hashes for livekit_plugins_langchain-1.5.10-py3-none-any.whl
Algorithm Hash digest
SHA256 c8c89ff624de10d6b7afe65044e4fd94ac76245225e63026a9ad955e5548f22f
MD5 e9005df2a960844bef80523a63937176
BLAKE2b-256 7a8e7feb501ec11068ef749ea97dae027bcbf85b238aa6335754cd146c001c6e

See more details on using hashes here.

Provenance

The following attestation bundles were made for livekit_plugins_langchain-1.5.10-py3-none-any.whl:

Publisher: publish.yml on livekit/agents

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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