AS AgentScopeAPI 手册 / API Reference

RecoveryContext

@JsonIgnoreProperties(ignoreUnknown = true) public record RecoveryContext( String previousSessionId, int restartCount, List<CompletedTask> completedTasks, InterruptedTask interruptedTask, List<RecentMessage> recentMessages)
源码Source io/agentscope/harness/agent/team/TeamContext.java:49–55

承载 Recovery 上下文数据的记录类型。位于 io.agentscope.harness.agent.team 包。核心成员包括 previousSessionId、restartCount、completedTasks、interruptedTask、recentMessages。

Injected when a member session is recovering after a crash/reschedule.

记录组件摘要Record Component Summary

组件Component类型Type说明Description
previousSessionIdString
执行上一个会话标识相关操作。
Performs the previous session id operation.
restartCountint
执行 `restartCount` 方法。
Performs the restart count operation.
completedTasksList<CompletedTask>
执行已完成任务相关操作。
Performs the completed tasks operation.
interruptedTaskInterruptedTask
执行 `interruptedTask` 方法。
Performs the interrupted task operation.
recentMessagesList<RecentMessage>
执行 `recentMessages` 方法。
Performs the recent messages operation.

记录组件详情Record Component Detail

previousSessionId

String previousSessionId

执行上一个会话标识相关操作。

Performs the previous session id operation.

源码Source io/agentscope/harness/agent/team/TeamContext.java:49–55

restartCount

int restartCount

执行 restartCount 方法。

Performs the restart count operation.

源码Source io/agentscope/harness/agent/team/TeamContext.java:49–55

completedTasks

List<CompletedTask> completedTasks

执行已完成任务相关操作。

Performs the completed tasks operation.

源码Source io/agentscope/harness/agent/team/TeamContext.java:49–55

interruptedTask

InterruptedTask interruptedTask

执行 interruptedTask 方法。

Performs the interrupted task operation.

源码Source io/agentscope/harness/agent/team/TeamContext.java:49–55

recentMessages

List<RecentMessage> recentMessages

执行 recentMessages 方法。

Performs the recent messages operation.

源码Source io/agentscope/harness/agent/team/TeamContext.java:49–55
基于官方固定版本源码静态生成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.