AS AgentScopeAPI 手册 / API Reference

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
idString
执行标识相关操作。
Performs the id operation.
roleString
执行角色相关操作。
Performs the role operation.
nameString
执行名称相关操作。
Performs the name operation.
timestampString
执行时间戳相关操作。
Performs the timestamp operation.
textString
执行文本相关操作。
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–40

role

String role

执行角色相关操作。

Performs the role operation.

源码Source io/agentscope/spring/boot/admin/dto/MessageView.java:24–40

name

String name

执行名称相关操作。

Performs the name operation.

源码Source io/agentscope/spring/boot/admin/dto/MessageView.java:24–40

timestamp

String timestamp

执行时间戳相关操作。

Performs the timestamp operation.

源码Source io/agentscope/spring/boot/admin/dto/MessageView.java:24–40

text

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
msgMsg消息(类型 `Msg`)。The msg.
返回Returns MessageView
返回MessageView。Returns message view.
源码Source io/agentscope/spring/boot/admin/dto/MessageView.java:26–39
基于官方固定版本源码静态生成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.