Skip to main content

LlamaIndex 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

🦙 LlamaIndex × Agent Toolbox

13 production-ready tools for LlamaIndex agents — one API key, zero complexity.

PyPI License

Install

pip install llamaindex-agent-toolbox

Quick Start

from llamaindex_agent_toolbox import AgentToolbox

# Get all 13 tools with one line
tools = AgentToolbox(api_key="atb_xxx").get_tools()

# Use with LlamaIndex agent
from llama_index.core.agent import ReActAgent
from llama_index.llms.openai import OpenAI

llm = OpenAI(model="gpt-4")
agent = ReActAgent.from_tools(tools, llm=llm)
response = agent.chat("Search for the latest AI news and summarize")

Use Individual Tools

from llamaindex_agent_toolbox import (
    AgentToolboxSearchTool,
    AgentToolboxNewsTool,
    AgentToolboxDnsTool,
)

search = AgentToolboxSearchTool(api_key="atb_xxx")
result = search.call(query="AI agents 2025", count=3)
print(result.content)

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llamaindex_agent_toolbox-0.2.1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llamaindex_agent_toolbox-0.2.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file llamaindex_agent_toolbox-0.2.1.tar.gz.

File metadata

File hashes

Hashes for llamaindex_agent_toolbox-0.2.1.tar.gz
Algorithm Hash digest
SHA256 e584dc7b19689b2b7568d2994f7a8d2e1e410fdf2fa398629bd37729b9a9e910
MD5 7d9ac9e41f7d8e4e29e4f6c320fe478c
BLAKE2b-256 e127890d4addee5953bedf7c62a4c300ce4d30ce579d7041e0d1f53e6ca459c9

See more details on using hashes here.

File details

Details for the file llamaindex_agent_toolbox-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llamaindex_agent_toolbox-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b357a097574f7bf2a205db8e6370c255768800185bd773033d146135bb5eb91a
MD5 c31ad09853bfc81ca7e2d2975a94b83a
BLAKE2b-256 068cd62e26858201ab9cd470fd51b620ded15be5372a62d46af7ca44d9c72cab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page