Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!
Python
fix: Double addition of messages into memory
Clémence Lesné647e3374e4b5
diff --git a/main.py b/main.pyindex c7fd3a0..89142de 100644--- a/main.py+++ b/main.py@@ -272,9 +272,6 @@ async def call_event_post(request: Request, call_id: UUID) -> None:call.messages.append(CallMessageModel(content="Customer called again.", persona=CallPersona.HUMAN))- call.messages.append(- CallMessageModel(content=WELCOME_BACK_PROMPT, persona=CallPersona.ASSISTANT)- )await handle_play(call=call,client=client,