Spaces:
Sleeping
Sleeping
Update app.py
Browse files8 unmodified lines91011121314151617181920212228 unmodified lines515253545556578 unmodified lines# Below is an example of a tool that does nothing. Amaze us with your creativity !@tooldef my_cutom_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 argument"""return "What magic will you build ?"@tooldef get_current_time_in_timezone(timezone: str) -> str:28 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,8 unmodified lines910111213141516171819202122232425262728293031323328 unmodified lines626364656667688 unmodified lines# Below is an example of a tool that does nothing. Amaze us with your creativity !@tooldef add(a:str, b: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"""Addition of two numbersArgs:a: number 1b: number 2"""return a + b# Below is an example of a tool that does nothing. Amaze us with your creativity !@tooldef multiply(a:str, b: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"""Multiplication of two numbersArgs:a: number 1b: number 2"""return a * b@tooldef get_current_time_in_timezone(timezone: str) -> str:28 unmodified linesagent = CodeAgent(model=model,tools=[add, multiply, final_answer], ## add your tools here (don't remove final answer)max_steps=6,verbosity_level=1,grammar=None,
app.py+17-6