Update app.py
Browse files8 unmodified lines91011121314151617181920212232 unmodified lines555657585960618 unmodified lines# Below is an example of a tool that does nothing. Amaze us with your creativity !@tooldef my_custom_tool(arg1:str, arg2:str)-> 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 counts the number of a particular letter in a word'Args:arg1: The word passed to this tool to have its letters counted'arg2: The letter to check for"""return "The number of letter {arg1} in the word {arg2} is ANSWER !"@tooldef get_current_time_in_timezone(timezone: str) -> str:32 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 lines91011121314151617181920212232 unmodified lines555657585960618 unmodified lines# Below is an example of a tool that does nothing. Amaze us with your creativity !@tooldef count_letters_in_word(arg1:str, arg2:str)-> 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 counts the number of a particular letter in a word'Args:arg1: The word passed to this tool to have its letters counted'arg2: The letter to check for"""return "The number of letter {arg1} in the word {arg2} is : example answer (The number of letter N in the word Navan is : 2) !"@tooldef get_current_time_in_timezone(timezone: str) -> str:32 unmodified linesagent = CodeAgent(model=model,tools=[final_answer, count_letters_in_word], ## add your tools here (don't remove final answer)max_steps=6,verbosity_level=1,grammar=None,
app.py+3-3