Skip to main content

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


Download files

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

Source Distribution

khaleejiapi_langchain-1.1.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

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

khaleejiapi_langchain-1.1.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

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

Hashes for khaleejiapi_langchain-1.1.0.tar.gz
Algorithm Hash digest
SHA256 279f7650159154bc67b55a780f6bf6dadfe4f537eee651ab6a805b5dfc481383
MD5 92eda9bc8e7eea883a23add97fae3316
BLAKE2b-256 8eac16b99c836ee98ed210e6576d0bda5fbed07ab12357e534caeff3f9414dff

See more details on using hashes here.

File details

Details for the file khaleejiapi_langchain-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for khaleejiapi_langchain-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c6782f1b17087a3366779e1874f8b027fa42732fd0196ae0216ad0b543e78138
MD5 1052178f1888790af17efcf933724be8
BLAKE2b-256 4926093775b3f49d49f0e5830f804721550c3806639225f6fce7d401bca1ec98

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