langchain-agent-tools
LangChain-compatible tools for AI agents — weather, crypto, security, memory and more. Works with any LangChain agent out of the box.
All tools use free public APIs — no API keys required.
Installation
pip install langchain-agent-tools
Quick Start
from langchain_agent_tools import get_current_weather, check_pii, store_memory, get_token_price
# Use with any LangChain agent
from langchain.agents import create_tool_calling_agent, AgentExecutor
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(model="gpt-4o-mini")
tools = [get_current_weather, check_pii, store_memory, get_token_price]
agent = create_tool_calling_agent(llm, tools, prompt)
executor = AgentExecutor(agent=agent, tools=tools)
Available Tools
Weather (Open-Meteo, no API key)
get_current_weather(location)— Current temperature, humidity, wind, conditionsget_weather_forecast(location, days)— Forecast for up to 16 days
Crypto (CoinGecko, no API key)
get_token_price(token)— Current price, 24h change, market capget_token_info(token)— Detailed info, ATH/ATL, supply, linksget_trending_tokens()— Currently trending cryptocurrencies
Security
check_pii(text)— Detect emails, phones, credit cards, SSNs, IBANs in textcheck_url_safety(url)— Analyze URL for phishing/malware indicators
Memory (Persistent)
store_memory(key, value)— Save key-value pairs across sessionsretrieve_memory(key)— Look up stored valueslist_memories()— Show all stored memoriesdelete_memory(key)— Remove a stored key
Usage Examples
Standalone (without agent)
from langchain_agent_tools import get_current_weather, check_pii
# Weather
result = get_current_weather.invoke({"location": "Berlin"})
print(result)
# PII Check
result = check_pii.invoke({"text": "Contact me at john@example.com or 555-123-4567"})
print(result)
With LangGraph
from langgraph.prebuilt import create_react_agent
from langchain_agent_tools import get_current_weather, get_token_price, check_pii
tools = [get_current_weather, get_token_price, check_pii]
agent = create_react_agent(llm, tools)
Requirements
- Python >= 3.10
- langchain-core >= 0.2.0
- httpx >= 0.27.0
License
MIT
Metadata
Release files for langchain-agent-tools 0.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 | |
|---|---|---|---|
| langchain_agent_tools-0.1.0.tar.gz | 9.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| langchain_agent_tools-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.7 kB
Release files / langchain_agent_tools-0.1.0.tar.gz
| Download URL | langchain_agent_tools-0.1.0.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9b557edb9699abb7119843d3454dc20db9fdf947b28f9119a9e8e3e22f28c7cf
|
|
BLAKE2b-256 checksum How to use checksums |
d400f69f312463696f0471440a5cba7baad9f57dff09ad0ab645a8e388177b32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|
Release files / langchain_agent_tools-0.1.0-py3-none-any.whl
| Download URL | langchain_agent_tools-0.1.0-py3-none-any.whl |
|---|---|
| Size | 11.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bdead89e7bf2ae57b1f0d58fb28f2757e53f9a86aef238139f563097e79f9c9b
|
|
BLAKE2b-256 checksum How to use checksums |
b2f3b35c083092db0b46a647f33dc75f31e02f85634065cb3fb4ad7a4a275a46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|