MCPcopy Create free account
hub / github.com/PromtEngineer/localGPT / getSessionDocuments

Method getSessionDocuments

src/lib/api.ts:430–436  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

428 }
429
430 async getSessionDocuments(sessionId: string): Promise<{ files: string[]; file_count: number; session: ChatSession }> {
431 const resp = await fetch(`${API_BASE_URL}/sessions/${sessionId}/documents`);
432 if (!resp.ok) {
433 throw new Error(`Failed to fetch session documents: ${resp.status}`);
434 }
435 return resp.json();
436 }
437
438 // ---------- Index endpoints ----------
439

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected