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

Method constructor

frontend/src/api/chat.ts:324–343  ·  view source on GitHub ↗
(
    start_time?: Date | string,
    finish_time?: Date | string,
    duration?: number | undefined,
    total_tokens?: number | undefined,
    operate?: string | undefined,
    local_operation?: boolean | undefined,
    error?: boolean | undefined,
    message?: any | undefined
  )

Source from the content-addressed store, hash-verified

322 message: any | undefined
323 )
324 constructor(
325 start_time?: Date | string,
326 finish_time?: Date | string,
327 duration?: number | undefined,
328 total_tokens?: number | undefined,
329 operate?: string | undefined,
330 local_operation?: boolean | undefined,
331 error?: boolean | undefined,
332 message?: any | undefined
333 ) {
334 this.start_time = getDate(start_time)
335 this.finish_time = getDate(finish_time)
336 this.duration = duration
337 this.total_tokens = total_tokens
338 this.operate_key = operate
339 this.operate = t('chat.log.' + operate)
340 this.local_operation = !!local_operation
341 this.error = !!error
342 this.message = message
343 }
344}
345
346export class ChatLogHistory {

Callers

nothing calls this directly

Calls 2

getDateFunction · 0.90
tFunction · 0.50

Tested by

no test coverage detected