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

Method parse

ms_agent/utils/parser_utils.py:47–49  ·  view source on GitHub ↗

Parse imports from code content

(self, code_content: str)

Source from the content-addressed store, hash-verified

45
46 @abstractmethod
47 def parse(self, code_content: str) -> List[ImportInfo]:
48 """Parse imports from code content"""
49 pass
50
51 def _resolve_path(self, module_path: str) -> Optional[str]:
52 """Resolve module path to file path (to be overridden by subclasses)"""

Callers 1

parse_importsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected