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

Method getLatestSummary

packages/node-runtime/src/ai/chats.ts:954–957  ·  view source on GitHub ↗
(aiChatId: string)

Source from the content-addressed store, hash-verified

952 }
953
954 getLatestSummary(aiChatId: string): AIMessage | null {
955 const row = [...this.getActivePathRows(aiChatId)].reverse().find((message) => message.role === 'summary')
956 return row ? this.parseMessageRow(row) : null
957 }
958
959 getMessagesAfterSummary(
960 aiChatId: string,

Callers 4

checkAndCompressFunction · 0.80
compressor.test.tsFile · 0.80
getLatestSummaryFunction · 0.80

Calls 2

getActivePathRowsMethod · 0.95
parseMessageRowMethod · 0.95

Tested by

no test coverage detected