AS AgentScopeAPI 手册 / API Reference
包package io.agentscope.harness.coding.session

io.agentscope.harness.coding.session

package io.agentscope.harness.coding.session

io.agentscope.harness.coding.session 属于状态·记忆·会话,跨调用持久化与多租户隔离。 该包共收录 24 个公开类型。

io.agentscope.harness.coding.session belongs to the State, memory & sessions layer and contains 24 public types.

所属构件Artifacts agentscope-codingagent

类Classes

类型Type种类Kind说明Description
SessionAgentManager类class
会话智能体管理器,在多次调用之间保存和恢复会话与记忆数据。
Full session management implementation built on top of `DefaultAgentManager`.
SessionConstants类class
会话 Constants,在多次调用之间保存和恢复会话与记忆数据。
Shared constants for managed session / subagent flows.
SessionFreshnessEvaluator类class
会话 Freshness 评估器,在多次调用之间保存和恢复会话与记忆数据。
Evaluates whether a session is still "fresh" based on its last activity time and the configured `SessionResetPolicy`.
SessionStore类class
会话存储,负责持久化与读取数据。
Durable session registry backed by a JSON file (`sessions.json`).
SubagentRunRegistry类class
子智能体运行注册表,在多次调用之间保存和恢复会话与记忆数据。
In-process registry for subagent spawn / run metadata (OpenClaw `subagent-registry` analogue).

枚举Enums

类型Type种类Kind说明Description
CleanupPolicy枚举enum
定义Cleanup 策略相关取值的枚举。
Controls what happens to a session's records and transcript after the run completes.
CommandLane枚举enum
定义命令 Lane相关取值的枚举。
Scheduling lane for subagent / main work, aligned with OpenClaw gateway `CommandLane` semantics.
SessionKind枚举enum
定义会话种类相关取值的枚举。
AgentStateStore classification, matching OpenClaw session kinds.

记录Records

类型Type种类Kind说明Description
AgentManagerConfig记录record
承载智能体管理器配置数据的记录类型。
Tunable concurrency, announce behavior, session reset policy, and maintenance configuration for `SessionAgentManager`.
HistoryResult记录record
承载历史结果数据的记录类型。
Result of reading a session transcript file.
PendingCompletion记录record
承载待处理补全数据的记录类型。
Best-effort completion handoff to the requester session (OpenClaw `announce` analogue).
SendResult记录record
承载发送结果数据的记录类型。
Result of executing a prompt against a managed session.
SessionEntry记录record
承载会话条目数据的记录类型。
Internal metadata for a registered managed session (used by `SessionAgentManager`).
SessionFreshness记录record
承载会话 Freshness数据的记录类型。
Result of evaluating a session's freshness against a `SessionResetPolicy`.
SessionMaintenanceConfig记录record
用于会话存储维护的配置。
Configuration for session store maintenance.
SessionResetPolicy记录record
承载会话重置策略数据的记录类型。
Policy controlling when a session is considered "stale" and should be rolled over to a new session, mirroring OpenClaw's `resolveSessionResetPolicy`.
SessionView记录record
承载会话 View数据的记录类型。
Public view of a managed session.
SpawnResult记录record
承载 Spawn 结果数据的记录类型。
Result of registering a managed subagent session.
基于官方固定版本源码静态生成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.