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

Function getPrompt

cognee-frontend/src/modules/prompts/storage.ts:65–67  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

63}
64
65export function getPrompt(id: string): Prompt | undefined {
66 return loadPrompts().find((p) => p.id === id);
67}
68
69export function upsertPrompt(prompt: Prompt): void {
70 const prompts = loadPrompts();

Callers 2

PromptEditorPageFunction · 0.90
handleSaveFunction · 0.90

Calls 2

loadPromptsFunction · 0.85
findMethod · 0.80

Tested by

no test coverage detected