agentscope-ai / agentscope-ai/agentscope-java
[Bug]:PostgresAgentStateStore存储记忆有问题
- Vorherrschende Sprache
- Java
- Sterne
- 5.6k
- Forks
- 1.3k
- Ø Merge
- 4 T. 12 Std.
- Gemergte PRs (30 T.)
- 77
Beschreibung
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");
}
}
存在冲突
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.