INNER CODE UNIT · Python
RedditSearchRequest
SPThole/CoexistAI · app.py:363
class RedditSearchRequest(BaseModel):
subreddit: str = None
url_type: str = "hot"
n: int = 3
k: int = 1
custom_url: str = None
time_filter: str = "all"
search_query: str = None
sort_type: str = "relevance"
class MapSearchRequest(BaseModel):
start_location: Optional[str] = None # Start location can be a string or None
end_location: Optional[str] = None # End location can be a string or None
pois_radius: int = 500 # Default radius for POIs in meters
amenities: str = "restaurant|cafe|bar|hotel" # Default amenities to search for
limit: int = 3 # Default number of results to return
task: str = "route_and_pois" # Default task is to find a route