Spaces:
Runtime error
Runtime error
Update app.py
Browse files21 unmodified lines2223242526272823 unmodified lines5253545556575821 unmodified lines# I want to try connect to a google API to get some recommendation of audiobooks!@tooldef search_audiobooks(topic:str, limit:int=3)-> 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"""The tool is designed to connect to the google API platform and retrieve some audiobooks recommendationsArgs:23 unmodified lines@tool# Function to estimate if audiobook fits time constraintdef filter_by_time(audiobooks, free_time):"""The tool is designed to match the time in terms of duration of the audiobook which is called estimated_minutes and the free time that the person haveArgs:audiobooks: the list of the audiobooks21 unmodified lines2223242526272823 unmodified lines5253545556575821 unmodified lines# I want to try connect to a google API to get some recommendation of audiobooks!@tooldef search_audiobooks(topic: str, limit: int = 3)-> List[Dict[str, Any]]: #it's import to specify the return type#Keep this format for the description / args / args description but feel free to modify the tool"""The tool is designed to connect to the google API platform and retrieve some audiobooks recommendationsArgs:23 unmodified lines@tool# Function to estimate if audiobook fits time constraintdef filter_by_time(audiobooks: List[Dict[str, Any]], free_time: str) -> List[Dict[str, Any]]:"""The tool is designed to match the time in terms of duration of the audiobook which is called estimated_minutes and the free time that the person haveArgs:audiobooks: the list of the audiobooks
app.py+2-2