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: Fine-tune "end_call" tool prompt

Clémence Lesné6cb2de4c9860
diff --git a/helpers/llm_plugins.py b/helpers/llm_plugins.py
index 7d69101..313406f 100644
--- a/helpers/llm_plugins.py
+++ b/helpers/llm_plugins.py
@@ -51,7 +51,7 @@ class LlmPlugins:
async def end_call(self) -> str:
"""
- Use this if the user wants to end the call in its last message. Be warnging that the call will be ended immediately. Never use this action directly after a recall. Example: 'I want to hang up', 'Good bye, see you soon', 'We are done here', 'We will talk again later'.
+ Use this if the user wants to end the call in its last message. Use this action only at the end of a conversation. Be warnging that the call will be ended immediately. Example: 'I want to hang up', 'Good bye, see you soon'.
"""
await self.cancellation_callback()
await handle_play(