Skip to main content

langchain-breakwire

Current release: clients 0.12.0 (PyPI breakwire, PyPI langchain-breakwire; npm breakwire 0.7.0 until 0.12.0 is published) · server 0.10.0 · GitHub Action breakwire-check 1.2.0 · CHANGELOG

Try it: one call, no key, no install

curl -X POST https://breakwire.org/api/lookup -H 'content-type: application/json' -d '{"error":"Error: D1_ERROR: Network connection lost.","compact":true}'

Returns explained: true and claim AN-2026-0143 (the vendor-documented D1 error, the fix and its source). Paste your own error text as "error"; add "service" / "model" if you know them, "no_log": true to store nothing.

LangChain integration for Breakwire: tools an agent can call to look up an API/SDK error or check upcoming deadlines, and a callback handler that looks up errors raised in your chains, LLM calls and tools.

pip install langchain-breakwire
from langchain_breakwire import breakwire_tools, BreakwireCallbackHandler

tools = breakwire_tools()      # lookup_error, deadlines, check_stack (one shared client); give them to your agent

handler = BreakwireCallbackHandler(service="openai-api")
try:
    chain.invoke(inputs, config={"callbacks": [handler]})
except Exception as e:
    print(e.breakwire.id, e.breakwire.fix)    # same exception, explanation attached
    raise
  • BreakwireLookupTool (breakwire_lookup_error): error text (+ optional service, sdk, sdk_version, model) → compact matches with id, confidence, fix, source URL. Unmatched errors are not logged unless log_miss=True.
  • BreakwireDeadlinesTool (breakwire_deadlines): upcoming act-by dates for a service.
  • BreakwireStackTool (breakwire_check_stack, 0.2.0): a package list or package.json / lockfiles / requirements.txt / pyproject.toml / workflow files (parsed locally since 0.6.0) → the deadlines, breaking changes and advisories that apply, soonest first.
  • BreakwireCallbackHandler: on_llm_error / on_tool_error / on_chain_error; each exception is looked up once even though LangChain reports it at every nesting level. Never raises, never changes the error. on_match(info, error) hook. 0.2.0: sends no_log=True by default (nothing stored server-side); no_log=False to contribute misses as gaps.
  • Tool results include remember: one short line the agent can save to memory (when to consult Breakwire again).

Built on the stdlib-only breakwire client, which strips secrets before sending. Breakwire's community verification has just started; claims link primary sources, prefer those.

MIT.

0.6.0

Requires breakwire>=0.6.0: the stack tool's files are parsed locally (only dependency and runtime facts are sent), redirects never carry credentials to another origin, and the callback handler forwards every lookup option (compact, min_score, max_matches, since, reflex, ...).

0.5.0

The default client sends X-Breakwire-Client: langchain-breakwire/<version> (aggregate per-channel counts on Breakwire 0.8.0). Requires breakwire>=0.5.0.

0.4.0

The lookup tool's compact result now includes cite, please and miss (gap id, coverage note, nearest claims). Requires breakwire>=0.4.0.

0.3.0

breakwire_tools() now returns five tools: breakwire_lookup_error, breakwire_close_lookup (every outcome), breakwire_changes (what changed since a date, with new model launches), breakwire_deadlines, breakwire_check_stack. All tools fail open: if Breakwire is unavailable they return {"error": ...} instead of raising.

Metadata

Release files for langchain-breakwire 0.12.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-breakwire 0.12.0
File Size Uploaded Provenance Actions
langchain_breakwire-0.12.0.tar.gz 12.1 kB With provenance Details for langchain_breakwire-0.12.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langchain-breakwire 0.12.0
File Interpreter ABI Platform Actions
langchain_breakwire-0.12.0-py3-none-any.whl Python 3 none any Details for langchain_breakwire-0.12.0-py3-none-any.whl

Total release size: 20.8 kB

Release files / langchain_breakwire-0.12.0.tar.gz

Download URL langchain_breakwire-0.12.0.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c6c9e69a09405344ae483981e0abd1d13c9cbcda895ca1b6a8e3e14936fb3b00
BLAKE2b-256 checksum
How to use checksums
d5c5ebefe661c47d11caa3cc588f8dc02a0831dca174a1f9d55397ba61165abc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Release files / langchain_breakwire-0.12.0-py3-none-any.whl

Download URL langchain_breakwire-0.12.0-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e4a447558f74fab69ca7b8451c70c709b7c8ecd1b0060a13f299c977eef90769
BLAKE2b-256 checksum
How to use checksums
2d029715afe34b4d76e0c64cb4d893d71afa429c339b3235107dff4caf806dd0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Security for langchain-breakwire 0.12.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for langchain_breakwire-0.12.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

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.

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