Prerequisites
The following example requires theresend library and an API key from Resend.
Example
The following agent will send an email using Resendcookbook/tools/resend_tools.py
Toolkit Params
Toolkit Functions
Information
- View on Github
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
resend library and an API key from Resend.
pip install -U resend
export RESEND_API_KEY=***
from phi.agent import Agent
from phi.tools.resend_tools import ResendTools
from_email = "<enter_from_email>"
to_email = "<enter_to_email>"
agent = Agent(tools=[ResendTools(from_email=from_email)], show_tool_calls=True)
agent.print_response(f"Send an email to {to_email} greeting them with hello world")
| 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. |
| Function | Description |
|---|---|
send_email | Send an email using the Resend API. |
Was this page helpful?