Class AssistantMessage
java.lang.Object
org.springframework.ai.prompt.messages.AbstractMessage
org.springframework.ai.prompt.messages.AssistantMessage
- All Implemented Interfaces:
Message
Lets the model know the content was generated as a response to the user. This role
indicates messages that the model has previously generated in the conversation. By
including assistant messages in the series, you provide context to the model about
prior exchanges in the conversation.
-
Field Summary
Fields inherited from class org.springframework.ai.prompt.messages.AbstractMessage
content, messageType, properties
-
Constructor Summary
ConstructorDescriptionAssistantMessage
(String content) AssistantMessage
(String content, Map<String, Object> properties) -
Method Summary
Methods inherited from class org.springframework.ai.prompt.messages.AbstractMessage
getContent, getMessageType, getMessageTypeValue, getProperties