AS AgentScopeAPI 手册 / API Reference

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
freshboolean
执行最新相关操作。
true if the session is still valid for reuse; false if it should be rolled over
dailyResetAtMsLong
执行 `dailyResetAtMs` 方法。
the daily reset boundary timestamp (null if daily reset is not configured)
idleExpiresAtMsLong
执行 `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:25

dailyResetAtMs

Long dailyResetAtMs

执行 dailyResetAtMs 方法。

the daily reset boundary timestamp (null if daily reset is not configured)

源码Source io/agentscope/harness/coding/session/SessionFreshness.java:25

idleExpiresAtMs

Long idleExpiresAtMs

执行 idleExpiresAtMs 方法。

the idle expiry timestamp (null if idle reset is not configured)

源码Source io/agentscope/harness/coding/session/SessionFreshness.java:25
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.