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 UserMessageModifier and TypeMethodDescriptionPrompt.toUserMessage()
Convert this prompt to a UserMessage.Prompt.toUserMessage
(String userName) Convert this prompt to a UserMessage with specified userName. -
Uses of UserMessage in dev.langchain4j.rag
Methods in dev.langchain4j.rag that return UserMessageModifier and TypeMethodDescriptionDefaultRetrievalAugmentor.augment
(UserMessage userMessage, Metadata metadata) Deprecated.RetrievalAugmentor.augment
(UserMessage userMessage, Metadata metadata) Deprecated.Use/implementRetrievalAugmentor.augment(AugmentationRequest)
instead.Methods in dev.langchain4j.rag with parameters of type UserMessageModifier and TypeMethodDescriptionDefaultRetrievalAugmentor.augment
(UserMessage userMessage, Metadata metadata) Deprecated.RetrievalAugmentor.augment
(UserMessage userMessage, Metadata metadata) Deprecated.Use/implementRetrievalAugmentor.augment(AugmentationRequest)
instead. -
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) Deprecated.Use/implementContentInjector.inject(List, ChatMessage)
instead.DefaultContentInjector.inject
(List<Content> contents, UserMessage userMessage) Deprecated.useDefaultContentInjector.inject(List, ChatMessage)
instead.Methods in dev.langchain4j.rag.content.injector with parameters of type UserMessageModifier and TypeMethodDescriptionprotected Prompt
DefaultContentInjector.createPrompt
(UserMessage userMessage, List<Content> contents) Deprecated.implement/overrideDefaultContentInjector.createPrompt(ChatMessage, List)
instead.ContentInjector.inject
(List<Content> contents, UserMessage userMessage) Deprecated.Use/implementContentInjector.inject(List, ChatMessage)
instead.DefaultContentInjector.inject
(List<Content> contents, UserMessage userMessage) Deprecated.useDefaultContentInjector.inject(List, ChatMessage)
instead. -
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) -
Uses of UserMessage in dev.langchain4j.service.tool
Methods in dev.langchain4j.service.tool that return UserMessageConstructors in dev.langchain4j.service.tool with parameters of type UserMessage
DefaultRetrievalAugmentor.augment(AugmentationRequest)
instead.