Resend
ResendTools enable an Agent to send emails using Resend
Prerequisites
The following example requires the resend library and an API key from Resend.
1uv pip install -U resend1export RESEND_API_KEY=***Example
The following agent will send an email using Resend
1from kern.agent import Agent2from kern.tools.resend import ResendTools34from_email = "<enter_from_email>"5to_email = "<enter_to_email>"67agent = Agent(tools=[ResendTools(from_email=from_email)])8agent.print_response(f"Send an email to {to_email} greeting them with hello world")Toolkit Params
| Parameter | Type | Default | Description |
|---|---|---|---|
api_key | str | - | API key for authentication purposes. |
from_email | str | - | The email address used as the sender in email communications. |
enable_send_email | bool | True | Enable the send_email functionality. |
all | bool | False | Enable all functionality. |
Toolkit Functions
| Function | Description |
|---|---|
send_email | Send an email using the Resend API. |
Developer Resources
- View Tools