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 TypeMethodDescriptionUserMessage.Builder.build()
static 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.guardrail
Methods in dev.langchain4j.guardrail that return UserMessageModifier and TypeMethodDescriptionInputGuardrailRequest.rewriteUserMessage
(String text) InputGuardrailRequest.userMessage()
Returns the user message.InputGuardrailResult.userMessage
(InputGuardrailRequest params) Gets theUserMessage
computed from the combination of the originalUserMessage
in theInputGuardrailRequest
and this resultMethods in dev.langchain4j.guardrail with parameters of type UserMessageModifier and TypeMethodDescriptionInputGuardrailRequest.Builder.userMessage
(UserMessage userMessage) Sets the user message.default InputGuardrailResult
InputGuardrail.validate
(UserMessage userMessage) Validates theuser message
that will be sent to the LLM. -
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.service.guardrail
Methods in dev.langchain4j.service.guardrail that return UserMessageModifier and TypeMethodDescriptiondefault <MethodKey>
UserMessageGuardrailService.executeGuardrails
(MethodKey method, InputGuardrailRequest params) Executes the input guardrails associated with the given method and parameters, and retrieves a modified or validatedUserMessage
based on the result. -
Uses of UserMessage in dev.langchain4j.service.tool
Methods in dev.langchain4j.service.tool that return UserMessageMethods in dev.langchain4j.service.tool with parameters of type UserMessageModifier and TypeMethodDescriptionToolService.createContext
(Object memoryId, UserMessage userMessage) Constructors in dev.langchain4j.service.tool with parameters of type UserMessage