Skip to main content

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
api_base_url TEAMVER_MAIL_API_BASE or TEAMVER_MAIL_API_BASE_URL Mail host, no /v1 suffix
agent_token TEAMVER_MAIL_AGENT_TOKEN Bearer tv_agent_…
internal_api_key TEAMVER_INTERNAL_API_KEY Optional — M2M provisioning only (not for edge agents)

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

Helper: run_standard_inbound_loop (see package docs on GitHub).

Documentation

Development

pip install -e ".[dev]"
pytest

License

MIT — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

teamver_mail_agent-0.3.0.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

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

teamver_mail_agent-0.3.0-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file teamver_mail_agent-0.3.0.tar.gz.

File metadata

  • Download URL: teamver_mail_agent-0.3.0.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.9

File hashes

Hashes for teamver_mail_agent-0.3.0.tar.gz
Algorithm Hash digest
SHA256 a16c4b60a89c21caba8e60d74f2fa7aa2c7922547b29d10fe6519131bd2a1a40
MD5 c267885fd20cc6cb2c4a43a5ad979731
BLAKE2b-256 f9dcfd8f00a6f6355d7bbd16e30d049a43a7ed4459faee8c8bdbdce2cbe28e2f

See more details on using hashes here.

File details

Details for the file teamver_mail_agent-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for teamver_mail_agent-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac220531e1a4a72cc572a3a6e0afac29d71c6854029ee406e1ec3a2c7d5c2074
MD5 9627dcad0401a996af9ae1a4393ed735
BLAKE2b-256 23f6a5a0b8b714ccc7cdaee678c9899d6c08775ce4356357db5939755a864b9d

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