Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!
Python
from abc import ABC, abstractmethod
from app.helpers.monitoring import start_as_current_span
from app.helpers.pydantic_types.phone_numbers import PhoneNumber
from app.models.readiness import ReadinessEnum
class ISms(ABC):
@abstractmethod
@start_as_current_span("sms_readiness")
async def readiness(self) -> ReadinessEnum:
pass
@abstractmethod
@start_as_current_span("sms_send")
async def send(self, content: str, phone_number: PhoneNumber) -> bool:
pass