Pydantic model validating call initiation requests with a phone number field, extending a workflow initiate model for call orchestration.
# Source: https://github.com/microsoft/call-center-ai | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
import asyncio
import random
import string
from datetime import UTC, datetime, tzinfo
from typing import Any
from uuid import UUID, uuid4
from pydantic import BaseModel, Field, ValidationInfo, field_validator
from app.helpers.config_models.conversation import (
LanguageEntryModel,
WorkflowInitiateModel,
)
from app.helpers.monitoring import tracer
from app.helpers.pydantic_types.phone_numbers import PhoneNumber
from app.models.message import (
ActionEnum as MessageActionEnum,
MessageModel,
PersonaEnum as MessagePersonaEnum,
StyleEnum as MessageStyleEnum,
)
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key