Skip to main content

🦜️🔗 langchain-opticparse

Official LangChain and CrewAI ecosystem integration for OpticParse and PhishVision.

Enables AI agents to:

  1. Visually Scrape Live Webpages (OpticParseTool): Extract clean, structured JSON using multimodal vision without fragile CSS selectors.
  2. Scan Zero-Day Cyber Threats (PhishVisionTool): Inspect unknown domains for crypto wallet-drainers and brand impersonation kits before interacting.

📦 Installation

pip install langchain-opticparse

🚀 Usage with LangChain (1.x+)

langchain-opticparse provides standard BaseTool instances compatible with modern LangChain 1.x agent executors, LangGraph, and Tool Calling LLMs:

Modern Tool Calling Agent (LangChain 1.x)

from langchain_openai import ChatOpenAI
from langchain_core.prompts import ChatPromptTemplate
from langchain_opticparse import OpticParseTool, PhishVisionTool

# 1. Initialize OpticParse and PhishVision tools
tools = [
    OpticParseTool(),
    PhishVisionTool()
]

# 2. Bind tools to any modern Tool-Calling model
llm = ChatOpenAI(model="gpt-4o", temperature=0)
llm_with_tools = llm.bind_tools(tools)

# 3. Direct Tool Invocation Example
scraper = OpticParseTool()
clean_data = scraper.invoke({
    "url": "https://news.ycombinator.com",
    "query": "Extract top stories with points and author"
})
print("Extracted Data:", clean_data)

# 4. Threat Inspection Example
scanner = PhishVisionTool()
security_report = scanner.invoke({
    "url": "https://suspicious-dapp-claim.xyz"
})
print("Threat Report:", security_report)

👥 Usage with CrewAI

from crewai import Agent, Task, Crew
from langchain_opticparse import OpticParseTool

vision_scraper = OpticParseTool()

market_researcher = Agent(
    role='Senior Market Intelligence Analyst',
    goal='Extract and synthesize competitor pricing deltas in real-time',
    backstory='An expert automated web researcher powered by OpticParse Vision AI.',
    tools=[vision_scraper],
    verbose=True
)

📄 License

MIT © OpticParse Enterprise

Metadata

Release files for langchain-opticparse 1.0.2

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-opticparse 1.0.2
File Size Uploaded Provenance
langchain_opticparse-1.0.2.tar.gz 5.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for langchain-opticparse 1.0.2
File Interpreter ABI Platform
langchain_opticparse-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 11.5 kB

Release files / langchain_opticparse-1.0.2.tar.gz

Download URL langchain_opticparse-1.0.2.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
538c6a6ec59c67c981630dce182d85d3194b6707ece1191941c8bf87eff5365f
BLAKE2b-256 checksum
How to use checksums
ba5a22cbf30665c6723fdd425e1f12c019e9902173a84d2f1f08f8432e3642f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / langchain_opticparse-1.0.2-py3-none-any.whl

Download URL langchain_opticparse-1.0.2-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5476abcaa0708159877aba1c01637d6148fe90057f13004536087df18b74bc67
BLAKE2b-256 checksum
How to use checksums
a3516be39f39fd3c5bef18c7656747f7dea5c5bd21bb6714dc278199a4ba99bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Security for langchain-opticparse 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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