Uses of Interface
org.springframework.ai.chat.messages.Message
Packages that use Message
Package
Description
-
Uses of Message in org.springframework.ai.chat.memory
Methods in org.springframework.ai.chat.memory that return types with arguments of type MessageModifier and TypeMethodDescriptionChatMemoryRepository.findByConversationId(String conversationId) InMemoryChatMemoryRepository.findByConversationId(String conversationId) Get the messages in the chat memory for the specified conversation.Methods in org.springframework.ai.chat.memory with parameters of type MessageModifier and TypeMethodDescriptiondefault voidSave the specified message in the chat memory for the specified conversation.Method parameters in org.springframework.ai.chat.memory with type arguments of type MessageModifier and TypeMethodDescriptionvoidSave the specified messages in the chat memory for the specified conversation.voidvoidReplaces all the existing messages for the given conversation ID with the provided messages.void -
Uses of Message in org.springframework.ai.chat.messages
Classes in org.springframework.ai.chat.messages that implement MessageModifier and TypeClassDescriptionclassThe AbstractMessage class is an abstract implementation of the Message interface.classLets the generative know the content was generated as a response to the user.classA message of the type 'system' passed as input.classThe ToolResponseMessage class represents a message with a function content in a chat application.classA 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
Methods in org.springframework.ai.chat.model that return types with arguments of type MessageModifier and TypeMethodDescriptionToolContext.getToolCallHistory()Returns the tool call history from the context map.Methods in org.springframework.ai.chat.model with parameters of type Message -
Uses of Message in org.springframework.ai.chat.prompt
Methods in org.springframework.ai.chat.prompt that return MessageModifier and TypeMethodDescriptionAssistantPromptTemplate.createMessage()AssistantPromptTemplate.createMessage(Map<String, Object> model) PromptTemplate.createMessage()PromptTemplate.createMessage(List<org.springframework.ai.content.Media> mediaList) PromptTemplate.createMessage(Map<String, Object> additionalVariables) PromptTemplateMessageActions.createMessage()PromptTemplateMessageActions.createMessage(List<org.springframework.ai.content.Media> mediaList) PromptTemplateMessageActions.createMessage(Map<String, Object> model) SystemPromptTemplate.createMessage()SystemPromptTemplate.createMessage(Map<String, Object> model) Methods in org.springframework.ai.chat.prompt that return types with arguments of type MessageModifier and TypeMethodDescriptionChatPromptTemplate.createMessages()ChatPromptTemplate.createMessages(Map<String, Object> model) PromptTemplateChatActions.createMessages()PromptTemplateChatActions.createMessages(Map<String, Object> model) Prompt.getInstructions()Methods in org.springframework.ai.chat.prompt with parameters of type MessageMethod parameters in org.springframework.ai.chat.prompt with type arguments of type MessageConstructors in org.springframework.ai.chat.prompt with parameters of type MessageConstructor parameters in org.springframework.ai.chat.prompt with type arguments of type Message -
Uses of Message in org.springframework.ai.model.tool
Methods in org.springframework.ai.model.tool that return types with arguments of type MessageModifier and TypeMethodDescriptionDefaultToolExecutionResult.conversationHistory()Returns the value of theconversationHistoryrecord component.ToolExecutionResult.conversationHistory()The history of messages exchanged during the conversation, including the tool execution result.Method parameters in org.springframework.ai.model.tool with type arguments of type MessageModifier and TypeMethodDescriptionDefaultToolExecutionResult.Builder.conversationHistory(List<Message> conversationHistory) Constructor parameters in org.springframework.ai.model.tool with type arguments of type MessageModifierConstructorDescriptionDefaultToolExecutionResult(List<Message> conversationHistory, boolean returnDirect) Creates an instance of aDefaultToolExecutionResultrecord class.