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

fix: Claim data API parsing

Clémence Lesnée74d7ff92e2f
diff --git a/app/models/call.py b/app/models/call.py
index e0b6f75..3a91c81 100644
--- a/app/models/call.py
+++ b/app/models/call.py
@@ -34,11 +34,11 @@ class CallGetModel(BaseModel):
call_id: UUID = Field(default_factory=uuid4, frozen=True)
created_at: datetime = Field(default_factory=lambda: datetime.now(UTC), frozen=True)
# Editable fields
+ in_progress: bool = False
+ initiate: CallInitiateModel = Field(frozen=True)
claim: dict[
str, Any
] = {} # Place after "initiate" as it depends on it for validation
- in_progress: bool = False
- initiate: CallInitiateModel = Field(frozen=True)
messages: list[MessageModel] = []
next: NextModel | None = None
reminders: list[ReminderModel] = []