Spaces:
Sleeping
Sleeping
Update tools.py
Browse files
tools.py
CHANGED
|
@@ -50,7 +50,7 @@ class Mail_retriever(Tool):
|
|
| 50 |
result=part.get_payload()
|
| 51 |
elif message_main_type == 'text':
|
| 52 |
result=mail_content.get_payload()
|
| 53 |
-
return f"{
|
| 54 |
except HttpError as error:
|
| 55 |
# TODO(developer) - Handle errors from gmail API.
|
| 56 |
print(f"An error occurred: {error}")
|
|
|
|
| 50 |
result=part.get_payload()
|
| 51 |
elif message_main_type == 'text':
|
| 52 |
result=mail_content.get_payload()
|
| 53 |
+
return f"{name}, you have new mails: {result}."
|
| 54 |
except HttpError as error:
|
| 55 |
# TODO(developer) - Handle errors from gmail API.
|
| 56 |
print(f"An error occurred: {error}")
|