LangChain tool definitions for KhaleejiAPI — 24 tools for Middle East developers
Project description
KhaleejiAPI LangChain Tools
AI agent tool definitions for integrating KhaleejiAPI with LangChain, CrewAI, and other agent frameworks.
Installation
pip install khaleejiapi langchain-core
Quick Start
from langchain_core.tools import StructuredTool
from khaleejiapi_langchain import get_all_tools
# Get all KhaleejiAPI tools for your agent
tools = get_all_tools(api_key="your_api_key")
# Use with LangChain agent
from langchain.agents import create_tool_calling_agent
agent = create_tool_calling_agent(llm, tools, prompt)
Available Tools
| Tool | Description |
|---|---|
khaleeji_email_validate |
Validate email addresses with syntax, domain, MX checks |
khaleeji_phone_validate |
Validate international phone numbers |
khaleeji_ip_lookup |
Get geolocation data from IP addresses |
khaleeji_exchange_rates |
Get real-time currency exchange rates |
khaleeji_weather |
Get weather data for MENA cities |
khaleeji_translate |
AI-powered translation (22+ languages) |
khaleeji_prayer_times |
Get prayer times for any city |
khaleeji_hijri_convert |
Convert between Gregorian and Hijri calendars |
khaleeji_zakat_calculate |
Calculate zakat obligations |
khaleeji_vat_calculate |
Calculate UAE/GCC VAT |
khaleeji_holidays |
Get public holidays for GCC countries |
khaleeji_fraud_check |
Detect suspicious IPs, emails, phones |
Usage with CrewAI
from crewai import Agent
from khaleejiapi_langchain import get_all_tools
tools = get_all_tools(api_key="your_api_key")
researcher = Agent(
role="Middle East Market Researcher",
goal="Analyze business conditions in the GCC region",
tools=tools,
)
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 khaleejiapi_langchain-1.1.0.tar.gz.
File metadata
- Download URL: khaleejiapi_langchain-1.1.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
279f7650159154bc67b55a780f6bf6dadfe4f537eee651ab6a805b5dfc481383
|
|
| MD5 |
92eda9bc8e7eea883a23add97fae3316
|
|
| BLAKE2b-256 |
8eac16b99c836ee98ed210e6576d0bda5fbed07ab12357e534caeff3f9414dff
|
File details
Details for the file khaleejiapi_langchain-1.1.0-py3-none-any.whl.
File metadata
- Download URL: khaleejiapi_langchain-1.1.0-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6782f1b17087a3366779e1874f8b027fa42732fd0196ae0216ad0b543e78138
|
|
| MD5 |
1052178f1888790af17efcf933724be8
|
|
| BLAKE2b-256 |
4926093775b3f49d49f0e5830f804721550c3806639225f6fce7d401bca1ec98
|