Erfan97 commited on
Commit
de1591d
·
verified ·
1 Parent(s): 2b33562

Replace my_custom_tool

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -8,6 +8,18 @@ from tools.final_answer import FinalAnswerTool
8
  from Gradio_UI import GradioUI
9
 
10
 
 
 
 
 
 
 
 
 
 
 
 
 
11
 
12
  @tool
13
  def get_current_time_in_timezone(timezone: str) -> str:
 
8
  from Gradio_UI import GradioUI
9
 
10
 
11
+ @tool
12
+ def name_meaning(name: str) -> str:
13
+ """Find the meaning and origin of a given name by searching reliable sources.
14
+ Args:
15
+ name: A first name (e.g., 'Erfan', 'Sara', 'Michael').
16
+ """
17
+ return (
18
+ f"Find the meaning, origin, and common interpretations of the name '{name}'. "
19
+ f"Use web search and summarize in 3-5 bullet points. "
20
+ f"Also mention the culture/language of origin and any notable variants."
21
+ )
22
+
23
 
24
  @tool
25
  def get_current_time_in_timezone(timezone: str) -> str: