connectwithprakash commited on
Commit
8a66807
·
verified ·
1 Parent(s): f3334b5

Update get bio

Browse files
Files changed (1) hide show
  1. app.py +6 -4
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(name: str) -> str:
38
  """A tool that describes a person
39
  Args:
40
- name: name of the person in "firstname_lastname" format
 
41
  """
42
- name_key = "_".join(name.split(" ")).lower()
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
  }
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