MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / getHistoryForAgent

Function getHistoryForAgent

apps/desktop/main/ai/chats.ts:139–141  ·  view source on GitHub ↗
(aiChatId: string, maxMessages?: number, leafMessageId?: string | null)

Source from the content-addressed store, hash-verified

137}
138
139export function getHistoryForAgent(aiChatId: string, maxMessages?: number, leafMessageId?: string | null) {
140 return getManager().getHistoryForAgent(aiChatId, maxMessages, leafMessageId)
141}
142
143export function addSummaryMessage(
144 aiChatId: string,

Callers 1

loadHistoryMethod · 0.90

Calls 2

getHistoryForAgentMethod · 0.80
getManagerFunction · 0.70

Tested by

no test coverage detected