tools/email.py

Vocentra-AI · backend/app/tools/email.py · python · MIT
email, tag:knn-classified

Async tool to enqueue a confirmation email, logging the action.

# Source: https://github.com/harrisruben/Vocentra-AI | License: MIT | Copyright 2026 Harris Ruben R
# Provided via justclaw.it.com; keep this notice with the code.
from app.core.logger import logger
from app.tools.registry import ToolRegistry

@ToolRegistry.register(
    name="send_confirmation_email",
    description="Enqueues and sends an email notification to a client.",
    parameters={
        "type": "object",
        "properties": {
            "email": {"type": "string"},
            "subject": {"type": "string"},
            "body": {"type": "string"}
        },
        "required": ["email", "subject", "body"]
    },
    required_permissions=["agent"]
)
async def send_confirmation_email(
    email: str,
    subject: str,
    body: str
) -> dict:
    logger.info(f"Tool Run: send_co

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key