AS AgentScopeAPI 手册 / API Reference

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.

返回Returns String
运行标识。the run ID
源码Source io/agentscope/core/studio/pojo/PushMessageRequest.java:55–57

getReplyId

public String getReplyId()

获取回复标识用于此消息。

Gets the reply ID for this message.

返回Returns String
返回字符串结果。the reply ID, or null if this is not a reply
源码Source io/agentscope/core/studio/pojo/PushMessageRequest.java:64–66

getName

public String getName()

获取名称。

Gets the agent name that produced this message.

返回Returns String
智能体名称。the agent name
源码Source io/agentscope/core/studio/pojo/PushMessageRequest.java:73–75

getRole

public String getRole()

获取角色。

Gets the role of the message sender.

返回Returns String
返回字符串结果。the role (e.g., "assistant", "user")
源码Source io/agentscope/core/studio/pojo/PushMessageRequest.java:82–84

getMsg

public Msg getMsg()

获取消息内容。

Gets the message content.

返回Returns Msg
消息对象。the message object
源码Source io/agentscope/core/studio/pojo/PushMessageRequest.java:91–93

builder

public static Builder builder()
static

返回构建器实例。

Returns the builder.

返回Returns 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.

基于官方固定版本源码静态生成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.