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.model.anthropic.internal.client
Method parameters in dev.langchain4j.model.anthropic.internal.client with type arguments of type AiMessageModifier and TypeMethodDescriptionabstract void
AnthropicClient.createMessage
(AnthropicCreateMessageRequest request, StreamingResponseHandler<AiMessage> handler) void
DefaultAnthropicClient.createMessage
(AnthropicCreateMessageRequest request, StreamingResponseHandler<AiMessage> handler) -
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.bedrock
Methods in dev.langchain4j.model.bedrock that return types with arguments of type AiMessageModifier and TypeMethodDescriptionBedrockAnthropicMessageChatModel.generate
(List<ChatMessage> messages) Deprecated, for removal: This API element is subject to removal in a future version.BedrockMistralAiChatModel.generate
(List<ChatMessage> messages) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of AiMessage in dev.langchain4j.model.bedrock.internal
Methods in dev.langchain4j.model.bedrock.internal that return types with arguments of type AiMessageModifier and TypeMethodDescriptionAbstractBedrockChatModel.generate
(List<ChatMessage> messages) AbstractBedrockChatModel.toAiMessage
(T result) Method parameters in dev.langchain4j.model.bedrock.internal with type arguments of type AiMessageModifier and TypeMethodDescriptionprotected ChatModelResponse
AbstractSharedBedrockChatModel.createModelListenerResponse
(String responseId, String responseModel, Response<AiMessage> response) -
Uses of AiMessage in dev.langchain4j.model.chat.listener
Methods in dev.langchain4j.model.chat.listener that return AiMessageModifier and TypeMethodDescriptionChatModelResponse.aiMessage()
Deprecated, for removal: This API element is subject to removal in a future version.Methods in dev.langchain4j.model.chat.listener with parameters of type AiMessageModifier and TypeMethodDescriptionConstructors in dev.langchain4j.model.chat.listener with parameters of type AiMessageModifierConstructorDescriptionChatModelResponse
(String id, String model, TokenUsage tokenUsage, FinishReason finishReason, AiMessage aiMessage) Deprecated, for removal: This API element is subject to removal in a future version. -
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.client
Method parameters in dev.langchain4j.model.mistralai.internal.client with type arguments of type AiMessageModifier and TypeMethodDescriptionvoid
DefaultMistralAiClient.streamingChatCompletion
(MistralAiChatCompletionRequest request, StreamingResponseHandler<AiMessage> handler) abstract void
MistralAiClient.streamingChatCompletion
(MistralAiChatCompletionRequest request, StreamingResponseHandler<AiMessage> handler) -
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
Methods in dev.langchain4j.model.openai that return AiMessageModifier and TypeMethodDescriptionstatic AiMessage
InternalOpenAiHelper.aiMessageFrom
(ChatCompletionResponse response) Methods in dev.langchain4j.model.openai that return types with arguments of type AiMessageModifier and TypeMethodDescriptionInternalOpenAiHelper.convertResponse
(ChatResponse chatResponse) -
Uses of AiMessage in dev.langchain4j.service.output
Method parameters in dev.langchain4j.service.output with type arguments of type AiMessage