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

Method constructor

frontend/src/api/chat.ts:361–373  ·  view source on GitHub ↗
(
    start_time?: Date | string,
    finish_time?: Date | string,
    duration?: number | undefined,
    total_tokens?: number | undefined,
    steps?: Array<ChatLogHistoryItem> | undefined
  )

Source from the content-addressed store, hash-verified

359 steps: Array<ChatLogHistoryItem> | undefined
360 )
361 constructor(
362 start_time?: Date | string,
363 finish_time?: Date | string,
364 duration?: number | undefined,
365 total_tokens?: number | undefined,
366 steps?: Array<ChatLogHistoryItem> | undefined
367 ) {
368 this.start_time = getDate(start_time)
369 this.finish_time = getDate(finish_time)
370 this.duration = duration
371 this.total_tokens = total_tokens
372 this.steps = steps ? steps : []
373 }
374}
375
376const toChatLogHistoryItem = (data?: any): any | undefined => {

Callers

nothing calls this directly

Calls 1

getDateFunction · 0.90

Tested by

no test coverage detected