Skip to main content

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 order. What the loader does depends on the licence:

    • AI training and Full catalogue orders: the feed carries the full text; nothing else is needed.
    • Monthly AI answers and client display: the feed lists articles without their text, and the loader fetches each article's text from the content API. Pass buyer_email (the email on the order) so the loader can exchange your access key for a bearer token, or pass buyer_token if you already have one.
    • Pay per request (metered): the same, but every fetch is billed and returns a snippet (up to 300 words or 25% of the article).

    Pass allow_discovery_only=True to load metadata-only Documents and fetch nothing. Articles the content API will not serve (revoked, withdrawn by the publisher) are skipped.

loader = OpeddFeedLoader(access_key="ent_...", buyer_email="you@company.com")

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.

MIT.

Release files for langchain-opedd 0.1.3

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-opedd 0.1.3
File Size Uploaded
langchain_opedd-0.1.3.tar.gz 10.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for langchain-opedd 0.1.3
File Interpreter ABI Platform
langchain_opedd-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 19.9 kB

Release files / langchain_opedd-0.1.3.tar.gz

Download URL langchain_opedd-0.1.3.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
74b99df57a0519655b68d59b49f7adb34dfd4404755e81e345991a4126801c21
BLAKE2b-256 checksum
How to use checksums
db95fceafb3145e2574434a8710d487077cbc72951860ea2488d7656582fb7c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Release files / langchain_opedd-0.1.3-py3-none-any.whl

Download URL langchain_opedd-0.1.3-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d97d352ae21749d29c98bf55368aacb3f56d9c4f6cd4a671ef79e592fa26c7d
BLAKE2b-256 checksum
How to use checksums
14c1f22e8118ece7dca572b8b9abd9c7518c39d913b9a37ce1c8bbe904cd90ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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