chore(agent): fix gci formatting in loop

This commit is contained in:
mosir 2026-03-05 10:13:34 +08:00
parent 2ad43dbd3c
commit c263cd207f

View file

@ -1155,6 +1155,7 @@ func areAllToolCallsMessage(calls []providers.ToolCall) bool {
} }
return true return true
} }
// maybeSummarize triggers summarization if the session history exceeds thresholds. // maybeSummarize triggers summarization if the session history exceeds thresholds.
func (al *AgentLoop) maybeSummarize(agent *AgentInstance, sessionKey, channel, chatID string) { func (al *AgentLoop) maybeSummarize(agent *AgentInstance, sessionKey, channel, chatID string) {
newHistory := agent.Sessions.GetHistory(sessionKey) newHistory := agent.Sessions.GetHistory(sessionKey)