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

ux: Only keep the "call" action when creating a new claim

Clémence Lesné30a7b3cb3abb
diff --git a/app/helpers/llm_tools.py b/app/helpers/llm_tools.py
index c1eb127..a964ca8 100644
--- a/app/helpers/llm_tools.py
+++ b/app/helpers/llm_tools.py
@@ -98,8 +98,7 @@ class DefaultPlugin(AbstractPlugin):
content="",
persona=MessagePersonaEnum.HUMAN,
),
- # Reinsert the last message, using more will add the user message asking to create the new claim and the assistant can loop on it sometimes
- self.call.messages[-1],
+ # TODO: Should it be a reminder for the last conversation subject? It would allow to keep the context of the conversation. Keeping the last message in the history is felt as weird for users (see: https://github.com/microsoft/call-center-ai/issues/397).
],
)
)