eong commited on
Commit
5d22d5f
·
verified ·
1 Parent(s): 98bc2ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -0
app.py CHANGED
@@ -33,6 +33,27 @@ def get_current_time_in_timezone(timezone: str) -> str:
33
  except Exception as e:
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
 
37
  final_answer = FinalAnswerTool()
38
 
 
33
  except Exception as e:
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
 
36
+ @tool
37
+ def find_your_bible_charatcer(subject: str) -> str:
38
+ """This tool performs a web search for your favorite bible character and return summary of their life and calling
39
+ Args:
40
+ subject: The name of the food to find nutrition.
41
+ """
42
+ search_tool = DuckDuckGoSearchTool()
43
+ combination = None
44
+
45
+ try:
46
+ results = search_tool(f"Summarize the life of the following bible character {subject} and what was their call or mandate.")
47
+
48
+ if results and len(results) > 0:
49
+ combination = results
50
+ return f"🦋🦋 Here's is the summary of the life and calling of {subject}: {combination}"
51
+
52
+ return f"Sorry, I couldn't find any information for {subject}."
53
+
54
+ except Exception as e:
55
+ return f"Sorry, I couldn't find any information {subject}. Error: {str(e)}"
56
+
57
 
58
  final_answer = FinalAnswerTool()
59