Update get bio
Browse files
app.py
CHANGED
@@ -34,14 +34,16 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
35 |
|
36 |
@tool
|
37 |
-
def get_person_bio(
|
38 |
"""A tool that describes a person
|
39 |
Args:
|
40 |
-
|
|
|
41 |
"""
|
42 |
-
name_key = "_".join(name.split(" ")).lower()
|
43 |
details = {
|
44 |
-
"
|
|
|
|
|
45 |
}
|
46 |
return details.get(name, "NA")
|
47 |
|
|
|
34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
35 |
|
36 |
@tool
|
37 |
+
def get_person_bio(first_name: str, last_name: str) -> str:
|
38 |
"""A tool that describes a person
|
39 |
Args:
|
40 |
+
first_name: first name of the person
|
41 |
+
last_name: last name of the person
|
42 |
"""
|
|
|
43 |
details = {
|
44 |
+
"Prakash Chaudhary": "Prakash is an employee of Fetch Rewards, Inc. He loves working with agents and has in-depth knowledge around the field."
|
45 |
+
"John Doe": "No one"
|
46 |
+
|
47 |
}
|
48 |
return details.get(name, "NA")
|
49 |
|