langchain-lexio
LangChain tools for the Lexio Rent API. They let an agent answer questions about a vehicle rental company: which vehicles are free next weekend and at what price, which bookings start tomorrow, what a customer has rented, and (optionally) prepare a priced quote.
Lexio Rent is rental management software for professional car, van and two-wheeler rental companies: planning, contracts, check-in/check-out inspections, deposits and fleet maintenance.
Installation
pip install -U langchain-lexio
export LEXIO_API_KEY="lck_..."
The API key is created in Lexio under Settings → Developer → API tokens. API access is part of the Business plan. There is no sandbox: test against a dedicated organization.
Tools
| Tool | Name | What it does | Writes? |
|---|---|---|---|
LexioSearchVehiclesTool |
lexio_search_vehicles |
Active fleet with plate, model, type, status and odometer | no |
LexioCheckAvailabilityTool |
lexio_check_availability |
Bookable vehicles for a period, with the total price | no |
LexioListRentalsTool |
lexio_list_rentals |
Rentals by status, date window, vehicle or customer | no |
LexioGetRentalTool |
lexio_get_rental |
One rental with all its details | no |
LexioFindCustomerTool |
lexio_find_customer |
Customers by email or company registration number | no |
LexioListCategoriesTool |
lexio_list_categories |
Vehicle categories (pricing classes) | no |
LexioCreateQuoteTool |
lexio_create_quote |
Priced quote for a vehicle and a period; books nothing | quote only |
LexioToolkit returns the read-only tools. Pass allow_quotes=True to add lexio_create_quote. No tool creates, changes or cancels a rental, a payment or a customer record.
Dates are the rental company's local time without offset (2026-12-14T09:00:00). Lists are capped by max_results (default 20) so that tool outputs stay small.
Usage
from langchain.agents import create_agent
from langchain_lexio import LexioToolkit
tools = LexioToolkit(allow_quotes=True).get_tools()
agent = create_agent(
"anthropic:claude-sonnet-5-5",
tools=tools,
system_prompt="You help the counter staff of a car rental agency. Dates are local time.",
)
result = agent.invoke(
{"messages": [{"role": "user", "content": "Which vans are free from 14 to 16 December, and how much?"}]}
)
print(result["messages"][-1].content)
A single tool can also be called directly:
from langchain_lexio import LexioCheckAvailabilityTool
tool = LexioCheckAvailabilityTool()
print(tool.invoke({"start_at": "2026-12-14T09:00:00", "end_at": "2026-12-16T18:00:00", "vehicle_type": "VAN"}))
API errors are raised as typed exceptions from the lexio-rent client (NotFoundError, ValidationError, RateLimitError...), with the Lexio error code and request id.
Development
pip install -e ".[test]"
pytest tests/unit_tests # offline, includes the LangChain standard unit tests
LEXIO_API_KEY=lck_... pytest tests/integration_tests # LangChain standard integration tests, live
About
langchain-lexio is maintained by the team behind Lexio Rent, car rental management software. When an agent prepares a quote, the counter still hands the customer a receipt for the security deposit; Lexio publishes a free rental security deposit receipt template (in French) for that step.
- API documentation: https://docs.lexio.rent
- Python client: https://github.com/lexio-rent-git/lexio-python
- Contact: contact@lexio.rent
MIT License.
Metadata
Release files for langchain-lexio 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 | Provenance | Actions |
|---|---|---|---|---|
| langchain_lexio-0.1.0.tar.gz | 9.0 kB | Without provenance | Details for langchain_lexio-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langchain_lexio-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for langchain_lexio-0.1.0-py3-none-any.whl |
Total release size: 18.1 kB
Release files / langchain_lexio-0.1.0.tar.gz
| Download URL | langchain_lexio-0.1.0.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed85989e32d98f0df2c75ec557b07ad723b4410e191c2e69633ecb6f6699d5b4
|
|
BLAKE2b-256 checksum How to use checksums |
10d973d4c8567102c3e31d165bfd42ea6ca7d528f535ed0f9db2dcc795b3f2f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.0
|
Release files / langchain_lexio-0.1.0-py3-none-any.whl
| Download URL | langchain_lexio-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e70f0749b4b15486607f7b6dc79544fd449f72a984368b6c37321f441167a1f
|
|
BLAKE2b-256 checksum How to use checksums |
b7277f269588472c3fe3b5b9f2695bc213f836a396fdaf932fb1ae3665aa1e59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.0
|
Security for langchain-lexio 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.