Files
agent-template/src/tools/web_search.py
T
Admin_IT-one d406da1312
Deploy / validate-image (push) Successful in 45s
Eval Gate / evaluate (push) Failing after 1m42s
Add IT-One AI agent template, eval gate, and deployment skeleton
2026-08-21 12:14:55 +02:00

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]