Teamver Mail BE client for AI agent runtimes (inbox, events, processing, reply)
Project description
teamver-mail-agent
Async Python client for the Teamver Mail BE Agent API (/v1/agent/*).
Built for agents, Hermes, and other AI agent runtimes.
Install
pip install teamver-mail-agent
Depends on teamver-sdk-core. Python ≥ 3.11.
For the unified agent facade (channel + DM + Drive + mail), install
teamver-agent-sdk instead.
Quick start
import asyncio
from teamver_mail_agent import TeamverMailAgentClient
async def main():
async with TeamverMailAgentClient.from_env() as client:
events = await client.list_events(limit=10)
for ev in events.events:
if ev.message_id:
await client.ack_event(ev.event_id)
msg = await client.get_message(ev.message_id)
print(msg.subject, msg.body_text)
asyncio.run(main())
Environment
| Field | Env | Description | Default |
|---|---|---|---|
api_base_url |
TEAMVER_MAIL_API_BASE or TEAMVER_MAIL_API_BASE_URL |
Mail host, no /v1 |
https://mail-api.teamver.com |
agent_token |
TEAMVER_MAIL_AGENT_TOKEN |
Bearer tv_agent_… |
(required) |
internal_api_key |
TEAMVER_INTERNAL_API_KEY |
Optional — M2M provisioning only | — |
Scopes
agent:read, agent:events, agent:reply — issued with the mail agent token.
Recommended loop
list/stream events → ack → get_message → processing_start
→ handle → reply (Idempotency-Key) → processing_complete
Documentation
Public docs: github.com/NeuralStudioKr/teamver-sdk-docs/tree/main/mail-agent
License
MIT — see LICENSE.
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 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 teamver_mail_agent-0.3.1.tar.gz.
File metadata
- Download URL: teamver_mail_agent-0.3.1.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1632dcb6fda0d6b92c022abf6487564e691c6c947f969f408e470eaf32a8e31
|
|
| MD5 |
f84bce483d99ba74e2b390b032f9ab06
|
|
| BLAKE2b-256 |
8327559ef12a611ba1d3e687d74878ca35bfe36b3d760349f359d99e9f02ad36
|
File details
Details for the file teamver_mail_agent-0.3.1-py3-none-any.whl.
File metadata
- Download URL: teamver_mail_agent-0.3.1-py3-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
768d43294f4a219db49885d5f287ba75bcce204b9d580dd9957e58744b6ce3fc
|
|
| MD5 |
cb35f451c43c7c47cf3c5cfd5ff60d42
|
|
| BLAKE2b-256 |
3b1d2bbce525d4edba89e9756c31bd912a48777adca53be6e63cdd4fb6591306
|