Skip to main content

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


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)

Uploaded Source

Built Distribution

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

langchain_orizn-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

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

Hashes for langchain_orizn-0.1.0.tar.gz
Algorithm Hash digest
SHA256 292ff534ea5959f32dc681b13d4b3caaec7e5c33d740f5e8da587531c2b6fff0
MD5 ffae52367c9c4fc75065cd446662fe95
BLAKE2b-256 ba804872e0d9d2708ea1ff66f8b74b3b7a2ece6917635213e62533efd5bffd05

See more details on using hashes here.

File details

Details for the file langchain_orizn-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_orizn-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3737724fbde06f926690030cc647be81b96371dc59e412bc858b4220b1e910db
MD5 0a0a8066bfbd60b988d9bf62fce99060
BLAKE2b-256 d4f501e2aa4dc0bc1dd825129507a3e5fb28d4167a0bd1b6e93a7ab49866fdee

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