MCPcopy
hub / github.com/OpenBMB/UltraRAG / encodePromptPath

Function encodePromptPath

ui/frontend/src/shared/api/prompts.ts:9–14  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

7};
8
9function encodePromptPath(path: string): string {
10 return path
11 .split("/")
12 .map((segment) => encodeURIComponent(segment))
13 .join("/");
14}
15
16export async function fetchPrompts(): Promise<PromptFileMeta[]> {
17 const payload = await httpRequest<unknown>("/api/prompts");

Callers 4

fetchPromptContentFunction · 0.85
savePromptContentFunction · 0.85
deletePromptFunction · 0.85
renamePromptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected