Skip to main content

LangChain integration for Xbaza Belarus Job Market API

Project description

langchain-xbaza

LangChain integration for Xbaza Belarus Job Market API - a comprehensive data source for the Belarusian job market, companies, business opportunities, and commercial real estate.

Installation

pip install langchain-xbaza

Quick Start

from langchain.agents import initialize_agent, AgentType
from langchain.llms import OpenAI
from langchain_xbaza import XbazaJobsTool, XbazaUsersTool

# Initialize tools
tools = [
    XbazaJobsTool(),
    XbazaUsersTool(),
]

# Create agent
llm = OpenAI(temperature=0)
agent = initialize_agent(
    tools,
    llm,
    agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION,
    verbose=True
)

# Use agent
result = agent.run("Find me IT jobs in Minsk with salary above 2000 BYN")
print(result)

Available Tools

XbazaJobsTool

Search for job listings in Belarus.

from langchain_xbaza import XbazaJobsTool

tool = XbazaJobsTool()
result = tool.run(category="IT", city="Minsk", limit=10)

XbazaUsersTool

Search for professionals and specialists.

from langchain_xbaza import XbazaUsersTool

tool = XbazaUsersTool()
result = tool.run(query="React developer", limit=10)

XbazaBusinessTool

Search for business for sale listings.

from langchain_xbaza import XbazaBusinessTool

tool = XbazaBusinessTool()
result = tool.run(city="Minsk", min_price=10000, max_price=100000)

XbazaPropertyTool

Search for commercial real estate.

from langchain_xbaza import XbazaPropertyTool

tool = XbazaPropertyTool()
result = tool.run(property_type="OFFICE", deal_type="RENT", city="Minsk")

XbazaServicesTool

Search for business services.

from langchain_xbaza import XbazaServicesTool

tool = XbazaServicesTool()
result = tool.run(category="IT", city="Minsk")

XbazaAnalyticsTool

Get market analytics and trends.

from langchain_xbaza import XbazaAnalyticsTool

tool = XbazaAnalyticsTool()
result = tool.run(analytics_type="overview", days=30)

Configuration

All tools support custom configuration:

from langchain_xbaza import XbazaJobsTool

tool = XbazaJobsTool(
    base_url="https://xbaza.by/api/ai",
    user_agent="MyCustomAgent"
)

Features

  • Easy Integration: Simple LangChain tools for Xbaza API
  • Comprehensive Coverage: Jobs, users, business, property, services, analytics
  • Type Safe: Built with Pydantic for validation
  • Error Handling: Graceful error handling and user-friendly messages
  • Rate Limiting: Respects API rate limits

API Documentation

For full API documentation, see:

Requirements

  • Python >= 3.8
  • langchain >= 0.1.0
  • langchain-core >= 0.1.0
  • requests >= 2.31.0

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Links

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_xbaza-0.1.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

langchain_xbaza-0.1.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file langchain_xbaza-0.1.0.tar.gz.

File metadata

  • Download URL: langchain_xbaza-0.1.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for langchain_xbaza-0.1.0.tar.gz
Algorithm Hash digest
SHA256 871af88f515957d1e2f13669e9282b038a1ade59d0ea00825eecbbf551bbb811
MD5 c089f84406962cba7de35b1c94bdfa20
BLAKE2b-256 23826f9779d93fdde8ed95f4e5b1df72058a88a54ea64d382a63e3ea72b2b4a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_xbaza-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ce22beb825fc2b84fdf0bd02cefa84e62a3781dcc762bf85e8c6feb9a7683b5
MD5 729856ca65fd959d51c353d6c6de3421
BLAKE2b-256 22bd7833eb99f224e8edc11cd5ecb7eb6da9bde6f5f81c25be04582a8d2cc765

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