PushMessageRequest
public class PushMessageRequest
源码Source
io/agentscope/core/studio/pojo/PushMessageRequest.java:26–135推送消息请求,对智能体行为进行评测、追踪与可观测性分析。位于 io.agentscope.core.studio.pojo 包。核心成员包括 getRunId、getReplyId、getName、getRole、getMsg、builder。
Request payload for pushing a message to Studio.
This is sent via POST /trpc/pushMessage to display messages in the Studio UI.
嵌套类摘要Nested Class Summary
| 类Class | 类型Kind | 说明Description |
|---|---|---|
Builder | 类class | 构建器,用于构建并配置目标实例。 A class in io.agentscope.core.studio.pojo that evaluates agent behaviour and records tracing and telemetry data. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getRunId() | 获取运行标识用于此消息。 Gets the run ID for this message. |
public String getReplyId() | 获取回复标识用于此消息。 Gets the reply ID for this message. |
public String getName() | 获取名称。 Gets the agent name that produced this message. |
public String getRole() | 获取角色。 Gets the role of the message sender. |
public Msg getMsg() | 获取消息内容。 Gets the message content. |
public static Builder builder()static | 返回构建器实例。 Returns the builder. |
方法详情Method Detail
getRunId
public String getRunId()
获取运行标识用于此消息。
Gets the run ID for this message.
String运行标识。the run ID
源码Source
io/agentscope/core/studio/pojo/PushMessageRequest.java:55–57getReplyId
public String getReplyId()
获取回复标识用于此消息。
Gets the reply ID for this message.
String返回字符串结果。the reply ID, or null if this is not a reply
源码Source
io/agentscope/core/studio/pojo/PushMessageRequest.java:64–66getName
public String getName()
获取名称。
Gets the agent name that produced this message.
String智能体名称。the agent name
源码Source
io/agentscope/core/studio/pojo/PushMessageRequest.java:73–75getRole
public String getRole()
获取角色。
Gets the role of the message sender.
String返回字符串结果。the role (e.g., "assistant", "user")
源码Source
io/agentscope/core/studio/pojo/PushMessageRequest.java:82–84getMsg
public Msg getMsg()
获取消息内容。
Gets the message content.
Msg消息对象。the message object
源码Source
io/agentscope/core/studio/pojo/PushMessageRequest.java:91–93builder
public static Builder builder()
static
返回构建器实例。
Returns the builder.
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/core/studio/pojo/PushMessageRequest.java:95–97嵌套类详情Nested Class Detail
Builder
public static class Builder构建器,用于构建并配置目标实例。位于 io.agentscope.core.studio.pojo 包。核心成员包括 runId、replyId、name、role、msg、build。
A class in io.agentscope.core.studio.pojo that evaluates agent behaviour and records tracing and telemetry data. Declared in io.agentscope.core.studio.pojo.