resend_tools.py
Run the Example
1
Set up your virtual environment
2
Install dependencies
3
Export your API keys
4
Run the example
Save the code above as
resend_tools.py, then run:Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Send an email from your agent with ResendTools and a configured from address.
"""
Resend Tools
=============================
Demonstrates resend tools.
"""
from agno.agent import Agent
from agno.tools.resend import ResendTools
# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------
from_email = "<enter_from_email>"
to_email = "<enter_to_email>"
agent = Agent(tools=[ResendTools(from_email=from_email)])
# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------
if __name__ == "__main__":
agent.print_response(f"Send an email to {to_email} greeting them with hello world")
Set up your virtual environment
uv venv --python 3.12
source .venv/bin/activate
uv venv --python 3.12
.venv\Scripts\activate
Install dependencies
uv pip install -U agno openai resend
Export your API keys
export OPENAI_API_KEY="your_openai_api_key_here"
export RESEND_API_KEY="your_resend_api_key_here"
$Env:OPENAI_API_KEY="your_openai_api_key_here"
$Env:RESEND_API_KEY="your_resend_api_key_here"
Run the example
resend_tools.py, then run:python resend_tools.py
Was this page helpful?