From 25d8d4c8c43182b1c01b239a49c800b861172a37 Mon Sep 17 00:00:00 2001 From: daniel24lee Date: Wed, 20 Aug 2025 23:47:43 -0400 Subject: [PATCH] Update AutoManagedChatMemory.swift --- .../Sources/ChatAPIService/Memory/AutoManagedChatMemory.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tool/Sources/ChatAPIService/Memory/AutoManagedChatMemory.swift b/Tool/Sources/ChatAPIService/Memory/AutoManagedChatMemory.swift index 5460fb00..8cd00f2e 100644 --- a/Tool/Sources/ChatAPIService/Memory/AutoManagedChatMemory.swift +++ b/Tool/Sources/ChatAPIService/Memory/AutoManagedChatMemory.swift @@ -10,10 +10,10 @@ public enum AutoManagedChatMemoryActor: GlobalActor { } protocol AutoManagedChatMemoryStrategy { - func countToken(_ message: ChatMessage) async -> Int + func countToken(_ message: ChatMessage) async } -/// A memory that automatically manages the history according to max tokens and max message count. +/// A memory that automatically manages the history according to no max tokens and no max message count. public actor AutoManagedChatMemory: ChatMemory { public struct ComposableMessages { public var systemPromptMessage: ChatMessage