MCPcopy Create free account
hub / github.com/angular/examples / loadHistory

Function loadHistory

dynamic-sdui-app/src/genkit-utils/flows.ts:23–25  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

21const historyStore: Record<string, MessageData[]> = {};
22
23async function loadHistory(sessionId: string): Promise<MessageData[]> {
24 return historyStore[sessionId] || [];
25}
26
27async function saveHistory(sessionId: string, history: MessageData[]) {
28 historyStore[sessionId] = history;

Callers 1

flows.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected