Skip to main content

langchain-bosco

LangChain tools for Bosco Labs: answers from official records (company registers, SEC EDGAR, sanctions lists, EU and national law, ECB and Eurostat), each row with its source URL.

pip install langchain-bosco
from langchain.agents import create_agent
from langchain_bosco import CounterpartyCheckTool, PlanOfficialRecordsQueryTool

agent = create_agent(
    "openai:gpt-5-mini",
    tools=[CounterpartyCheckTool(), PlanOfficialRecordsQueryTool()],  # key: BOSCO_API_KEY
)
result = agent.invoke(
    {"messages": [{"role": "user", "content": "Can we pay Novo Nordisk (CVR 24256790)?"}]}
)
print(result["messages"][-1].content)

Tools

Class What it does Price
CounterpartyCheckTool KYB checklist for one company: register status, LEI, insolvency, recent accounts, sanctions (OFAC, UN, UK, EU) on the company and its officers, VAT (VIES) and IBAN when given. $0.05 per company checked; an ambiguous name returns candidates free
PlanOfficialRecordsQueryTool A question in plain words -> the exact Bosco Labs calls, their input and maximum price. Free, no key
BoscoTool(name=..., slug=..., description=...) Any Bosco Labs tool by slug; input is one JSON object. The tool's price
BoscoToolkit().get_tools() The planner plus one BoscoTool per tool in /v1/tools?compact=true. Per tool
run_bosco_tool(name, input) Plain function, for code outside an agent. The tool's price
from langchain_bosco import BoscoToolkit

tools = BoscoToolkit().get_tools()  # one HTTP call to the free catalogue

Auth

Paid tools need a Bosco Labs API key (prepaid credits): get one at https://boscolabs.dev/api.html and set BOSCO_API_KEY, or pass api_key=... to a tool or the toolkit. Every tool and the toolkit also take base_url. The planner needs no key.

API errors (bad input, no credits, a source down) come back to the model as text (handle_tool_error=True); run_bosco_tool raises ToolException. Nothing is charged on an error.

Docs: https://boscolabs.dev/llms.txt - OpenAPI: https://api.boscolabs.dev/openapi.json - support: support@boscolabs.dev

The counterparty check is a screening aid, not a compliance, credit or legal determination: review every fail and review before acting.

Development

uv run --isolated --with-editable . --with pytest pytest -q

Metadata

Release files for langchain-bosco 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-bosco 0.1.0
File Size Uploaded Provenance Actions
langchain_bosco-0.1.0.tar.gz 6.3 kB With provenance Details for langchain_bosco-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 12.4 kB

Release files / langchain_bosco-0.1.0.tar.gz

Download URL langchain_bosco-0.1.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1b7ffbd372ef7beb3f86d9ddba51b446138040e283c6515690471ecd1e9847ba
BLAKE2b-256 checksum
How to use checksums
4fddb31f42a0263561f0b5206c776cccd120e27269302c8117139bdca9aa6e86
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 8, 2026.

Transparency log

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

Download URL langchain_bosco-0.1.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
254192b546f505f326aa2b633e990300a0d54858fec8634a59bc974bb362546d
BLAKE2b-256 checksum
How to use checksums
cfd9ce03cc09d3a0ffb4f3b705318b7ec7a3c83cf439b9fcb4b0e3a59b0036b5
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 8, 2026.

Transparency log

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

Full provenance

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

Select from 2 files

Attestation for langchain_bosco-0.1.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 8, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full 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