LangChain tools for Orizn Visa API — 39,585 passport-destination pairs in 15 languages
Project description
langchain-orizn
LangChain tools for the Orizn Visa API — check visa requirements for 39,585 passport-destination pairs in 15 languages.
Install
pip install langchain-orizn
Quick start
from langchain_orizn import OriznQuickVisaCheckTool, OriznVisaCheckTool
# No API key needed for quick checks
quick = OriznQuickVisaCheckTool()
print(quick.invoke({"passport": "FRA", "destination": "JPN"}))
# Full details (needs API key)
import os
os.environ["ORIZN_API_KEY"] = "your-key"
full = OriznVisaCheckTool()
print(full.invoke({"passport": "FRA", "destination": "JPN", "lang": "fr"}))
Use with a LangChain agent
from langchain_openai import ChatOpenAI
from langgraph.prebuilt import create_react_agent
tools = [OriznQuickVisaCheckTool(), OriznVisaCheckTool(api_key="your-key")]
agent = create_react_agent(ChatOpenAI(model="gpt-4o"), tools)
result = agent.invoke({"messages": [("user", "Do I need a visa to go from Brazil to Japan?")]})
Available tools
| Tool | Description | API Key |
|---|---|---|
OriznVisaCheckTool |
Full visa details with documents, process & tips | Required |
OriznQuickVisaCheckTool |
Quick yes/no visa check | Not needed |
Supported languages
en, fr, es, pt, de, ja, ko, zh, ru, it, ar, hi, th, vi, tl
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
langchain_orizn-0.1.0.tar.gz
(3.2 kB
view details)
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_orizn-0.1.0.tar.gz.
File metadata
- Download URL: langchain_orizn-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
292ff534ea5959f32dc681b13d4b3caaec7e5c33d740f5e8da587531c2b6fff0
|
|
| MD5 |
ffae52367c9c4fc75065cd446662fe95
|
|
| BLAKE2b-256 |
ba804872e0d9d2708ea1ff66f8b74b3b7a2ece6917635213e62533efd5bffd05
|
File details
Details for the file langchain_orizn-0.1.0-py3-none-any.whl.
File metadata
- Download URL: langchain_orizn-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3737724fbde06f926690030cc647be81b96371dc59e412bc858b4220b1e910db
|
|
| MD5 |
0a0a8066bfbd60b988d9bf62fce99060
|
|
| BLAKE2b-256 |
d4f501e2aa4dc0bc1dd825129507a3e5fb28d4167a0bd1b6e93a7ab49866fdee
|