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
Metadata
Release files for langchain-veroq 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| langchain_veroq-1.1.0.tar.gz | 17.5 kB | Without provenance | Details for langchain_veroq-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langchain_veroq-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for langchain_veroq-1.1.0-py3-none-any.whl |
Total release size: 36.3 kB
Release files / langchain_veroq-1.1.0.tar.gz
| Download URL | langchain_veroq-1.1.0.tar.gz |
|---|---|
| Size | 17.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b1d0b8ed30dda8b4eba518ce43494df40273fe53d8e2389baf6102ab1740e46d
|
|
BLAKE2b-256 checksum How to use checksums |
76d5a97cc50c43e796de4169797da9c16cac695a187872f76a3fb75aed94c367
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / langchain_veroq-1.1.0-py3-none-any.whl
| Download URL | langchain_veroq-1.1.0-py3-none-any.whl |
|---|---|
| Size | 18.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d20cb9ce79bb9675d0ec1ce11d1879c560143e14abcaf4e2a6962e4361c17eee
|
|
BLAKE2b-256 checksum How to use checksums |
a0bf9f3af452095414518d60d9488f8ac98ee7c8669e8d0b8193f972901462ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for langchain-veroq 1.1.0
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.