🦜️🔗 langchain-opticparse
Official LangChain and CrewAI ecosystem integration for OpticParse and PhishVision.
Enables AI agents to:
- Visually Scrape Live Webpages (
OpticParseTool): Extract clean, structured JSON using multimodal vision without fragile CSS selectors. - 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
from langchain.agents import initialize_agent, AgentType
from langchain_openai import ChatOpenAI
from langchain_opticparse import OpticParseTool, PhishVisionTool
# Initialize tools
tools = [
OpticParseTool(),
PhishVisionTool()
]
llm = ChatOpenAI(model="gpt-4o")
# Create autonomous agent with vision scraping and threat intelligence
agent = initialize_agent(
tools,
llm,
agent=AgentType.STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION,
verbose=True
)
# Example 1: Extract live product pricing
response = agent.run("Scrape the latest pricing and specs from https://news.ycombinator.com")
print(response)
# Example 2: Inspect a suspicious crypto airdrop URL before clicking
security_check = agent.run("Verify if this link is a crypto drainer: https://suspicious-airdrop.xyz")
print(security_check)
👥 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
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_opticparse-1.0.0.tar.gz.
File metadata
- Download URL: langchain_opticparse-1.0.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79b96e8f3780e300476a2ebfb26fc7f8b6055a6e3dbfaa966011d1600e1f1770
|
|
| MD5 |
f5bb2cee56691e20059aca6073dbc46b
|
|
| BLAKE2b-256 |
28ffdacada024d52491ced19db9767b7c919dd9474e69bbdb7f663c660016a0b
|
File details
Details for the file langchain_opticparse-1.0.0-py3-none-any.whl.
File metadata
- Download URL: langchain_opticparse-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b99f478ccea3e699bad86ef4196a84c69a3fa7db11c35ba2dfb59838a674a09f
|
|
| MD5 |
0e3822993458548e7b5039068a9484be
|
|
| BLAKE2b-256 |
02cbe62fc7570487ff1211dd9bb93cc5c18485bf1260ebc6971ad634f5d5a428
|