agentscope-ai / agentscope-ai/agentscope-java

[Feature]: Add loop mechanism to recheck context after compression

Aberta
#856 1 comentário 0 reações 0 responsáveis Ver no GitHub
area/ext/memory enhancement
Linguagem predominante
Java
Estrelas
5.6k
Forks
1.3k
Merge médio
4d 12h
PRs com merge (30d)
77

Descrição

## Problem Description

The `compressIfNeeded()` method currently returns `true` immediately after any compression strategy succeeds, **without checking if the
context still exceeds the threshold after compression**.

## Current Behavior

```java
// Strategy 1-6 are tried sequentially
if (strategy1()) return true; // Returns immediately, no recheck
if (strategy2()) return true;
...
// All strategies failed
log.warn("All compression strategies exhausted but context still exceeds threshold");
return false;

Issue Scenarios

1. Insufficient compression: Strategy 1 compresses tool calls, but context still exceeds threshold after compression

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.