agentscope-ai / agentscope-ai/agentscope-java
[Bug]:PostgresAgentStateStore存储记忆有问题
- Ngôn ngữ chính
- Java
- Star
- 5.6k
- Fork
- 1.3k
- Merge trung bình
- 4 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 77
Mô tả
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");
}
}
存在冲突
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.