langchain-agentphone
LangChain integration for AgentPhone — telephony tools that let LLM agents send SMS messages, make phone calls, and manage phone numbers.
Installation
pip install langchain-agentphone
Setup
Get your API key from agentphone.to and set it as an environment variable:
export AGENTPHONE_API_KEY="your-api-key"
Quick Start
Use all tools
from langchain_agentphone import AgentPhoneToolkit
toolkit = AgentPhoneToolkit()
tools = toolkit.get_tools()
Use specific tools
from langchain_agentphone import AgentPhoneToolkit
toolkit = AgentPhoneToolkit(selected_tools=["send_sms", "list_numbers"])
tools = toolkit.get_tools()
Use individual tools
from langchain_agentphone import AgentPhoneSendSMS
tool = AgentPhoneSendSMS()
result = tool.invoke({
"number_id": "num_abc123",
"to_number": "+14155551234",
"body": "Hello from LangChain!"
})
With a LangChain agent
from langchain_agentphone import AgentPhoneToolkit
from langchain_anthropic import ChatAnthropic
from langgraph.prebuilt import create_react_agent
llm = ChatAnthropic(model="claude-sonnet-4-20250514")
toolkit = AgentPhoneToolkit()
agent = create_react_agent(llm, toolkit.get_tools())
response = agent.invoke({
"messages": [("user", "Send an SMS from number num_abc123 to +14155551234 saying hello")]
})
Available Tools
| Tool | Name | Description |
|---|---|---|
AgentPhoneSendSMS |
agentphone_send_sms |
Send an SMS message |
AgentPhoneMakeCall |
agentphone_make_call |
Make an AI-powered outbound call |
AgentPhoneGetTranscript |
agentphone_get_transcript |
Get a call transcript |
AgentPhoneListCalls |
agentphone_list_calls |
List phone calls |
AgentPhoneListConversations |
agentphone_list_conversations |
List SMS conversations |
AgentPhoneGetConversation |
agentphone_get_conversation |
Get conversation with messages |
AgentPhoneBuyNumber |
agentphone_buy_number |
Buy a phone number |
AgentPhoneListNumbers |
agentphone_list_numbers |
List phone numbers |
AgentPhoneCreateAgent |
agentphone_create_agent |
Create an AI phone agent |
AgentPhoneListAgents |
agentphone_list_agents |
List AI phone agents |
AgentPhoneCreateContact |
agentphone_create_contact |
Create a contact |
AgentPhoneListContacts |
agentphone_list_contacts |
List contacts |
API Reference
See the AgentPhone documentation for full API details.
Metadata
Release files for langchain-agentphone 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_agentphone-0.1.0.tar.gz | 110.0 kB | Without provenance | Details for langchain_agentphone-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langchain_agentphone-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for langchain_agentphone-0.1.0-py3-none-any.whl |
Total release size: 117.8 kB
Release files / langchain_agentphone-0.1.0.tar.gz
| Download URL | langchain_agentphone-0.1.0.tar.gz |
|---|---|
| Size | 110.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c66888ee92d54c9a15ef31f1db98fe8953fb131b13326c1e63ed84f6407e5e39
|
|
BLAKE2b-256 checksum How to use checksums |
959f4bdf8237d3b3024e4b33b9e3fa645401fbdad4894f8e0579cc40742dd265
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / langchain_agentphone-0.1.0-py3-none-any.whl
| Download URL | langchain_agentphone-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
753ce613966d1c65aab734fe5190fcf14d1618cbd4fc4b701fd3e8e4d15a0cd8
|
|
BLAKE2b-256 checksum How to use checksums |
8f8f914bff74cd4c754a5ec556fc02cd25ccd32a7436c6d9079d8af17cd43e04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for langchain-agentphone 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.