LangChain integration for AgentLine — give AI agents real phone numbers for calls and SMS.
Project description
langchain-agentline
LangChain integration for AgentLine — give your AI agents real phone numbers to make calls and read SMS messages.
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": "Call +15551234567 and tell them the meeting is at 3pm"}]
})
Available Tools
| Tool | Description |
|---|---|
agentline_make_call |
Make an outbound phone call from an AgentLine agent |
agentline_get_calls |
List recent calls and get transcripts |
agentline_get_messages |
Read inbound SMS messages |
agentline_list_agents |
List your configured agents and their phone numbers |
Setup
- Sign up at agentline.cloud
- Create an agent and provision a phone number
- Set your API key:
export AGENTLINE_API_KEY=sk_live_...
Requirements
- Python >= 3.10
- An AgentLine account with an active agent
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file langchain_agentline-0.1.0-py3-none-any.whl.
File metadata
- Download URL: langchain_agentline-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33a1e674c4ed4f420bdf27522f88a7d2fd67eaa9d201a44fe3ddf9ff5beae750
|
|
| MD5 |
42f1d83f97dce6c7f94661f9ebf50faa
|
|
| BLAKE2b-256 |
33c3b8b013b0b36ec9d179965cb47e58e1d494aa7918ee5ebc048e7962a054de
|