vocode-python/vocode/models/telephony.py
2023-02-24 10:47:17 -08:00

14 lines
372 B
Python

from pydantic import BaseModel
from vocode.models.agent import AgentConfig, InformationRetrievalAgentConfig
class CallEntity(BaseModel):
phone_number: str
descriptor: str
class CreateCallRequest(BaseModel):
recipient: CallEntity
caller: CallEntity
agent_config: InformationRetrievalAgentConfig # TODO switch to AgentConfig
# TODO add IVR/etc.