Spaces:
Sleeping
Sleeping
Update app.py
Browse files19 unmodified lines202122232425262 unmodified lines2930313233343519 unmodified lines# Below is an example of a tool that does nothing. Amaze us with your creativity !@tooldef get_search_from_DuckDuckGo(question: 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 does nothing yetArgs:2 unmodified linestry:search = DuckDuckGoSearchRun()result = search.invoke(question)return f"the answer to your question is: \n {result}"except Exception as e:return f"Error {str(e)}"19 unmodified lines202122232425262 unmodified lines2930313233343519 unmodified lines# Below is an example of a tool that does nothing. Amaze us with your creativity !@tooldef get_search_from_DuckDuckGo(arg1: 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 does nothing yetArgs:2 unmodified linestry:search = DuckDuckGoSearchRun()result = search.invoke(arg1)return f"the answer to your question is: \n {result}"except Exception as e:return f"Error {str(e)}"
app.py+2-2