LangChain tools for VEROQ Intelligence API
Project description
langchain-veroq
LangChain tools for the VEROQ Intelligence API -- verified intelligence with confidence scores, bias ratings, and source analysis.
Installation
pip install langchain-veroq
Quick Start
from langchain_veroq import VeroqAskTool, VeroqVerifyTool
tools = [VeroqAskTool(), VeroqVerifyTool()]
# Use with any LangChain agent
Two tools cover 90% of use cases:
VeroqAskTool-- ask any financial question in natural languageVeroqVerifyTool-- fact-check any claim against verified intelligence
Full Agent Example
from langchain_openai import ChatOpenAI
from langchain.agents import AgentExecutor, create_openai_tools_agent
from langchain_core.prompts import ChatPromptTemplate
from langchain_veroq import VeroqAskTool, VeroqVerifyTool, VeroqSearchTool
tools = [
VeroqAskTool(api_key="your-api-key"),
VeroqVerifyTool(api_key="your-api-key"),
VeroqSearchTool(api_key="your-api-key"),
]
prompt = ChatPromptTemplate.from_messages([
("system", "You are a financial research assistant with access to verified intelligence."),
("human", "{input}"),
("placeholder", "{agent_scratchpad}"),
])
llm = ChatOpenAI(model="gpt-4o")
agent = create_openai_tools_agent(llm, tools, prompt)
executor = AgentExecutor(agent=agent, tools=tools)
# Ask anything
result = executor.invoke({"input": "How is NVDA doing?"})
print(result["output"])
# Verify a claim
result = executor.invoke({"input": "Is it true that NVIDIA beat Q4 earnings?"})
print(result["output"])
Environment Variables
The tools accept api_key in the constructor. If omitted, the SDK checks these environment variables in order:
VEROQ_API_KEYPOLARIS_API_KEY
RAG with VeroqRetriever
from langchain_openai import ChatOpenAI
from langchain_core.prompts import ChatPromptTemplate
from langchain_core.runnables import RunnablePassthrough
from langchain_core.output_parsers import StrOutputParser
from langchain_veroq import VeroqRetriever
retriever = VeroqRetriever(api_key="your-api-key", category="ai_ml", limit=5)
chain = (
{"context": retriever, "question": RunnablePassthrough()}
| ChatPromptTemplate.from_template(
"Answer based on these verified briefs:\n\n{context}\n\nQuestion: {question}"
)
| ChatOpenAI(model="gpt-4o")
| StrOutputParser()
)
print(chain.invoke("Latest developments in AI?"))
Available Tools
| Tool | Description |
|---|---|
VeroqAskTool |
Ask any financial question in natural language |
VeroqVerifyTool |
Fact-check a claim against verified intelligence |
VeroqSearchTool |
Search verified intelligence across 18 verticals |
VeroqFullTool |
Cross-reference data from 9 sources |
VeroqFeedTool |
Get latest briefs, filtered by category or source |
VeroqBriefTool |
Get a specific brief by ID with full analysis |
VeroqEntityTool |
Look up entities mentioned in coverage |
VeroqExtractTool |
Extract clean article content from URLs |
VeroqCompareTool |
Compare outlet coverage of the same story |
VeroqForecastTool |
AI-generated forecast for a topic |
VeroqResearchTool |
Deep research report on a query |
VeroqTrendingTool |
Trending topics across categories |
VeroqContradictionsTool |
Find contradictions across sources |
VeroqEventsTool |
Key events timeline for a topic |
VeroqWebSearchTool |
Search the open web |
VeroqCrawlTool |
Crawl and extract from a URL |
VeroqTickerTool |
Market data for a stock/crypto ticker |
VeroqTickerResolveTool |
Resolve company name to ticker symbol |
VeroqTickerScoreTool |
Sentiment score for a ticker |
VeroqSectorsTool |
Sector-level market analysis |
VeroqPortfolioFeedTool |
News feed filtered to a portfolio |
VeroqEventsCalendarTool |
Upcoming market-moving events |
VeroqCandlesTool |
OHLCV candle data |
VeroqTechnicalsTool |
Technical indicators for a ticker |
VeroqMarketMoversTool |
Top market movers |
VeroqEconomyTool |
Economic indicators (GDP, CPI, etc.) |
VeroqCryptoTool |
Crypto market data |
VeroqDefiTool |
DeFi protocol data |
VeroqInsiderTool |
Insider trading data |
VeroqFilingsTool |
SEC filings |
VeroqAnalystsTool |
Analyst ratings and price targets |
VeroqCongressTool |
Congressional trading data |
VeroqInstitutionsTool |
Institutional holdings |
VeroqRunAgentTool |
Run a marketplace agent |
VeroqRetriever |
LangChain retriever for RAG pipelines |
Backward Compatibility
This package also exports all tools under their original Polaris* names for backward compatibility. Both VeroqSearchTool and PolarisSearchTool work identically.
Documentation
Full API docs at veroq.ai/docs
Project details
Release history Release notifications | RSS feed
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_veroq-1.1.0.tar.gz.
File metadata
- Download URL: langchain_veroq-1.1.0.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1d0b8ed30dda8b4eba518ce43494df40273fe53d8e2389baf6102ab1740e46d
|
|
| MD5 |
6fefbfab4f91c5644c4d52293d24e8a2
|
|
| BLAKE2b-256 |
76d5a97cc50c43e796de4169797da9c16cac695a187872f76a3fb75aed94c367
|
File details
Details for the file langchain_veroq-1.1.0-py3-none-any.whl.
File metadata
- Download URL: langchain_veroq-1.1.0-py3-none-any.whl
- Upload date:
- Size: 18.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d20cb9ce79bb9675d0ec1ce11d1879c560143e14abcaf4e2a6962e4361c17eee
|
|
| MD5 |
d2a04d5387db1457f3ed265501b87bf1
|
|
| BLAKE2b-256 |
a0bf9f3af452095414518d60d9488f8ac98ee7c8669e8d0b8193f972901462ac
|