Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python
468 B
Raw Blame
from enum import Enum

from pydantic import BaseModel


class ClaimTypeEnum(str, Enum):
    DATETIME = "datetime"
    """Parsed to a Python datetime object."""
    EMAIL = "email"
    """Validated as an email address string."""
    PHONE_NUMBER = "phone_number"
    """Validated as a phone number string."""
    TEXT = "text"
    """Validated as a string."""


class ClaimFieldModel(BaseModel):
    description: str | None = None
    name: str
    type: ClaimTypeEnum