Uses of Interface
org.springframework.ai.chat.messages.Message
Package
Description
Chat client.
Provides the API for chat client advisors.
-
Uses of Message in org.springframework.ai.bedrock
Modifier and TypeMethodDescriptionprotected String
MessageToPromptConverter.messageToString
(Message message) -
Uses of Message in org.springframework.ai.chat.client
Modifier and TypeMethodDescriptionModifier and TypeMethodDescription -
Uses of Message in org.springframework.ai.chat.client.advisor.api
Modifier and TypeMethodDescriptionAdvisedRequest.messages()
Returns the value of themessages
record component.Modifier and TypeMethodDescriptionAdvisedRequest.Builder.withMessages
(List<Message> messages) Set the messages. -
Uses of Message in org.springframework.ai.chat.memory
Modifier and TypeMethodDescriptionModifier and TypeMethodDescriptionvoid
default void
-
Uses of Message in org.springframework.ai.chat.messages
Modifier and TypeClassDescriptionclass
The AbstractMessage class is an abstract implementation of the Message interface.class
Lets the generative know the content was generated as a response to the user.class
A message of the type 'system' passed as input.class
The ToolResponseMessage class represents a message with a function content in a chat application.class
A message of the type 'user' passed as input Messages with the user role are from the end-user or developer. -
Uses of Message in org.springframework.ai.chat.model
Modifier and TypeMethodDescriptionAbstractToolCallSupport.buildToolCallConversation
(List<Message> previousMessages, AssistantMessage assistantMessage, ToolResponseMessage toolResponseMessage) ToolContext.getToolCallHistory()
Returns the tool call history from the context map.AbstractToolCallSupport.handleToolCalls
(Prompt prompt, ChatResponse response) Modifier and TypeMethodDescriptionAbstractToolCallSupport.buildToolCallConversation
(List<Message> previousMessages, AssistantMessage assistantMessage, ToolResponseMessage toolResponseMessage) -
Uses of Message in org.springframework.ai.chat.prompt
Modifier and TypeMethodDescriptionAssistantPromptTemplate.createMessage()
AssistantPromptTemplate.createMessage
(Map<String, Object> model) PromptTemplate.createMessage()
PromptTemplate.createMessage
(List<Media> mediaList) PromptTemplate.createMessage
(Map<String, Object> model) PromptTemplateMessageActions.createMessage()
PromptTemplateMessageActions.createMessage
(List<Media> mediaList) PromptTemplateMessageActions.createMessage
(Map<String, Object> model) SystemPromptTemplate.createMessage()
SystemPromptTemplate.createMessage
(Map<String, Object> model) Modifier and TypeMethodDescriptionChatPromptTemplate.createMessages()
ChatPromptTemplate.createMessages
(Map<String, Object> model) PromptTemplateChatActions.createMessages()
PromptTemplateChatActions.createMessages
(Map<String, Object> model) Prompt.getInstructions()
-
Uses of Message in org.springframework.ai.model.function
Modifier and TypeMethodDescriptionFunctionCallingHelper.buildToolCallConversation
(List<Message> previousMessages, AssistantMessage assistantMessage, ToolResponseMessage toolResponseMessage) FunctionCallingHelper.handleToolCalls
(Prompt prompt, ChatResponse response) Modifier and TypeMethodDescriptionFunctionCallingHelper.buildToolCallConversation
(List<Message> previousMessages, AssistantMessage assistantMessage, ToolResponseMessage toolResponseMessage) -
Uses of Message in org.springframework.ai.watsonx.utils
Modifier and TypeMethodDescriptionprotected String
MessageToPromptConverter.messageToString
(Message message)