SessionFreshness
public record SessionFreshness(boolean fresh, Long dailyResetAtMs, Long idleExpiresAtMs)
源码Source
io/agentscope/harness/coding/session/SessionFreshness.java:25承载会话 Freshness数据的记录类型。位于 io.agentscope.harness.coding.session 包。核心成员包括 fresh、dailyResetAtMs、idleExpiresAtMs。
Result of evaluating a session's freshness against a SessionResetPolicy.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
fresh | boolean | 执行最新相关操作。 true if the session is still valid for reuse; false if it should be rolled over |
dailyResetAtMs | Long | 执行 `dailyResetAtMs` 方法。 the daily reset boundary timestamp (null if daily reset is not configured) |
idleExpiresAtMs | Long | 执行 `idleExpiresAtMs` 方法。 the idle expiry timestamp (null if idle reset is not configured) |
记录组件详情Record Component Detail
fresh
boolean fresh执行最新相关操作。
true if the session is still valid for reuse; false if it should be rolled over
源码Source
io/agentscope/harness/coding/session/SessionFreshness.java:25dailyResetAtMs
Long dailyResetAtMs执行 dailyResetAtMs 方法。
the daily reset boundary timestamp (null if daily reset is not configured)
源码Source
io/agentscope/harness/coding/session/SessionFreshness.java:25idleExpiresAtMs
Long idleExpiresAtMs执行 idleExpiresAtMs 方法。
the idle expiry timestamp (null if idle reset is not configured)
源码Source
io/agentscope/harness/coding/session/SessionFreshness.java:25