mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
fix(session): normalize CreatedAt in SessionManager AddFullMessage/SetHistory
This commit is contained in:
@@ -732,7 +732,11 @@ func visibleAssistantToolArgsPreview(
|
||||
return utils.VisibleToolCallArgumentsPreview(tc, toolFeedbackMaxArgsLength)
|
||||
}
|
||||
|
||||
func visibleAssistantToolMessages(toolCalls []providers.ToolCall, modelName string, createdAt *time.Time) []sessionChatMessage {
|
||||
func visibleAssistantToolMessages(
|
||||
toolCalls []providers.ToolCall,
|
||||
modelName string,
|
||||
createdAt *time.Time,
|
||||
) []sessionChatMessage {
|
||||
if len(toolCalls) == 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user