Skip to content

Commit dd5967c

Browse files
committed
Add logging for context and token limits in history pruning function.
1 parent 23a931a commit dd5967c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

refact-agent/engine/src/scratchpads/chat_utils_limit_history.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ fn process_compression_stage(
136136
message_filter: impl Fn(usize, &ChatMessage, i32) -> bool,
137137
sort_by_size: bool,
138138
) -> Result<(i32, i32, bool), String> {
139+
tracing::info!("n_ctx={n_ctx}, max_new_tokens={max_new_tokens}");
139140
tracing::info!("STAGE: {}", stage_name);
140141
let (mut occupied_tokens, tokens_limit) =
141142
recalculate_token_limits(token_counts, tools_description_tokens, n_ctx, max_new_tokens, model_name);

0 commit comments

Comments
 (0)