MCPcopy Index your code
hub / github.com/dataease/SQLBot / toChatLogHistoryItemList

Function toChatLogHistoryItemList

frontend/src/api/chat.ts:392–401  ·  view source on GitHub ↗
(list: any = [])

Source from the content-addressed store, hash-verified

390}
391
392const toChatLogHistoryItemList = (list: any = []): ChatLogHistoryItem[] => {
393 const records: Array<ChatLogHistoryItem> = []
394 for (let i = 0; i < list.length; i++) {
395 const record = toChatLogHistoryItem(list[i])
396 if (record) {
397 records.push(record)
398 }
399 }
400 return records
401}
402
403export const chatApi = {
404 toChatInfo: (data?: any): ChatInfo | undefined => {

Callers 1

chat.tsFile · 0.85

Calls 2

toChatLogHistoryItemFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected