Skip to main content

langchain-lanerouter

LangChain tools for LaneRouter: live road conditions for the agent web.

Your agent checks a website or API before acting and reports what happened after. Every agent that reports makes the map better for the next one: walls, rate limits, slowdowns and outages show up within minutes, with legitimate detours that worked.

pip install langchain-lanerouter

Tools

Tool Class Key
check_road LaneRouterCheckRoad Not needed
red_lights LaneRouterRedLights Not needed
report_road LaneRouterReportRoad Free key from lanerouter.com/connect

LaneRouterToolkit().get_tools() returns all three, or the first two when no key is set. The key is read from LANEROUTER_KEY, or pass key= to the toolkit or any tool.

With a LangChain agent

from langchain.agents import create_agent
from langchain_lanerouter import LaneRouterToolkit

agent = create_agent(
    "openai:gpt-5-mini",
    tools=LaneRouterToolkit().get_tools(),
    system_prompt="Before acting on a website or API, call check_road. Afterwards, call report_road.",
)

agent.invoke({"messages": [{"role": "user", "content": "Is GitHub login working for agents right now?"}]})

On its own

from langchain_lanerouter import LaneRouterCheckRoad

LaneRouterCheckRoad().invoke({"target": "shop.example/checkout", "action": "checkout"})

Returns the road's condition, its light, plain-language advice, ranked detours and any official_notice from the site owner.

What gets sent

Only the road (the host and its first meaningful path segment), the action, the outcome, the HTTP status, the timing and the framework name. Never page content, prompts, query strings, IDs or personal data. https://shop.example/checkout/ORDER-8812?email=… is sent as shop.example/checkout.

MCP instead

LaneRouter is also an MCP server at https://lanerouter.com/mcp, which works with langchain-mcp-adapters. See lanerouter.com/docs.

MIT licensed.

Metadata

Release files for langchain-lanerouter 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-lanerouter 0.1.0
File Size Uploaded Provenance Actions
langchain_lanerouter-0.1.0.tar.gz 6.9 kB Without provenance Details for langchain_lanerouter-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langchain-lanerouter 0.1.0
File Interpreter ABI Platform Actions
langchain_lanerouter-0.1.0-py3-none-any.whl Python 3 none any Details for langchain_lanerouter-0.1.0-py3-none-any.whl

Total release size: 13.8 kB

Release files / langchain_lanerouter-0.1.0.tar.gz

Download URL langchain_lanerouter-0.1.0.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0a1e501f00609421202ca1129c820ad717b1701861cdbd2c96975d75e9e6591e
BLAKE2b-256 checksum
How to use checksums
7e583488bd5785328a978d7c4db281b5c7d7cb12195d423a650d9cc2aec4c82b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / langchain_lanerouter-0.1.0-py3-none-any.whl

Download URL langchain_lanerouter-0.1.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
320f385f6957d206f726ba9a9cecab5c837e62d3661a0d90393b115255944c6d
BLAKE2b-256 checksum
How to use checksums
511bb859e2639fafd5c14f5e8dbe8daea32eabf21b67eee791d0c8fb6ac0916a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for langchain-lanerouter 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page