Metadata-Version: 2.5
Name: langchain-tensorust
Version: 0.1.0
Summary: LangChain tools for the Tensorust Ontology: who owns or controls US companies and homes, private credit loan marks, contractor credit, OFAC and banned-vendor screens, from public records.
Project-URL: Homepage, https://github.com/Mattbusel/langchain-tensorust
Project-URL: Documentation, https://github.com/Mattbusel/langchain-tensorust/blob/main/docs/index.md
Project-URL: Changelog, https://github.com/Mattbusel/langchain-tensorust/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/Mattbusel/langchain-tensorust/issues
Author: Matthew Busel
License-Expression: MIT
License-File: LICENSE
Keywords: agents,kyb,langchain,mcp,ofac,ownership,private-credit,sanctions,tools
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Financial and Insurance Industry
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: httpx<1,>=0.27
Requires-Dist: langchain-core<2,>=1.0
Requires-Dist: pydantic<3,>=2.7
Provides-Extra: mcp
Requires-Dist: langchain-mcp-adapters>=0.1; extra == 'mcp'
Description-Content-Type: text/markdown

# langchain-tensorust

LangChain tools for the [Tensorust Ontology](https://tensorust.com): ownership, private
credit and compliance lookups built from US public records (SEC subsidiary lists and BDC
schedules of investments, state business registries, county property rolls, FCC, federal
awards, OFAC, the CMS Federal IDR file).

```bash
pip install -U langchain-tensorust
```

```python
from langchain.agents import create_agent
from langchain_tensorust import TensorustToolkit

agent = create_agent("anthropic:claude-sonnet-4-6", tools=TensorustToolkit().get_tools())
agent.invoke({"messages": [("user", "Who controls Invitation Homes, and what do lenders mark Pluralsight's loan at?")]})
```

| Tool | Answers |
|---|---|
| `TensorustLookupOrganization` | Who owns or controls a company: parent, control group, subsidiaries, homes, FCC licenses, awards, rules that apply |
| `TensorustWhoOwnsHome` | Owner of record of a US single-family home and its parent control group |
| `TensorustLenderMarks` | What each BDC lender marks a private company's first-lien loan at, and the spread |
| `TensorustContractorCredit` | Credit health of a federal contractor: obligations, lender marks, headcount trend |
| `TensorustSanctionsScreen` | OFAC plus DoD 1260H, Section 889, FCC Covered List, UFLPA and BIOSECURE screen |
| `TensorustIDROffer` | No Surprises Act arbitration outcomes for a CPT code, payer and state |
| `TensorustDatasetSearch` | Search 145 entity-level datasets built from public records |

No key is needed: every tool answers with a free preview. Set `TENSORUST_API_KEY` to a
`tdk_...` key for full records. `await TensorustToolkit().aget_mcp_tools()` (with the `mcp`
extra) loads every tool on the Tensorust MCP server, about 40.

Docs: https://github.com/Mattbusel/langchain-tensorust/blob/main/docs/index.md
