MCPcopy Index your code
hub / github.com/OpenBMB/ChatDev / search_load_all

Function search_load_all

functions/function_calling/deep_research.py:100–121  ·  view source on GitHub ↗

Load all saved search results.

(
    # concise: Annotated[bool, ParamMeta(description="If True, only show concise information")],
    _context: Dict[str, Any] | None = None,
)

Source from the content-addressed store, hash-verified

98
99
100def search_load_all(
101 # concise: Annotated[bool, ParamMeta(description="If True, only show concise information")],
102 _context: Dict[str, Any] | None = None,
103) -> str:
104 """
105 Load all saved search results.
106 """
107 ctx = FileToolContext(_context)
108 search_file, _ = _get_files(ctx)
109 search_lock, _ = _get_locks(ctx)
110
111 with FileLock(search_lock):
112 data = _load_search_results(search_file)
113
114 if not data:
115 return "No search results found."
116
117 results = []
118 for url, content in data.items():
119 results.append(_format_search_result(url, content, concise=True))
120
121 return "\n\n".join(results)
122
123
124def search_load_by_url(

Callers

nothing calls this directly

Calls 6

FileToolContextClass · 0.90
_get_filesFunction · 0.85
_get_locksFunction · 0.85
_load_search_resultsFunction · 0.85
_format_search_resultFunction · 0.85
itemsMethod · 0.80

Tested by

no test coverage detected