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

Function list_builtin_projects

ms_agent/cli/run.py:24–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22
23
24def list_builtin_projects():
25 try:
26 root = importlib_resources.files('ms_agent').joinpath('projects')
27 if not root.exists():
28 return []
29 return sorted([p.name for p in root.iterdir() if p.is_dir()])
30 except Exception as e:
31 # Fallback: don't let help crash just because a resource is unavailable.
32 logger.warning(f'Could not list built-in projects: {e}')
33 return []
34
35
36def project_help_text():

Callers 2

project_help_textFunction · 0.85
define_argsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected