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: Enhance claim testing

Clémence Lesnéf2be9ab5e07b
diff --git a/tests/llm.py b/tests/llm.py
index 7ece69b..d203dd7 100644
--- a/tests/llm.py
+++ b/tests/llm.py
@@ -167,10 +167,10 @@ class ClaimRelevancyMetric(BaseMetric):
# Rules
- All data should be extracted
- - Respond only with the JSON object, nothing else
- - If there is no data to populate a field, do not include it
+ - Be concise
- Limit fields to the ones listed
- - Values should be detailed, if data exists
+ - Only add info which are explicitly mentioned
+ - Respond only with the JSON object, nothing else
# Fields
{", ".join([f"{field.name} ({field.type.value})" for field in self.call.initiate.claim])}