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

Class ChatLogHistory

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

Source from the content-addressed store, hash-verified

204
205
206class ChatLogHistory(BaseModel):
207 start_time: Optional[datetime] = None
208 finish_time: Optional[datetime] = None
209 duration: Optional[float] = None # 耗时字段(单位:秒)
210 total_tokens: Optional[int] = None # token总消耗
211 steps: List[ChatLogHistoryItem | dict] = []
212
213
214class AiModelQuestion(BaseModel):

Callers 1

get_chat_log_historyFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected