| 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 | |
| 376 | const toChatLogHistoryItem = (data?: any): any | undefined => { |