vocode-python/vocode/models/telephony.py
2023-03-08 15:33:59 -08:00

23 lines
596 B
Python

from typing import Optional
from vocode.models.model import BaseModel
from vocode.models.agent import AgentConfig
from vocode.models.synthesizer import SynthesizerConfig
class CallEntity(BaseModel):
phone_number: str
class CreateInboundCall(BaseModel):
agent_config: AgentConfig
twilio_sid: str
conversation_id: Optional[str] = None
class CreateOutboundCall(BaseModel):
recipient: CallEntity
caller: CallEntity
agent_config: AgentConfig
synthesizer_config: Optional[SynthesizerConfig] = None
conversation_id: Optional[str] = None
# TODO add IVR/etc.