Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!
Python
fix: Make LLM aware of day name Usage example cen be "I want a rendez-vous next Monday".
Clémence Lesné04fa8048540f
diff --git a/helpers/config_models/prompts.py b/helpers/config_models/prompts.pyindex 1811434..413e3c5 100644--- a/helpers/config_models/prompts.py+++ b/helpers/config_models/prompts.py@@ -328,8 +328,8 @@ class LlmModel(BaseModel):bot_name=call.initiate.bot_name,bot_phone_number=CONFIG.communication_services.phone_number,date=datetime.now(call.tz()).strftime(- "%Y-%m-%d %H:%M (%Z)"- ), # Don't include secs to enhance cache during unit tests. Example: "2024-02-01 18:58".+ "%a %d %b %Y, %H:%M (%Z)"+ ), # Don't include secs to enhance cache during unit tests. Example: "Mon 15 Jul 2024, 12:43 (CEST)"phone_number=call.initiate.phone_number,))diff --git a/tests/llm.py b/tests/llm.pyindex d203dd7..ff9a303 100644--- a/tests/llm.py+++ b/tests/llm.py@@ -160,7 +160,7 @@ class ClaimRelevancyMetric(BaseMetric):Assistant is a data analyst expert with 20 years of experience.# Context- Conversation is coming from a call centre. Today is {datetime.now(self.call.tz()).strftime("%Y-%m-%d %H:%M (%Z)")}.+ Conversation is coming from a call centre. Today is {datetime.now(self.call.tz()).strftime("%a %d %b %Y, %H:%M (%Z)")}.# ObjectiveExtract fields from a conversation. The respond will be a JSON object with the key-value pairs.