Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,17 +20,13 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
| 20 |
|
| 21 |
|
| 22 |
@tool
|
| 23 |
-
def send_email(to_person:
|
| 24 |
"""
|
| 25 |
Sends an email message.
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
message (str): The content of the email message.
|
| 31 |
-
|
| 32 |
-
Returns:
|
| 33 |
-
str: A confirmation message that the email has been sent.
|
| 34 |
"""
|
| 35 |
email_str = f"Sending the message {message} from {from_person} to {to_person}"
|
| 36 |
return email_str
|
|
|
|
| 20 |
|
| 21 |
|
| 22 |
@tool
|
| 23 |
+
def send_email(to_person:str, from_person:str, message:str)-> str:
|
| 24 |
"""
|
| 25 |
Sends an email message.
|
| 26 |
+
Args:
|
| 27 |
+
to_person: The email address of the recipient.
|
| 28 |
+
from_person: The email address of the sender.
|
| 29 |
+
message: The content of the email message.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
"""
|
| 31 |
email_str = f"Sending the message {message} from {from_person} to {to_person}"
|
| 32 |
return email_str
|