Metadata-Version: 2.4
Name: langchain-agenticemail
Version: 0.1.0
Summary: LangChain tools for AgenticEmail: give an AI agent its own real email inbox to send, receive, and reply, with optional end-to-end encryption.
Project-URL: Homepage, https://agenticemail.dev
Project-URL: Documentation, https://agenticemail.dev/docs
Project-URL: Repository, https://github.com/AgenticEmail/langchain-agenticemail
Author-email: AgenticEmail <hello@agenticemail.dev>
License: MIT
Keywords: agent-email,agenticemail,ai-agents,email,langchain,mcp,tools
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Requires-Dist: agenticemail>=0.2.0
Requires-Dist: langchain-core>=0.3.0
Description-Content-Type: text/markdown

# langchain-agenticemail

LangChain tools for [AgenticEmail](https://agenticemail.dev), API-first email
infrastructure for AI agents. The `AgenticEmailToolkit` gives a LangChain agent
its own real email inbox: it can create inboxes and send, read, reply to, and
search email, with optional end-to-end encryption.

## Install

```bash
pip install langchain-agenticemail
```

## Setup

Get an API key at https://app.agenticemail.dev and export it:

```bash
export AGENTICEMAIL_API_KEY="am_..."
```

## Usage

```python
from langchain.agents import create_agent
from langchain_agenticemail import AgenticEmailToolkit

toolkit = AgenticEmailToolkit.from_api_key()
tools = toolkit.get_tools()

agent = create_agent("anthropic:claude-sonnet-4-5", tools)
agent.invoke({
    "messages": [
        {"role": "user", "content": "Create an inbox and email a welcome note to user@example.com"}
    ]
})
```

## Tools

`create_inbox`, `list_inboxes`, `send_email`, `list_messages`, `get_message`,
`reply_to_message`, `search_messages`.

## JavaScript and other frameworks

For TypeScript or non-LangChain agents, point the framework at the hosted MCP
server at `https://api.agenticemail.dev/mcp` with the API key as a Bearer token.
MCP is the framework-agnostic tool bridge, so it needs no per-framework wrapper.

## Links

- Product: https://agenticemail.dev
- Docs: https://agenticemail.dev/docs
- Python SDK: https://pypi.org/project/agenticemail/

## License

MIT
