MCPcopy
hub / github.com/topoteretes/cognee / getModel

Function getModel

cognee-frontend/src/modules/graphModels/storage.ts:34–36  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

32}
33
34export function getModel(id: string): GraphModel | undefined {
35 return loadModels().find((m) => m.id === id);
36}
37
38export function upsertModel(model: GraphModel): void {
39 const models = loadModels();

Callers 1

duplicateModelFunction · 0.85

Calls 2

loadModelsFunction · 0.85
findMethod · 0.80

Tested by

no test coverage detected