langchain-agentline
LangChain integration for AgentLine — give your AI agents real phone numbers to make calls, read SMS, set up webhooks, and provision numbers.
Installation
pip install langchain-agentline
Quick Start
import os
from langchain_agentline import AgentLineToolkit
toolkit = AgentLineToolkit(api_key=os.environ["AGENTLINE_API_KEY"])
tools = toolkit.get_tools()
# Use with any LangChain agent
from langgraph.prebuilt import create_react_agent
from langchain_openai import ChatOpenAI
agent = create_react_agent(ChatOpenAI(), tools)
result = agent.invoke({
"messages": [{"role": "user", "content": "Provision a phone number and call +15551234567"}]
})
Available Tools (12 tools across 5 categories)
| Category | Tool | Description |
|---|---|---|
| Calls | agentline_make_call |
Make outbound voice calls ($0.10/min) |
agentline_get_calls |
List/filter calls by status | |
agentline_get_transcript |
Fetch call transcripts | |
agentline_hangup_call |
Hang up active calls | |
| SMS | agentline_get_messages |
Read inbound SMS messages |
| Numbers | agentline_provision_number |
Buy a phone number ($2 one-time) |
agentline_get_numbers |
List all phone numbers | |
| Webhooks | agentline_set_webhook |
Real-time event webhooks |
agentline_list_webhooks |
List configured webhooks | |
agentline_delete_webhook |
Remove a webhook | |
| Billing | agentline_get_balance |
Check account balance |
| Agents | agentline_list_agents |
List agents and their numbers |
Setup
- Sign up at agentline.cloud
- Create an agent and copy your API key
- Set your API key:
export AGENTLINE_API_KEY=sk_live_...
Requirements
- Python >= 3.10
- An AgentLine account with an active agent
Metadata
Release files for langchain-agentline 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langchain_agentline-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for langchain_agentline-0.2.0-py3-none-any.whl |
Release files / langchain_agentline-0.2.0-py3-none-any.whl
| Download URL | langchain_agentline-0.2.0-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6bdb74c72c43071a0c715944c99ed837d86be2c153d96d0a4fa164402f7aa1a9
|
|
BLAKE2b-256 checksum How to use checksums |
5e4ef8510ac2541d46ddb788125bab2e852a3a8b2ae998e9234cb033dcab1e61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Security for langchain-agentline 0.2.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.