Uses of Class
dev.langchain4j.data.message.UserMessage
Packages that use UserMessage
Package
Description
-
Uses of UserMessage in dev.langchain4j.agentic.agent
Methods in dev.langchain4j.agentic.agent that return UserMessage -
Uses of UserMessage in dev.langchain4j.agentic.internal
Methods in dev.langchain4j.agentic.internal that return UserMessage -
Uses of UserMessage in dev.langchain4j.data.message
Methods in dev.langchain4j.data.message that return UserMessageModifier and TypeMethodDescriptionUserMessage.Builder.build()static UserMessageCreate aUserMessagefrom contents.static UserMessageCreate aUserMessagefrom a text.static UserMessageCreate aUserMessagefrom a name and contents.static UserMessageCreate aUserMessagefrom a name and a text.static UserMessageCreate aUserMessagefrom a name and contents.static UserMessageCreate aUserMessagefrom contents.static UserMessageUserMessage.userMessage(Content... contents) Create aUserMessagefrom contents.static UserMessageUserMessage.userMessage(String text) Create aUserMessagefrom a text.static UserMessageUserMessage.userMessage(String name, Content... contents) Create aUserMessagefrom a name and contents.static UserMessageUserMessage.userMessage(String name, String text) Create aUserMessagefrom a name and a text.static UserMessageUserMessage.userMessage(String name, List<Content> contents) Create aUserMessagefrom a name and contents.static UserMessageUserMessage.userMessage(List<Content> contents) Create aUserMessagefrom 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 theUserMessagecomputed from the combination of the originalUserMessagein theInputGuardrailRequestand this resultMethods in dev.langchain4j.guardrail with parameters of type UserMessageModifier and TypeMethodDescriptionInputGuardrailRequest.Builder.userMessage(UserMessage userMessage) Sets the user message.default InputGuardrailResultInputGuardrail.validate(UserMessage userMessage) Validates theuser messagethat 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.observability.api.event
Methods in dev.langchain4j.observability.api.event that return UserMessageModifier and TypeMethodDescriptionInputGuardrailExecutedEvent.rewrittenUserMessage()Retrieves a rewritten user message if a successful rewritten result exists.AiServiceStartedEvent.AiServiceStartedEventBuilder.userMessage()AiServiceStartedEvent.userMessage()Retrieves the user message associated with the invocation.Methods in dev.langchain4j.observability.api.event with parameters of type UserMessageModifier and TypeMethodDescriptionAiServiceStartedEvent.AiServiceStartedEventBuilder.userMessage(UserMessage userMessage) Sets the user message. -
Uses of UserMessage in dev.langchain4j.observability.event
Methods in dev.langchain4j.observability.event that return UserMessageModifier and TypeMethodDescriptionDefaultInputGuardrailExecutedEvent.rewrittenUserMessage()DefaultAiServiceStartedEvent.userMessage() -
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 request) Executes the input guardrails associated with the given method and parameters, and retrieves a modified or validatedUserMessagebased 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(InvocationContext invocationContext, UserMessage userMessage) ToolProviderRequest.Builder.userMessage(UserMessage userMessage) Constructors in dev.langchain4j.service.tool with parameters of type UserMessage