Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
18 |
"""
|
19 |
return "What magic will you build ?"
|
20 |
|
21 |
-
|
22 |
@tool
|
23 |
def my_name(firstName:str)-> str: #it's import to specify the return type
|
24 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
@@ -27,7 +27,7 @@ def my_name(firstName:str)-> str: #it's import to specify the return type
|
|
27 |
#arg1: first name (e.g 'Sean')
|
28 |
#
|
29 |
return f"Your name is {firstName} Hodgson"
|
30 |
-
|
31 |
|
32 |
@tool
|
33 |
def get_current_time_in_timezone(timezone: str) -> str:
|
@@ -66,7 +66,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
66 |
|
67 |
agent = CodeAgent(
|
68 |
model=model,
|
69 |
-
tools=[final_answer
|
70 |
max_steps=6,
|
71 |
verbosity_level=1,
|
72 |
grammar=None,
|
|
|
18 |
"""
|
19 |
return "What magic will you build ?"
|
20 |
|
21 |
+
|
22 |
@tool
|
23 |
def my_name(firstName:str)-> str: #it's import to specify the return type
|
24 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
|
|
27 |
#arg1: first name (e.g 'Sean')
|
28 |
#
|
29 |
return f"Your name is {firstName} Hodgson"
|
30 |
+
|
31 |
|
32 |
@tool
|
33 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
66 |
|
67 |
agent = CodeAgent(
|
68 |
model=model,
|
69 |
+
tools=[final_answer, my_name, get_current_time_in_timezone], ## add your tools here (don't remove final answer)
|
70 |
max_steps=6,
|
71 |
verbosity_level=1,
|
72 |
grammar=None,
|