包package
io.agentscope.harness.coding.sessionio.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.
类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. |