LangChain integration for Opedd — licensed, rights-cleared content for AI: load your licensed corpus into RAG pipelines and give agents lookup/verify tools with a verifiable license key per article.
Project description
langchain-opedd
Licensed, rights-cleared content for your LangChain pipelines. Opedd is the licensing rail between expert publishers and AI products — every article comes with a verifiable license key, on-chain proof (Tempo), and EU AI Act Article 53 attestation support. This package is the licensed alternative to scraping for RAG, agents, and AI search.
pip install langchain-opedd
Load your licensed corpus into RAG (the 3-line on-ramp)
from langchain_opedd import OpeddFeedLoader
loader = OpeddFeedLoader(access_key="ent_...") # your Opedd enterprise access key
docs = loader.load() # LangChain Documents, licensing provenance in metadata
Every Document.metadata carries id, title, source, publisher_id, published_at, author, content_hash, and licensed: True — so answers in your pipeline stay attributable to licensed sources. Supports since (delta feeds), max_documents, and lazy_load() for streaming.
# Straight into a vectorstore:
from langchain_openai import OpenAIEmbeddings
from langchain_community.vectorstores import FAISS
vectorstore = FAISS.from_documents(docs, OpenAIEmbeddings())
Agent tools
from langchain_opedd import (
OpeddLookupTool, # licensing status + price for any article URL (no auth)
OpeddDirectoryTool, # browse verified publishers (no auth)
OpeddVerifyLicenseTool, # verify a license key + on-chain proof (no auth)
OpeddContentTool, # retrieve licensed article text (buyer token)
)
tools = [
OpeddLookupTool(),
OpeddDirectoryTool(),
OpeddVerifyLicenseTool(),
OpeddContentTool(buyer_token="opedd_buyer_live_..."),
]
# use with create_react_agent / your agent framework of choice
Where keys come from
- No key needed for discovery/verification tools.
- Buyer token (
opedd_buyer_live_*): self-serve signup at opedd.com — no approval step. - Enterprise access key (
ent_*): issued with an enterprise license (bulk/metered catalog access).
Autonomous purchasing
Deliberately not a LangChain tool (payment confirmation belongs in a richer protocol). Agents that buy licenses mid-task should use the Opedd MCP server — hosted at https://mcp.opedd.com/mcp or local via npx opedd-mcp — which includes purchase_license with Stripe support.
Related
- Opedd MCP server — 17 tools for MCP-native agents (Claude, Cursor, OpenAI)
- opedd (Python SDK) — the client this package wraps
- For AI agents — full API documentation
MIT.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file langchain_opedd-0.1.0.tar.gz.
File metadata
- Download URL: langchain_opedd-0.1.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4131401392b3681a7e8d3106d61b3d1cc63f52ffc5012e8cb46ab91baa28ac9
|
|
| MD5 |
3f01c2b0aa52c3381f095b8e2b84e9c3
|
|
| BLAKE2b-256 |
6e363f083a2a6782017be0a97ec8aa2b51fec1881d686b4579b6e1fa73ee09f2
|
File details
Details for the file langchain_opedd-0.1.0-py3-none-any.whl.
File metadata
- Download URL: langchain_opedd-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e36901bcb0160926f22cc15586bbf9112f913319b69830519268a99f2e24e255
|
|
| MD5 |
0775a6e645aaf8401aa43016d7335272
|
|
| BLAKE2b-256 |
833bfc9ac0ad5fe75cfaa9c5373d071eac75f5f166bd5bb308a0b0ea15e12e6f
|