The following agent will send an SMS message using Twilio:
from agno.agent import Agentfrom agno.tools.twilio import TwilioToolsagent = Agent( instructions=[ "Use your tools to send SMS using Twilio.", ], tools=[TwilioTools(debug=True)], show_tool_calls=True,)agent.print_response("Send an SMS to +1234567890", markdown=True)
Sends an SMS to a recipient. Takes recipient phone number, sender number (Twilio), and message body. Returns message SID if successful or error message if failed.
get_call_details
Retrieves details of a call using its SID. Takes the call SID and returns a dictionary with call details (e.g., status, duration).
list_messages
Lists recent SMS messages. Takes a limit for the number of messages to return (default 20). Returns a list of message details (e.g., SID, sender, recipient, body, status).