MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / getDictFilePath

Function getDictFilePath

packages/node-runtime/src/nlp/dict-manager.ts:25–27  ·  view source on GitHub ↗
(nlpDir: string, dictId: string)

Source from the content-addressed store, hash-verified

23]
24
25function getDictFilePath(nlpDir: string, dictId: string): string {
26 return path.join(nlpDir, `${dictId}.dict`)
27}
28
29export function isDictDownloaded(nlpDir: string, dictId: string): boolean {
30 return fs.existsSync(getDictFilePath(nlpDir, dictId))

Callers 5

isDictDownloadedFunction · 0.85
getDictListFunction · 0.85
loadDictBufferFunction · 0.85
downloadDictFunction · 0.85
deleteDictFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected