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
- Repository: https://github.com/LabelMinsk/langchain-xbaza
- API: https://xbaza.by/api/ai
- Documentation: https://github.com/LabelMinsk/xbaza-ai-api
Metadata
Release files for langchain-xbaza 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| langchain_xbaza-0.1.0.tar.gz | 7.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| langchain_xbaza-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.9 kB
Release files / langchain_xbaza-0.1.0.tar.gz
| Download URL | langchain_xbaza-0.1.0.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
871af88f515957d1e2f13669e9282b038a1ade59d0ea00825eecbbf551bbb811
|
|
BLAKE2b-256 checksum How to use checksums |
23826f9779d93fdde8ed95f4e5b1df72058a88a54ea64d382a63e3ea72b2b4a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / langchain_xbaza-0.1.0-py3-none-any.whl
| Download URL | langchain_xbaza-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ce22beb825fc2b84fdf0bd02cefa84e62a3781dcc762bf85e8c6feb9a7683b5
|
|
BLAKE2b-256 checksum How to use checksums |
22bd7833eb99f224e8edc11cd5ecb7eb6da9bde6f5f81c25be04582a8d2cc765
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|