MCPcopy Create free account
hub / github.com/modelscope/ms-agent / get_search_config

Function get_search_config

ms_agent/tools/search_engine.py:43–47  ·  view source on GitHub ↗
(config_file: str)

Source from the content-addressed store, hash-verified

41
42
43def get_search_config(config_file: str):
44 config_file = os.path.abspath(os.path.expanduser(config_file))
45 config = load_base_config(config_file)
46 search_config = config.get('SEARCH_ENGINE', {})
47 return search_config
48
49
50def load_base_config(file_path: str) -> Dict[str, Any]:

Callers 1

get_web_search_toolFunction · 0.85

Calls 2

load_base_configFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected