LangChain integration for Agent Toolbox API — 13 tools for AI agents: search, extract, screenshot, weather, finance, news, translate, geoip, whois, dns, pdf-extract, and qr code generation
Project description
🦜🔗 LangChain × Agent Toolbox
13 production-ready tools for LangChain agents — one API key, zero complexity.
Install
pip install langchain-agent-toolbox
Quick Start
from langchain_agent_toolbox import AgentToolbox
# Get all 13 tools with one line
tools = AgentToolbox(api_key="atb_xxx").get_tools()
# Use with any LangChain agent
from langchain.agents import initialize_agent, AgentType
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(model="gpt-4")
agent = initialize_agent(tools, llm, agent=AgentType.OPENAI_FUNCTIONS)
agent.run("Search for the latest AI news and summarize the top 3 articles")
Use Individual Tools
from langchain_agent_toolbox import (
AgentToolboxSearchTool,
AgentToolboxNewsTool,
AgentToolboxWhoisTool,
)
search = AgentToolboxSearchTool(api_key="atb_xxx")
result = search.invoke({"query": "AI agents 2025", "count": 3})
All 13 Tools
| Tool Class | Endpoint | Description |
|---|---|---|
AgentToolboxSearchTool |
/v1/search |
Web search (DuckDuckGo) |
AgentToolboxExtractTool |
/v1/extract |
Extract web page content |
AgentToolboxScreenshotTool |
/v1/screenshot |
Capture screenshots |
AgentToolboxWeatherTool |
/v1/weather |
Weather & forecast |
AgentToolboxFinanceTool |
/v1/finance |
Stock quotes & FX rates |
AgentToolboxEmailValidatorTool |
/v1/validate-email |
Email validation |
AgentToolboxTranslateTool |
/v1/translate |
100+ language translation |
AgentToolboxGeoIPTool |
/v1/geoip |
IP geolocation |
AgentToolboxNewsTool |
/v1/news |
News article search |
AgentToolboxWhoisTool |
/v1/whois |
Domain WHOIS lookup |
AgentToolboxDnsTool |
/v1/dns |
DNS record queries |
AgentToolboxPdfExtractTool |
/v1/pdf-extract |
PDF text extraction |
AgentToolboxQrTool |
/v1/qr |
QR code generation |
Configuration
# Via constructor
tools = AgentToolbox(api_key="atb_xxx", base_url="https://api.toolboxlite.com").get_tools()
# Or via environment variable
import os
os.environ["AGENT_TOOLBOX_API_KEY"] = "atb_xxx"
tools = AgentToolbox().get_tools()
Get a Free API Key
curl -X POST https://api.toolboxlite.com/v1/auth/register \
-H "Content-Type: application/json" \
-d '{"email": "you@example.com"}'
Free tier: 1,000 calls/month, all 13 endpoints.
Links
License
MIT
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_agent_toolbox-0.2.1.tar.gz.
File metadata
- Download URL: langchain_agent_toolbox-0.2.1.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6b95e92e3aea708f1d2ee1d728a6c9539b7518e5f898e8c5407cae958863158
|
|
| MD5 |
25ff861f8643f902a3b730d92a97c888
|
|
| BLAKE2b-256 |
0952ac2393820b76854b56c4ca3a5da055c62dfbb658b94ab468c47b011cc6d4
|
File details
Details for the file langchain_agent_toolbox-0.2.1-py3-none-any.whl.
File metadata
- Download URL: langchain_agent_toolbox-0.2.1-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
165152cf72df235da0ebdd280795982a4cba521f77be87e1772a3bcf4d77a7cc
|
|
| MD5 |
03a9d72f9fed1f68b01742e62386972a
|
|
| BLAKE2b-256 |
53bc28095fb0551f3ac8a0a6d3fd018d4160ee62246f555ab1efb55a002249a5
|