From 6a538c48cd3e8f5b56295bcc2e6aedd364c99440 Mon Sep 17 00:00:00 2001 From: comfsrt <155266597+comfsrt@users.noreply.github.com> Date: Mon, 24 Feb 2025 14:27:30 +0100 Subject: [PATCH] Update transforms.py --- autogen/agentchat/contrib/capabilities/transforms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogen/agentchat/contrib/capabilities/transforms.py b/autogen/agentchat/contrib/capabilities/transforms.py index c48337b06d..e1e6456cb4 100644 --- a/autogen/agentchat/contrib/capabilities/transforms.py +++ b/autogen/agentchat/contrib/capabilities/transforms.py @@ -145,7 +145,7 @@ class MessageTokenLimiter: The truncation process follows these steps in order: 1. The minimum tokens threshold (`min_tokens`) is checked (0 by default). If the total number of tokens in messages - are less than this threshold, then the messages are returned as is. In other case, the following process is applied. + is less than this threshold, then the messages are returned as is. In other case, the following process is applied. 2. Messages are processed in reverse order (newest to oldest). 3. Individual messages are truncated based on max_tokens_per_message. For multimodal messages containing both text and other types of content, only the text content is truncated.