MCPcopy Index your code
hub / github.com/grapeot/devin.cursorrules / format_results

Function format_results

tools/search_engine.py:41–47  ·  view source on GitHub ↗

Format and print search results.

(results)

Source from the content-addressed store, hash-verified

39 raise
40
41def format_results(results):
42 """Format and print search results."""
43 for i, r in enumerate(results, 1):
44 print(f"\n=== Result {i} ===")
45 print(f"URL: {r.get('href', 'N/A')}")
46 print(f"Title: {r.get('title', 'N/A')}")
47 print(f"Snippet: {r.get('body', 'N/A')}")
48
49def search(query, max_results=10, max_retries=3):
50 """

Callers 1

searchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected