Skip to content

Commit

Permalink
Update transforms.py
Browse files Browse the repository at this point in the history
  • Loading branch information
comfsrt authored Feb 24, 2025
1 parent 8c9f591 commit 6a538c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autogen/agentchat/contrib/capabilities/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6a538c4

Please sign in to comment.