Package io.agentscope.core.studio.pojo
Class PushMessageRequest
java.lang.Object
io.agentscope.core.studio.pojo.PushMessageRequest
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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic PushMessageRequest.Builderbuilder()io.agentscope.core.message.MsggetMsg()Gets the message content.getName()Gets the agent name that produced this message.Gets the reply ID for this message.getRole()Gets the role of the message sender.getRunId()Gets the run ID for this message.
-
Method Details
-
getRunId
Gets the run ID for this message.- Returns:
- the run ID
-
getReplyId
Gets the reply ID for this message.- Returns:
- the reply ID, or null if this is not a reply
-
getName
Gets the agent name that produced this message.- Returns:
- the agent name
-
getRole
Gets the role of the message sender.- Returns:
- the role (e.g., "assistant", "user")
-
getMsg
public io.agentscope.core.message.Msg getMsg()Gets the message content.- Returns:
- the message object
-
builder
-