类 UserMessage

java.lang.Object
com.ajaxjs.mcp.message.UserMessage
所有已实现的接口:
ChatMessage

public class UserMessage extends Object implements ChatMessage
Represents a message from a user, typically an end user of the application.
Depending on the supported modalities (text, image, audio, video, etc.) of the model, user messages can contain either a single text (a String) or multiple Contents, which can be either TextContent,
引用无效
ImageContent
,
引用无效
AudioContent
,
引用无效
VideoContent
,
引用无效
PdfFileContent
, or
引用无效
TextFileContent
.
Optionally, user message can contain a name of the user. Be aware that not all models support names in UserMessage.