MessagePage
public record MessagePage( String sessionId, List<MessageItem> messages, int offset, int limit, int total)
io/agentscope/extensions/controlplane/model/MessagePage.java:30–90承载消息页码数据的记录类型。位于 io.agentscope.extensions.controlplane.model 包。核心成员包括 sessionId、messages、offset、limit、total、of。
A page of Level-3 full history, served by GET /agentscope/sessions/{id}/messages.
Unlike the Level-4 context, this includes messages already compacted away, so operators can audit what the agent originally saw.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
sessionId | String | 执行会话标识相关操作。 Performs the session id operation. |
messages | List<MessageItem> | 执行消息相关操作。 Performs the messages operation. |
offset | int | 执行偏移量相关操作。 Performs the offset operation. |
limit | int | 执行限制相关操作。 Performs the limit operation. |
total | int | 执行总数相关操作。 Performs the total operation. |
嵌套类摘要Nested Class Summary
| 类Class | 类型Kind | 说明Description |
|---|---|---|
MessageItem | 记录record | 承载消息条目数据的记录类型。 One full-content history entry. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static MessagePage of(String sessionId, List<MessageItem> all, int offset, int limit)static | 创建并返回实例。 Slices `all` into a page and reports the untruncated total. |
public Map<String, Object> toJsonMap() | 返回到 JSON 映射。 Returns the to json map. |
记录组件详情Record Component Detail
sessionId
String sessionId执行会话标识相关操作。
Performs the session id operation.
io/agentscope/extensions/controlplane/model/MessagePage.java:30–90messages
List<MessageItem> messages执行消息相关操作。
Performs the messages operation.
io/agentscope/extensions/controlplane/model/MessagePage.java:30–90offset
int offset执行偏移量相关操作。
Performs the offset operation.
io/agentscope/extensions/controlplane/model/MessagePage.java:30–90limit
int limit执行限制相关操作。
Performs the limit operation.
io/agentscope/extensions/controlplane/model/MessagePage.java:30–90total
int total执行总数相关操作。
Performs the total operation.
io/agentscope/extensions/controlplane/model/MessagePage.java:30–90方法详情Method Detail
of
public static MessagePage of(String sessionId, List<MessageItem> all, int offset, int limit)
创建并返回实例。
Slices all into a page and reports the untruncated total.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
sessionId | String | 会话标识(类型 `String`)。The session id. |
all | List<MessageItem> | 所有(类型 `List`)。The all. |
offset | int | 偏移量(类型 `int`)。The offset. |
limit | int | 数量上限(类型 `int`)。The limit. |
MessagePageio/agentscope/extensions/controlplane/model/MessagePage.java:34–40toJsonMap
public Map<String, Object> toJsonMap()
返回到 JSON 映射。
Returns the to json map.
Map<String, Object>io/agentscope/extensions/controlplane/model/MessagePage.java:42–54嵌套类详情Nested Class Detail
MessageItem
public record MessageItem( int seq, String role, String content, String toolName, Map<String, Object> toolInput, String toolOutput, long occurredAt)承载消息条目数据的记录类型。位于 io.agentscope.extensions.controlplane.model 包。核心成员包括 seq、role、content、toolName、toolInput、toolOutput。
One full-content history entry.