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.models.readiness import ReadinessEnum
class ICache(ABC):
@abstractmethod
@start_as_current_span("cache_readiness")
async def readiness(self) -> ReadinessEnum:
pass
@abstractmethod
@start_as_current_span("cache_get")
async def get(self, key: str) -> bytes | None:
pass
@abstractmethod
@start_as_current_span("cache_set")
async def set(
self,
key: str,
ttl_sec: int,
value: str | bytes | None,
) -> bool:
pass
@abstractmethod
@start_as_current_span("cache_delete")
async def delete(self, key: str) -> bool:
pass