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. Flat-fee scopes (custom/platform_wide) get the full-text bulk feed; metered (filtered-scope) keys get a discovery-only feedcontent_body is empty and article text is fetched per call via the content API (billed per retrieval). The loader raises on metered keys unless you pass allow_discovery_only=True (metadata-only Documents).

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.2.tar.gz (7.6 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.2-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file langchain_opedd-0.1.2.tar.gz.

File metadata

  • Download URL: langchain_opedd-0.1.2.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for langchain_opedd-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4cdaf597c8a3c656b355c831f982fb9dff6388daf18ce7d30136efcdf7720d5e
MD5 ab4e9807ce41e86bc50e9a8250f77c75
BLAKE2b-256 a38deb437c38367af9d12575db97239b94eb87423b4844f460d6668617af7786

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_opedd-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e86bfcbe2e9005607858c5fc048cbca95245b5d6e6a7ec6964995123eaa3a713
MD5 0d81695f8d2b4aa6d36aabc64f8a634a
BLAKE2b-256 e91941563439068bdbd23658bdca5506de6a330a7e40e214b09ddd5e7a3a606b

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