Uses of Class
dev.langchain4j.data.message.AiMessage
Packages that use AiMessage
Package
Description
-
Uses of AiMessage in dev.langchain4j.data.message
Methods in dev.langchain4j.data.message that return AiMessageModifier and TypeMethodDescriptionstatic AiMessage
AiMessage.aiMessage
(ToolExecutionRequest... toolExecutionRequests) Create a newAiMessage
with the given tool execution requests.static AiMessage
Create a newAiMessage
with the given text.static AiMessage
AiMessage.aiMessage
(String text, List<ToolExecutionRequest> toolExecutionRequests) Create a newAiMessage
with the given text and tool execution requests.static AiMessage
AiMessage.aiMessage
(List<ToolExecutionRequest> toolExecutionRequests) Create a newAiMessage
with the given tool execution requests.AiMessage.Builder.build()
static AiMessage
AiMessage.from
(ToolExecutionRequest... toolExecutionRequests) Create a newAiMessage
with the given tool execution requests.static AiMessage
Create a newAiMessage
with the given text.static AiMessage
AiMessage.from
(String text, List<ToolExecutionRequest> toolExecutionRequests) Create a newAiMessage
with the given text and tool execution requests.static AiMessage
AiMessage.from
(List<ToolExecutionRequest> toolExecutionRequests) Create a newAiMessage
with the given tool execution requests. -
Uses of AiMessage in dev.langchain4j.guardrail
Methods in dev.langchain4j.guardrail with parameters of type AiMessageModifier and TypeMethodDescriptionprotected String
JsonExtractorOutputGuardrail.getInvalidJsonMessage
(AiMessage aiMessage, String json) Generates a message indicating that the provided JSON is invalid.protected String
JsonExtractorOutputGuardrail.getInvalidJsonReprompt
(AiMessage aiMessage, String json) Generates a reprompt message indicating that the provided JSON is invalid.protected OutputGuardrailResult
JsonExtractorOutputGuardrail.invokeInvalidJson
(AiMessage aiMessage, String json) default OutputGuardrailResult
Validates the response from the LLM. -
Uses of AiMessage in dev.langchain4j.model.anthropic.internal.mapper
Methods in dev.langchain4j.model.anthropic.internal.mapper that return AiMessageModifier and TypeMethodDescriptionstatic AiMessage
AnthropicMapper.toAiMessage
(List<AnthropicContent> contents) -
Uses of AiMessage in dev.langchain4j.model.chat.response
Methods in dev.langchain4j.model.chat.response that return AiMessageMethods in dev.langchain4j.model.chat.response with parameters of type AiMessageModifier and TypeMethodDescription -
Uses of AiMessage in dev.langchain4j.model.input
Methods in dev.langchain4j.model.input that return AiMessage -
Uses of AiMessage in dev.langchain4j.model.mistralai.internal.mapper
Methods in dev.langchain4j.model.mistralai.internal.mapper that return AiMessageModifier and TypeMethodDescriptionstatic AiMessage
MistralAiMapper.aiMessageFrom
(MistralAiChatCompletionResponse response) -
Uses of AiMessage in dev.langchain4j.model.openai.internal
Methods in dev.langchain4j.model.openai.internal that return AiMessageModifier and TypeMethodDescriptionstatic AiMessage
OpenAiUtils.aiMessageFrom
(ChatCompletionResponse response) Methods in dev.langchain4j.model.openai.internal that return types with arguments of type AiMessage