Template
7 lines
270 B
Python
7 lines
270 B
Python
"""Search adapter boundary with an explicit, testable result shape."""
|
|
|
|
def search(query: str, limit: int = 5) -> list[dict]:
|
|
if not query.strip():
|
|
return []
|
|
return [{"title": "offline-placeholder", "url": "about:blank", "snippet": query[:200]}][:limit]
|