Jansenhbar commited on
Commit
215c8d5
·
verified ·
1 Parent(s): f8ca3d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,7 +19,7 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
19
  return "What magic will you build ?"
20
 
21
  @tool
22
- def my_custom_tool(animal: str)-> str: #it's import to specify the return type
23
  #Keep this format for the description / args / args description but feel free to modify the tool
24
  """A tool that that grades animals from 0 to 10 depending on how cool they are (10 being the largest)
25
  Args:
@@ -72,7 +72,7 @@ with open("prompts.yaml", 'r') as stream:
72
 
73
  agent = CodeAgent(
74
  model=model,
75
- tools=[final_answer], ## add your tools here (don't remove final answer)
76
  max_steps=6,
77
  verbosity_level=1,
78
  grammar=None,
 
19
  return "What magic will you build ?"
20
 
21
  @tool
22
+ def aninmal_grading(animal: str)-> str: #it's import to specify the return type
23
  #Keep this format for the description / args / args description but feel free to modify the tool
24
  """A tool that that grades animals from 0 to 10 depending on how cool they are (10 being the largest)
25
  Args:
 
72
 
73
  agent = CodeAgent(
74
  model=model,
75
+ tools=[final_answer,aninmal_grading], ## add your tools here (don't remove final answer)
76
  max_steps=6,
77
  verbosity_level=1,
78
  grammar=None,