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: Clearer prompt for "UPDATE_CLAIM" intent

Clémence Lesnéec3581b18e8f
diff --git a/main.py b/main.py
index 91bbb99..6aaadf9 100644
--- a/main.py
+++ b/main.py
@@ -706,7 +706,7 @@ async def gpt_chat(call: CallModel) -> ActionModel:
intent = IndentAction.UPDATE_CLAIM
parameters = json.loads(arguments)
setattr(call.claim, parameters["field"], parameters["value"])
- model.content = f"Udated claim field {parameters['field']} with value {parameters['value']}"
+ model.content = f"Updated claim field \"{parameters['field']}\" with value \"{parameters['value']}\"."
elif name == IndentAction.NEW_CLAIM:
intent = IndentAction.NEW_CLAIM
call.claim = ClaimModel()