Uses of Class
dev.langchain4j.data.message.UserMessage
Packages that use UserMessage
Package
Description
-
Uses of UserMessage in dev.langchain4j.data.message
Methods in dev.langchain4j.data.message that return UserMessageModifier and TypeMethodDescriptionstatic UserMessage
Create aUserMessage
from contents.static UserMessage
Create aUserMessage
from a text.static UserMessage
Create aUserMessage
from a name and contents.static UserMessage
Create aUserMessage
from a name and a text.static UserMessage
Create aUserMessage
from a name and contents.static UserMessage
Create aUserMessage
from contents.static UserMessage
UserMessage.userMessage
(Content... contents) Create aUserMessage
from contents.static UserMessage
UserMessage.userMessage
(String text) Create aUserMessage
from a text.static UserMessage
UserMessage.userMessage
(String name, Content... contents) Create aUserMessage
from a name and contents.static UserMessage
UserMessage.userMessage
(String name, String text) Create aUserMessage
from a name and a text.static UserMessage
UserMessage.userMessage
(String name, List<Content> contents) Create aUserMessage
from a name and contents.static UserMessage
UserMessage.userMessage
(List<Content> contents) Create aUserMessage
from contents. -
Uses of UserMessage in dev.langchain4j.model.chat
Methods in dev.langchain4j.model.chat with parameters of type UserMessageModifier and TypeMethodDescriptiondefault int
TokenCountEstimator.estimateTokenCount
(UserMessage userMessage) Estimates the count of tokens in the specified message.default void
StreamingChatLanguageModel.generate
(UserMessage userMessage, StreamingResponseHandler<AiMessage> handler) Generates a response from the model based on a message from a user. -
Uses of UserMessage in dev.langchain4j.model.input
Methods in dev.langchain4j.model.input that return UserMessage -
Uses of UserMessage in dev.langchain4j.rag
Methods in dev.langchain4j.rag that return UserMessageModifier and TypeMethodDescriptionDefaultRetrievalAugmentor.augment
(UserMessage userMessage, Metadata metadata) RetrievalAugmentor.augment
(UserMessage userMessage, Metadata metadata) Augments the providedUserMessage
with retrieved content.Methods in dev.langchain4j.rag with parameters of type UserMessageModifier and TypeMethodDescriptionDefaultRetrievalAugmentor.augment
(UserMessage userMessage, Metadata metadata) RetrievalAugmentor.augment
(UserMessage userMessage, Metadata metadata) Augments the providedUserMessage
with retrieved content. -
Uses of UserMessage in dev.langchain4j.rag.content.injector
Methods in dev.langchain4j.rag.content.injector that return UserMessageModifier and TypeMethodDescriptionContentInjector.inject
(List<Content> contents, UserMessage userMessage) Injects givenContent
s into a givenUserMessage
.DefaultContentInjector.inject
(List<Content> contents, UserMessage userMessage) Methods in dev.langchain4j.rag.content.injector with parameters of type UserMessageModifier and TypeMethodDescriptionprotected Prompt
DefaultContentInjector.createPrompt
(UserMessage userMessage, List<Content> contents) ContentInjector.inject
(List<Content> contents, UserMessage userMessage) Injects givenContent
s into a givenUserMessage
.DefaultContentInjector.inject
(List<Content> contents, UserMessage userMessage) -
Uses of UserMessage in dev.langchain4j.rag.query
Methods in dev.langchain4j.rag.query that return UserMessageMethods in dev.langchain4j.rag.query with parameters of type UserMessageModifier and TypeMethodDescriptionstatic Metadata
Metadata.from
(UserMessage userMessage, Object chatMemoryId, List<ChatMessage> chatMemory) Constructors in dev.langchain4j.rag.query with parameters of type UserMessageModifierConstructorDescriptionMetadata
(UserMessage userMessage, Object chatMemoryId, List<ChatMessage> chatMemory)