Class PromptMessage
java.lang.Object
org.apache.juneau.bean.mcp.v20260728.PromptMessage
Single message line inside
GetPromptResult.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMessage content blocks.getRole()Message role.setContent(Content value) Sets the message content.Sets the message role.
-
Constructor Details
-
PromptMessage
public PromptMessage()
-
-
Method Details
-
getRole
Message role.- Returns:
- The role, or
nullif not set.
-
setRole
Sets the message role.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getContent
Message content blocks.- Returns:
- The content, or
nullif not set.
-
setContent
Sets the message content.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-