Uses of Class
dev.langchain4j.data.message.UserMessage
Package
Description
-
Uses of UserMessage in dev.langchain4j.data.message
Modifier 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
Modifier 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
Modifier 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
Modifier and TypeMethodDescriptionDefaultRetrievalAugmentor.augment
(UserMessage userMessage, Metadata metadata) Deprecated.RetrievalAugmentor.augment
(UserMessage userMessage, Metadata metadata) Deprecated.Use/implementRetrievalAugmentor.augment(AugmentationRequest)
instead.Modifier 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
Modifier 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.Modifier 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
Modifier and TypeMethodDescriptionstatic Metadata
Metadata.from
(UserMessage userMessage, Object chatMemoryId, List<ChatMessage> chatMemory) ModifierConstructorDescriptionMetadata
(UserMessage userMessage, Object chatMemoryId, List<ChatMessage> chatMemory) -
Uses of UserMessage in dev.langchain4j.service.tool
DefaultRetrievalAugmentor.augment(AugmentationRequest)
instead.