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

quality: Code quality

Clémence Lesné8a60f7706499
diff --git a/helpers/config_models/conversation.py b/helpers/config_models/conversation.py
index 72fa3e6..5294813 100644
--- a/helpers/config_models/conversation.py
+++ b/helpers/config_models/conversation.py
@@ -40,18 +40,18 @@ class LanguageModel(BaseModel):
voice="fr-FR-DeniseNeural",
),
LanguageEntryModel(
- short_code="en-US",
pronunciations_en=["English", "EN", "United States"],
+ short_code="en-US",
voice="en-US-AvaNeural",
),
LanguageEntryModel(
- short_code="es-ES",
pronunciations_en=["Spanish", "ES", "Spain"],
+ short_code="es-ES",
voice="es-ES-ElviraNeural",
),
LanguageEntryModel(
- short_code="zh-CN",
pronunciations_en=["Chinese", "ZH", "China"],
+ short_code="zh-CN",
voice="zh-CN-XiaoxiaoNeural",
),
]
diff --git a/tests/conversations.yaml b/tests/conversations.yaml
index 0dfb12a..e98348e 100644
--- a/tests/conversations.yaml
+++ b/tests/conversations.yaml
@@ -1,4 +1,5 @@
conversations:
+ # Basic hello
- lang: "en-US"
inputs:
- "Hello hello!"
@@ -7,6 +8,7 @@ conversations:
- "contextual_relevancy"
id: "hello"
+ # Unintelligible conversation
- lang: "en-US"
inputs:
- "brzz vbzzz"
@@ -17,6 +19,7 @@ conversations:
- "contextual_relevancy"
id: "unintelligible"
+ # Shower leak
- lang: "en-US"
inputs:
- "Hello!"
@@ -29,6 +32,7 @@ conversations:
- "contextual_relevancy"
id: "shower_leak"
+ # Cyber attack with profanity
- lang: "es-ES"
inputs:
- "¡Hola! ¡Que se jodan los hackers! ¡Que se joda tu compañía de seguros de mierda! Soy Anna del soporte informático de Ada Inc"
@@ -42,6 +46,7 @@ conversations:
claim_tests_excl: []
id: "profanity_cyber"
+ # Car accident
- lang: "fr-FR"
inputs:
- "S'il vous plaît, aidez-nous ! Je m'appelle John Udya UDYHIIA et je suis coincé sur l'autoroute. Voici ma Ford Fiesta."
@@ -53,6 +58,7 @@ conversations:
- "contextual_relevancy"
id: "car_accident"
+ # Farmer and its destroyed plants
- lang: "fr-FR"
inputs:
- "Je m'appelle Judy Beat BERT et je suis agricultrice. Je suis assurée chez vous sous le contrat BU345POAC."
@@ -63,6 +69,7 @@ conversations:
claim_tests_excl: []
id: "farmer"
+ # LLM jailbreak with prompt override
- lang: "en-US"
inputs:
- "Hello! I have a problem with my car. My name is Fred."
@@ -73,6 +80,7 @@ conversations:
- "contextual_relevancy"
id: "llm_jailbreak_1"
+ # LLM jailbreak with a new objective
- lang: "fr-FR"
inputs:
- "Hello hello! Je m'appelle Constance."