MessageView
public record MessageView(String id, String role, String name, String timestamp, String text)
源码Source
io/agentscope/spring/boot/admin/dto/MessageView.java:24–40承载消息 View数据的记录类型。位于 io.agentscope.spring.boot.admin.dto 包。核心成员包括 id、role、name、timestamp、text、of。
Slim projection of a io.agentscope.core.message.Msg for admin listings. Avoids leaking
internal content-block hierarchies through the admin surface.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
id | String | 执行标识相关操作。 Performs the id operation. |
role | String | 执行角色相关操作。 Performs the role operation. |
name | String | 执行名称相关操作。 Performs the name operation. |
timestamp | String | 执行时间戳相关操作。 Performs the timestamp operation. |
text | String | 执行文本相关操作。 Performs the text operation. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static MessageView of(Msg msg)static | 创建并返回实例。 Creates and returns an instance. |
记录组件详情Record Component Detail
id
String id执行标识相关操作。
Performs the id operation.
源码Source
io/agentscope/spring/boot/admin/dto/MessageView.java:24–40role
String role执行角色相关操作。
Performs the role operation.
源码Source
io/agentscope/spring/boot/admin/dto/MessageView.java:24–40name
String name执行名称相关操作。
Performs the name operation.
源码Source
io/agentscope/spring/boot/admin/dto/MessageView.java:24–40timestamp
String timestamp执行时间戳相关操作。
Performs the timestamp operation.
源码Source
io/agentscope/spring/boot/admin/dto/MessageView.java:24–40text
String text执行文本相关操作。
Performs the text operation.
源码Source
io/agentscope/spring/boot/admin/dto/MessageView.java:24–40方法详情Method Detail
of
public static MessageView of(Msg msg)
static
创建并返回实例。
Creates and returns an instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
msg | Msg | 消息(类型 `Msg`)。The msg. |
MessageView返回MessageView。Returns message view.
源码Source
io/agentscope/spring/boot/admin/dto/MessageView.java:26–39