Metadata-Version: 2.5
Name: langchain-ictpbx
Version: 0.1.0
Summary: LangChain tools for ICTPBX — query extensions, DIDs, SIP trunks, tenants and PBX stats over the ICTCore REST API
Project-URL: Homepage, https://ictpbx.com
Project-URL: Repository, https://github.com/ictinnovations/langchain-ictpbx
Project-URL: ICT Innovations, https://www.ictinnovations.com/
Author-email: ICT Innovations <tahir@ictinnovations.com>
License-Expression: MIT
License-File: LICENSE
Keywords: ictcore,ictpbx,langchain,pbx,sip,telephony,voip
Requires-Python: <4.0,>=3.9
Requires-Dist: langchain-core>=0.3.0
Requires-Dist: requests>=2.31.0
Description-Content-Type: text/markdown

# langchain-ictpbx

LangChain tools for querying an [ICTPBX](https://ictpbx.com) server — the multi-tenant,
white-label IP-PBX built on the ICTCore framework. Let an agent read your PBX state:
extensions, DID numbers, SIP trunks, tenants and live PBX statistics.

## Install

```bash
pip install langchain-ictpbx
```

## Tools

`list_extensions`, `list_dids`, `list_providers`, `get_pbx_statistics`, `list_tenants` — bundled by `ICTPBXToolkit`.

## Usage

```python
from langchain_ictpbx import ICTPBXToolkit

toolkit = ICTPBXToolkit.from_credentials(
    base_url="https://your-ictpbx/api", username="admin@example.com", password="...",
)
tools = toolkit.get_tools()
# pass `tools` to any LangChain agent
```

The tools are a client for an ICTPBX / ICTCore server, so they need a reachable install and an
API account (login is by email). They read PBX state; they do not place calls.

---

Built and maintained by [ICT Innovations](https://www.ictinnovations.com/) — the team behind ICTPBX, [ICTFax](https://ictfax.org), ICTDialer and ICTContact.
