Catalog PyPI
PACKAGE EXPLORERView in registry

agentmail-toolkit

PyPI

AgentMail Toolkit

Versions collected1
Direct dependencies12From release 0.3.2
Last observed20 Oct, 22:39 UTC

README

Version 0.3.2 documentation

AgentMail Toolkit

The AgentMail Toolkit integrates popular agent frameworks including OpenAI Agents SDK, LangChain, and LiveKit Agents with the AgentMail API.

Setup

Get your API key from AgentMail

Installation

pip install agentmail-toolkit

Configuration

export AGENTMAIL_API_KEY=your-api-key

Usage

from agentmail_toolkit.openai import AgentMailToolkit
from agents import Agent

agent = Agent(
    name="Email Agent",
    instructions="You are an agent created by AgentMail that can send, receive, and manage emails.",
    tools=AgentMailToolkit().get_tools(),
)

Errors

A failed tool call (an AgentMail API error, or any other exception) is surfaced as a real failure, not a disguised success — each adapter raises the way its framework expects: RuntimeError (OpenAI Agents SDK), ToolException (LangChain, which becomes an error ToolMessage), or ToolError (LiveKit Agents).

Attachment downloads

get_attachment's text extraction (PDF/DOCX) only follows https:// download URLs, applies a 15-second fetch timeout, and caps the downloaded body at 25MB — attachments outside these bounds, or that fail to parse, are returned without extracted text instead of raising.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.3.213 Oct 202612

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:39 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:f3c4c7a9c8e5babf1b69e51a3d397278a0c9576dbfd02cefe8dab478ed18c8fd