MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / getDataAdapter

Function getDataAdapter

src/services/session-index/fetch.ts:22–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20import { fetchWithAuth } from '../utils/http'
21
22function getDataAdapter(): DataAdapter {
23 return getRegisteredAdapter<DataAdapter>('data')
24}
25
26// 取会话首条消息 ID,供时间线点击跳转到对应消息位置使用(与 core getChatSessionList 保持一致)
27const FIRST_MESSAGE_ID_SUBQUERY = `(SELECT mc.message_id FROM message_context mc

Callers 4

getStatsMethod · 0.70
getSessionsMethod · 0.70
getByTimeRangeMethod · 0.70
getRecentMethod · 0.70

Calls 1

getRegisteredAdapterFunction · 0.90

Tested by

no test coverage detected