Spaces:
Sleeping
Sleeping
Update app.py
Browse filesAdded two tools: get_current_time_in_timezone, and DuckDuckGoSearchTool()
10 unmodified lines1112131415161737 unmodified lines5556575859606110 unmodified lines@tooldef my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type#Keep this format for the description / args / args description but feel free to modify the tool"""A tool that does nothing yetArgs:arg1: the first argumentarg2: the second argument37 unmodified linesagent = CodeAgent(model=model,tools=[final_answer], ## add your tools here (don't remove final answer)max_steps=6,verbosity_level=1,grammar=None,10 unmodified lines1112131415161737 unmodified lines5556575859606110 unmodified lines@tooldef my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type#Keep this format for the description / args / args description but feel free to modify the tool"""A tool that searches the webArgs:arg1: the first argumentarg2: the second argument37 unmodified linesagent = CodeAgent(model=model,tools=[final_answer, get_current_time_in_timezone, DuckDuckGoSearchTool()], ## add your tools here (don't remove final answer)max_steps=6,verbosity_level=1,grammar=None,
app.py+2-2