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