Update app.py
Browse files8 unmodified lines910111212131414151617161719181920218 unmodified lines
# Below is an example of a tool that does nothing. Amaze us with your creativity !@tooldef my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return typedef count_words(text:str)-> int: #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 yet """A tool that counts words in a given sentence Args: arg1: the first argument arg2: the second argument arg1: text: the sentence to count words in """ return "What magic will you build ?" return len(text.split())
@tooldef get_current_time_in_timezone(timezone: str) -> str:app.py+4-5