Skip to main content

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

  1. Sign up at agentline.cloud
  2. Create an agent and provision a phone number
  3. Set your API key: export AGENTLINE_API_KEY=sk_live_...

Requirements

  • Python >= 3.10
  • An AgentLine account with an active agent

Project details


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

If you're not sure about the file name format, learn more about wheel file names.

langchain_agentline-0.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file langchain_agentline-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_agentline-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 33a1e674c4ed4f420bdf27522f88a7d2fd67eaa9d201a44fe3ddf9ff5beae750
MD5 42f1d83f97dce6c7f94661f9ebf50faa
BLAKE2b-256 33c3b8b013b0b36ec9d179965cb47e58e1d494aa7918ee5ebc048e7962a054de

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page