MCPcopy Create free account
hub / github.com/dataease/SQLBot / ChatLogHistoryItem

Class ChatLogHistoryItem

backend/apps/chat/models/chat_model.py:195–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193
194
195class ChatLogHistoryItem(BaseModel):
196 start_time: Optional[datetime] = None
197 finish_time: Optional[datetime] = None
198 duration: Optional[float] = None # 耗时字段(单位:秒)
199 total_tokens: Optional[int] = None # token总消耗
200 operate: Optional[str] = None
201 local_operation: Optional[bool] = False
202 message: Optional[str | dict | list] = None
203 error: Optional[bool] = False
204
205
206class ChatLogHistory(BaseModel):

Callers 1

get_chat_log_historyFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected