Spaces:
Sleeping
Sleeping
Update app.py
Browse files8 unmodified lines9101112131415161718192021228 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:8 unmodified lines910111213141516171819202122232425262728293031323334358 unmodified lines# Below is an example of a tool that does nothing. Amaze us with your creativity !@tooldef my_custom_tool(arg1:int, arg2:int, arg3:str)-> str: #it's import to specify the return type"""A tool that performs the specified mathematical operation on the specified integer argumentsArgs:arg1: the first integerarg2: the second integerarg3: the operator. Supported operations are +,-,*,"""match arg3:case "*":return arg1 * arg2case "/":if(arg2!=0)return arg1 / arg2elsereturn f"Error: Division by zero not possible"case "+":return arg1 + arg2case "-":return arg1 - arg2case _:return f"Error: '{arg3}' is an unsupported operation, Supported operations are +,-,*,/"@tooldef get_current_time_in_timezone(timezone: str) -> str:
app.py+19-6