Files
mailu-openapi-agent/README.md

32 lines
1.1 KiB
Markdown

# mailu-openapi-agent
Generated A2APack agent for Mailu API.
- Source OpenAPI: https://mail.a2acloud.io/api/v1/swagger.json
- Generated operations: 38
- Main skill: `auto`
The generated code is intentionally editable. Tune prompts, operation
grouping, auth names, and safety policy before publishing serious agents.
## Mailbox skills
This agent also includes SMTP/IMAP skills:
- `send_email`
- `read_inbox`
- `read_sent`
- `mark_email_read`
These skills take the mailbox email address, mint a temporary Mailu user token
through the admin API, use it as the SMTP/IMAP password, and delete the token
before returning. The token is not exposed to the model or returned in skill
responses.
Runtime note: the hosted agent must be allowed to reach Mailu submission and
IMAPS. The cluster NetworkPolicy in `runtime-infra/mailu.yaml` allows only the
`mailu-openapi-agent` Knative service in the `agents` namespace to connect to
`mail.a2acloud.io` on ports `587` and `993`. Other cluster workloads should
remain blocked from those ports unless they receive their own explicit policy
exception.