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

Method getSessions

src/services/session-index/fetch.ts:87–94  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

85 }
86
87 async getSessions(sessionId: string): Promise<ChatSessionItem[]> {
88 return getDataAdapter().pluginQuery<ChatSessionItem>(
89 sessionId,
90 `SELECT id, start_ts as startTs, end_ts as endTs, message_count as messageCount, summary, ${FIRST_MESSAGE_ID_SUBQUERY}
91 FROM segment ORDER BY start_ts ASC`,
92 []
93 )
94 }
95
96 async getByTimeRange(sessionId: string, startTs: number, endTs: number): Promise<ChatSessionItem[]> {
97 return getDataAdapter().pluginQuery<ChatSessionItem>(

Callers

nothing calls this directly

Calls 2

getDataAdapterFunction · 0.70
pluginQueryMethod · 0.65

Tested by

no test coverage detected