Skip to main content

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

MIT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain_opedd-0.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_opedd-0.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

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

Hashes for langchain_opedd-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c4131401392b3681a7e8d3106d61b3d1cc63f52ffc5012e8cb46ab91baa28ac9
MD5 3f01c2b0aa52c3381f095b8e2b84e9c3
BLAKE2b-256 6e363f083a2a6782017be0a97ec8aa2b51fec1881d686b4579b6e1fa73ee09f2

See more details on using hashes here.

File details

Details for the file langchain_opedd-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_opedd-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e36901bcb0160926f22cc15586bbf9112f913319b69830519268a99f2e24e255
MD5 0775a6e645aaf8401aa43016d7335272
BLAKE2b-256 833bfc9ac0ad5fe75cfaa9c5373d071eac75f5f166bd5bb308a0b0ea15e12e6f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page