AS AgentScopeAPI 手册 / API Reference

FlushMode

public enum FlushMode
源码Source io/agentscope/harness/agent/memory/MemoryConfig.java:67–74

定义刷新模式相关取值的枚举。位于 io.agentscope.harness.agent.memory 包。核心成员包括 ALWAYS、NEVER、THROTTLED。

Strategy for the per-call flush hook. See FlushTrigger.

枚举常量摘要Enum Constant Summary

常量Constant说明Description
ALWAYS
执行 `ALWAYS` 方法。
Flush after every agent call.
NEVER
执行 `NEVER` 方法。
Disable per-call flush entirely (offload still runs).
THROTTLED
执行 `THROTTLED` 方法。
Flush at most once per `FlushTrigger#minGap()`.

枚举常量详情Enum Constant Detail

ALWAYS

ALWAYS
staticfinal

执行 ALWAYS 方法。

Flush after every agent call.

源码Source io/agentscope/harness/agent/memory/MemoryConfig.java:69

NEVER

NEVER
staticfinal

执行 NEVER 方法。

Disable per-call flush entirely (offload still runs).

源码Source io/agentscope/harness/agent/memory/MemoryConfig.java:71

THROTTLED

THROTTLED
staticfinal

执行 THROTTLED 方法。

Flush at most once per FlushTrigger#minGap().

源码Source io/agentscope/harness/agent/memory/MemoryConfig.java:73
基于官方固定版本源码静态生成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.