agentscope-ai / agentscope-ai/agentscope-java

[Bug]:PostgresAgentStateStore存储记忆有问题

Aperta
#2,327 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
area/core/memory area/extensions bug
Lingua principale
Java
Stelle
5.6k
Fork
1.3k
Merge medio
4g 12h
PR unite (30g)
77

Descrizione

private String slotSessionId(SandboxIsolationKey key) {
IsolationScope scope = key.getScope();
return switch (scope) {
case SESSION -> "sandbox/session/" + key.getValue();
case USER -> "sandbox/user/" + agentId + "/" + key.getValue();
case AGENT -> "sandbox/agent/" + agentId;
case GLOBAL -> "sandbox/global";
};
}

protected void validateSessionId(String sessionId) {
if (sessionId == null || sessionId.trim().isEmpty()) {
throw new IllegalArgumentException("AgentStateStore ID cannot be null or empty");
}
if (sessionId.contains("/") || sessionId.contains("\\")) {
throw new IllegalArgumentException("AgentStateStore ID cannot contain path separators");
}
if (sessionId.length() > 255) {
throw new IllegalArgumentException("AgentStateStore ID cannot exceed 255 characters");
}
}
存在冲突

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.