Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!
Python
doc: Logging quality
Clémence Lesné5dcac88b4257
diff --git a/main.py b/main.pyindex 8e7f8a7..fcca181 100644--- a/main.py+++ b/main.py@@ -906,7 +906,7 @@ async def gpt_chat(parameters = json.loads(arguments)except Exception:_logger.warn(- f"LLM send back invalid JSON for {arguments}, ignoring this tool call"+ f'LLM send back invalid JSON for "{arguments}", ignoring this tool call.')continue@@ -942,7 +942,7 @@ async def gpt_chat(parameters = json.loads(arguments)except Exception:_logger.warn(- f"LLM send back invalid JSON for {arguments}, ignoring this tool call"+ f'LLM send back invalid JSON for "{arguments}", ignoring this tool call.')continue@@ -970,13 +970,13 @@ async def gpt_chat(parameters = json.loads(arguments)except Exception:_logger.warn(- f"LLM send back invalid JSON for {arguments}, ignoring this tool call"+ f'LLM send back invalid JSON for "{arguments}", ignoring this tool call.')continueif not customer_response_prop in parameters:_logger.warn(- f"Missing {customer_response_prop} prop in {arguments}, please fix this!"+ f'Missing "{customer_response_prop}" prop in "{arguments}", please fix this!')else:local_content = parameters[customer_response_prop]@@ -990,7 +990,7 @@ async def gpt_chat(reminder.due_date_time = parameters["due_date_time"]reminder.owner = parameters["owner"]model.content = (- f"Reminder \"{parameters['title']}\" updated."+ f'Reminder "{parameters['title']}" updated.')updated = Truebreak@@ -1004,7 +1004,7 @@ async def gpt_chat(owner=parameters["owner"],))- model.content = f"Reminder \"{parameters['title']}\" created."+ model.content = f'Reminder "{parameters['title']}" created.'models.append(model)