Class AbstractMessage
java.lang.Object
org.springframework.ai.prompt.messages.AbstractMessage
- All Implemented Interfaces:
Message
- Direct Known Subclasses:
AssistantMessage
,ChatMessage
,FunctionMessage
,SystemMessage
,UserMessage
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected MessageType
Additional options for the message to influence the response, not a model map. -
Constructor Summary
ModifierConstructorDescriptionprotected
protected
AbstractMessage
(MessageType messageType, String content) protected
AbstractMessage
(MessageType messageType, String content, Map<String, Object> messageProperties) protected
AbstractMessage
(MessageType messageType, org.springframework.core.io.Resource resource) protected
AbstractMessage
(MessageType messageType, org.springframework.core.io.Resource resource, Map<String, Object> messageProperties) -
Method Summary
Modifier and TypeMethodDescription
-
Field Details
-
-
properties
Additional options for the message to influence the response, not a model map. -
messageType
-
-
Constructor Details
-
AbstractMessage
protected AbstractMessage() -
AbstractMessage
-
AbstractMessage
protected AbstractMessage(MessageType messageType, String content, Map<String, Object> messageProperties) -
AbstractMessage
-
AbstractMessage
protected AbstractMessage(MessageType messageType, org.springframework.core.io.Resource resource, Map<String, Object> messageProperties)
-
-
Method Details
-
getContent
- Specified by:
getContent
in interfaceMessage
-
getProperties
- Specified by:
getProperties
in interfaceMessage
-
getMessageType
- Specified by:
getMessageType
in interfaceMessage
-
getMessageTypeValue
- Specified by:
getMessageTypeValue
in interfaceMessage
-