Uses of Class
com.hw.langchain.schema.BaseMessage
Package
Description
-
Uses of BaseMessage in com.hw.langchain.base.language
Modifier and TypeMethodDescriptiondefault BaseMessage
BaseLanguageModel.predictMessages
(List<BaseMessage> messages) Predict message from messages.BaseLanguageModel.predictMessages
(List<BaseMessage> messages, List<String> stop) Predict message from messages.Modifier and TypeMethodDescriptiondefault reactor.core.publisher.Flux<BaseMessage>
BaseLanguageModel.asyncPredictMessages
(List<BaseMessage> messages, List<String> stop) Predict message from messages async.Modifier and TypeMethodDescriptiondefault reactor.core.publisher.Flux<BaseMessage>
BaseLanguageModel.asyncPredictMessages
(List<BaseMessage> messages, List<String> stop) Predict message from messages async.default BaseMessage
BaseLanguageModel.predictMessages
(List<BaseMessage> messages) Predict message from messages.BaseLanguageModel.predictMessages
(List<BaseMessage> messages, List<String> stop) Predict message from messages. -
Uses of BaseMessage in com.hw.langchain.chat.models.base
Modifier and TypeMethodDescriptionBaseChatModel.call
(List<BaseMessage> messages) BaseChatModel.call
(List<BaseMessage> messages, List<String> stop) BaseChatModel.predictMessages
(List<BaseMessage> messages, List<String> stop) Modifier and TypeMethodDescriptionBaseChatModel.call
(List<BaseMessage> messages) BaseChatModel.call
(List<BaseMessage> messages, List<String> stop) BaseChatModel.generate
(List<List<BaseMessage>> messages) Top Level callabstract ChatResult
BaseChatModel.innerGenerate
(List<BaseMessage> messages, List<String> stop) Top Level callBaseChatModel.predictMessages
(List<BaseMessage> messages, List<String> stop) -
Uses of BaseMessage in com.hw.langchain.chat.models.openai
Modifier and TypeMethodDescriptionstatic BaseMessage
OpenAI.convertOpenAiToLangChain
(ChatMessage message) Modifier and TypeMethodDescriptionstatic ChatMessage
OpenAI.convertLangChainToOpenAI
(BaseMessage message) Modifier and TypeMethodDescriptionChatOpenAI.convertMessages
(List<BaseMessage> messages) ChatOpenAI.innerGenerate
(List<BaseMessage> messages, List<String> stop) -
Uses of BaseMessage in com.hw.langchain.llms.base
Modifier and TypeMethodDescriptionBaseLLM.predictMessages
(List<BaseMessage> messages, List<String> stop) Modifier and TypeMethodDescriptionBaseLLM.predictMessages
(List<BaseMessage> messages, List<String> stop) -
Uses of BaseMessage in com.hw.langchain.memory.buffer
Modifier and TypeMethodDescriptionprotected List<BaseMessage>
ConversationBufferLimitedMemory.getMemoryMessages()
protected List<BaseMessage>
ConversationBufferMemory.getMemoryMessages()
BufferWindowMemoryMessagePicker.pickMemoryMessage
(List<BaseMessage> memoryMessages) MemoryMessagePicker.pickMemoryMessage
(List<BaseMessage> memoryMessages) pick up memory messages as neededModifier and TypeMethodDescriptionBufferWindowMemoryMessagePicker.pickMemoryMessage
(List<BaseMessage> memoryMessages) MemoryMessagePicker.pickMemoryMessage
(List<BaseMessage> memoryMessages) pick up memory messages as needed -
Uses of BaseMessage in com.hw.langchain.memory.chat.message.histories.database
Modifier and TypeMethodDescriptionDataBaseChatMessageHistory.getMessages()
ChatMessageRepository.loadMessage
(String sessionId) Loads all historical chat messages for the given sessionId.Modifier and TypeMethodDescriptionvoid
DataBaseChatMessageHistory.addMessage
(BaseMessage message) void
ChatMessageRepository.saveMessage
(String sessionId, BaseMessage baseMessage) Saves a chat message to the specified sessionId. -
Uses of BaseMessage in com.hw.langchain.memory.chat.message.histories.database.redis
Modifier and TypeMethodDescriptionRedisChatMessageHistory.getMessages()
RedisChatMessageRepository.loadMessage
(String sessionId) Modifier and TypeMethodDescriptionvoid
RedisChatMessageHistory.addMessage
(BaseMessage message) void
RedisChatMessageRepository.saveMessage
(String sessionId, BaseMessage baseMessage) -
Uses of BaseMessage in com.hw.langchain.memory.chat.message.histories.in.memory
-
Uses of BaseMessage in com.hw.langchain.prompts.base
-
Uses of BaseMessage in com.hw.langchain.prompts.chat
Modifier and TypeMethodDescriptionabstract List<BaseMessage>
BaseChatPromptTemplate.formatMessages
(Map<String, Object> kwargs) Format kwargs into a list of messages.abstract List<BaseMessage>
BaseMessagePromptTemplate.formatMessages
(Map<String, Object> kwargs) To messages.BaseStringMessagePromptTemplate.formatMessages
(Map<String, Object> kwargs) ChatPromptTemplate.formatMessages
(Map<String, Object> kwargs) MessagesPlaceholder.formatMessages
(Map<String, Object> kwargs) ChatPromptValue.toMessages()
-
Uses of BaseMessage in com.hw.langchain.schema
Modifier and TypeClassDescriptionclass
Type of message that is spoken by the AI.class
Type of message with arbitrary speaker.class
class
Type of message that is spoken by the human.class
Type of message that is a system message.Modifier and TypeMethodDescriptionabstract void
BaseChatMessageHistory.addMessage
(BaseMessage message) Add a self-created message to the storeModifier and TypeMethodDescriptionstatic String
Schema.getBufferString
(List<BaseMessage> messages) static String
Schema.getBufferString
(List<BaseMessage> messages, String humanPrefix, String aiPrefix) Get buffer string of messages.