langchain-sendmux
LangChain toolkit for Sendmux, the email API for AI agents. Give a LangChain agent tools to send email and read its own inbox.
Installation
pip install langchain-sendmux
Usage
import os
from langchain.agents import create_agent
from langchain_sendmux import SendmuxToolkit
smx = SendmuxToolkit(api_key=os.environ["SENDMUX_API_KEY"])
agent = create_agent(
model="gpt-4o",
tools=smx.get_tools(),
system_prompt="You triage the support inbox.",
)
agent.invoke({"messages": [{"role": "user", "content": "Reply to Sarah."}]})
Tools
SendmuxToolkit(api_key=...).get_tools() returns three tools:
send_email- send an email to any recipient through Sendmux.list_messages- list recent messages in the agent's mailbox.reply- send a message from the agent's own mailbox.
Configuration
api_key(required) - a send + receive capable mailbox API key (smx_mbx_*) or a scoped agent token.default_from(optional) - default From address forsend_emailwhen a call omitsvar_from.
Licence
MIT. See the licence file.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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_sendmux-0.2.0.tar.gz.
File metadata
- Download URL: langchain_sendmux-0.2.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1c3aed88bdc2f9af2e2ac3cad9063d4638af524c53e56afda0a108f2006674d
|
|
| MD5 |
d0a1234c0494628748629d9ba6cbaa24
|
|
| BLAKE2b-256 |
4b0b20a4f0d0d80514c640535418a0940f7b84732f8d9d0ab5f1c5fda88a6007
|
Provenance
The following attestation bundles were made for langchain_sendmux-0.2.0.tar.gz:
Publisher:
release-please.yml on Sendmux/sendmux-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
langchain_sendmux-0.2.0.tar.gz -
Subject digest:
a1c3aed88bdc2f9af2e2ac3cad9063d4638af524c53e56afda0a108f2006674d - Sigstore transparency entry: 2217128105
- Sigstore integration time:
-
Permalink:
Sendmux/sendmux-sdk@3b4a6007aeecfff48082fd00ea522bfd62444146 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Sendmux
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-please.yml@3b4a6007aeecfff48082fd00ea522bfd62444146 -
Trigger Event:
push
-
Statement type:
File details
Details for the file langchain_sendmux-0.2.0-py3-none-any.whl.
File metadata
- Download URL: langchain_sendmux-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7719ad364ace9fb3c3ded8b80a4bf22fd3fc3bd7299062cdcb907182b933a0f8
|
|
| MD5 |
98d7c27437db7395f90f9a3cc4da8b77
|
|
| BLAKE2b-256 |
a84deea5e37e9633e16c5ec790c23c868617314b962ea0433861a0f48710c52c
|
Provenance
The following attestation bundles were made for langchain_sendmux-0.2.0-py3-none-any.whl:
Publisher:
release-please.yml on Sendmux/sendmux-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
langchain_sendmux-0.2.0-py3-none-any.whl -
Subject digest:
7719ad364ace9fb3c3ded8b80a4bf22fd3fc3bd7299062cdcb907182b933a0f8 - Sigstore transparency entry: 2217128118
- Sigstore integration time:
-
Permalink:
Sendmux/sendmux-sdk@3b4a6007aeecfff48082fd00ea522bfd62444146 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Sendmux
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-please.yml@3b4a6007aeecfff48082fd00ea522bfd62444146 -
Trigger Event:
push
-
Statement type: