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

Function toChatLogHistoryItem

frontend/src/api/chat.ts:376–390  ·  view source on GitHub ↗
(data?: any)

Source from the content-addressed store, hash-verified

374}
375
376const toChatLogHistoryItem = (data?: any): any | undefined => {
377 if (!data) {
378 return undefined
379 }
380 return new ChatLogHistoryItem(
381 data.start_time,
382 data.finish_time,
383 data.duration,
384 data.total_tokens,
385 data.operate,
386 data.local_operation,
387 data.error,
388 data.message
389 )
390}
391
392const toChatLogHistoryItemList = (list: any = []): ChatLogHistoryItem[] => {
393 const records: Array<ChatLogHistoryItem> = []

Callers 1

toChatLogHistoryItemListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected