agentscope-ai / agentscope-ai/agentscope-java
[Bug]:PostgresAgentStateStore存储记忆有问题
- 主要语言
- Java
- 星标
- 5.6k
- 派生
- 1.3k
- 平均合并
- 4 天 12 小时
- 30 天内合并 PR
- 77
描述
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");
}
}
存在冲突
贡献指南
评估
这个 Issue 还没有评估数据。