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.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
Methods in dev.langchain4j.model.anthropic that return types with arguments of type AiMessageModifier and TypeMethodDescriptionAnthropicChatModel.generate
(List<ChatMessage> messages) AnthropicChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications) Method parameters in dev.langchain4j.model.anthropic with type arguments of type AiMessageModifier and TypeMethodDescriptionvoid
AnthropicStreamingChatModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification, StreamingResponseHandler<AiMessage> handler) void
AnthropicStreamingChatModel.generate
(List<ChatMessage> messages, StreamingResponseHandler<AiMessage> handler) void
AnthropicStreamingChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications, StreamingResponseHandler<AiMessage> handler) -
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.azure
Methods in dev.langchain4j.model.azure that return types with arguments of type AiMessageModifier and TypeMethodDescriptionAzureOpenAiChatModel.generate
(List<ChatMessage> messages) AzureOpenAiChatModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification) AzureOpenAiChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications) Method parameters in dev.langchain4j.model.azure with type arguments of type AiMessageModifier and TypeMethodDescriptionvoid
AzureOpenAiStreamingChatModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification, StreamingResponseHandler<AiMessage> handler) void
AzureOpenAiStreamingChatModel.generate
(List<ChatMessage> messages, StreamingResponseHandler<AiMessage> handler) void
AzureOpenAiStreamingChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications, StreamingResponseHandler<AiMessage> handler) -
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) BedrockAnthropicMessageChatModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification) BedrockAnthropicMessageChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications) BedrockChatModel.generate
(List<ChatMessage> messages) BedrockChatModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification) BedrockChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications) BedrockMistralAiChatModel.generate
(List<ChatMessage> messages) -
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) void
AbstractBedrockStreamingChatModel.generate
(String userMessage, StreamingResponseHandler<AiMessage> handler) void
AbstractBedrockStreamingChatModel.generate
(List<ChatMessage> messages, StreamingResponseHandler<AiMessage> handler) -
Uses of AiMessage in dev.langchain4j.model.chat
Methods in dev.langchain4j.model.chat that return types with arguments of type AiMessageModifier and TypeMethodDescriptionChatLanguageModel.generate
(ChatMessage... messages) Deprecated, for removal: This API element is subject to removal in a future version.ChatLanguageModel.generate
(List<ChatMessage> messages) Deprecated, for removal: This API element is subject to removal in a future version.please useChatLanguageModel.chat(List)
insteadChatLanguageModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification) Deprecated, for removal: This API element is subject to removal in a future version.please useChatLanguageModel.chat(ChatRequest)
instead.ChatLanguageModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications) Deprecated, for removal: This API element is subject to removal in a future version.please useChatLanguageModel.chat(ChatRequest)
instead.DisabledChatLanguageModel.generate
(ChatMessage... messages) DisabledChatLanguageModel.generate
(List<ChatMessage> messages) DisabledChatLanguageModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification) DisabledChatLanguageModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications) Method parameters in dev.langchain4j.model.chat with type arguments of type AiMessageModifier and TypeMethodDescriptionvoid
DisabledStreamingChatLanguageModel.generate
(String userMessage, StreamingResponseHandler<AiMessage> handler) void
DisabledStreamingChatLanguageModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification, StreamingResponseHandler<AiMessage> handler) void
DisabledStreamingChatLanguageModel.generate
(List<ChatMessage> messages, StreamingResponseHandler<AiMessage> handler) void
DisabledStreamingChatLanguageModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications, StreamingResponseHandler<AiMessage> handler) default void
StreamingChatLanguageModel.generate
(UserMessage userMessage, StreamingResponseHandler<AiMessage> handler) Deprecated, for removal: This API element is subject to removal in a future version.please useStreamingChatLanguageModel.chat(List, StreamingChatResponseHandler)
insteaddefault void
StreamingChatLanguageModel.generate
(String userMessage, StreamingResponseHandler<AiMessage> handler) Deprecated, for removal: This API element is subject to removal in a future version.please useStreamingChatLanguageModel.chat(String, StreamingChatResponseHandler)
insteaddefault void
StreamingChatLanguageModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification, StreamingResponseHandler<AiMessage> handler) Deprecated, for removal: This API element is subject to removal in a future version.please useStreamingChatLanguageModel.chat(ChatRequest, StreamingChatResponseHandler)
instead.void
StreamingChatLanguageModel.generate
(List<ChatMessage> messages, StreamingResponseHandler<AiMessage> handler) Deprecated, for removal: This API element is subject to removal in a future version.please useStreamingChatLanguageModel.chat(List, StreamingChatResponseHandler)
insteaddefault void
StreamingChatLanguageModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications, StreamingResponseHandler<AiMessage> handler) Deprecated, for removal: This API element is subject to removal in a future version.please useStreamingChatLanguageModel.chat(ChatRequest, StreamingChatResponseHandler)
instead. -
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.github
Methods in dev.langchain4j.model.github that return types with arguments of type AiMessageModifier and TypeMethodDescriptionGitHubModelsChatModel.generate
(List<ChatMessage> messages) GitHubModelsChatModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification) GitHubModelsChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications) Method parameters in dev.langchain4j.model.github with type arguments of type AiMessageModifier and TypeMethodDescriptionvoid
GitHubModelsStreamingChatModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification, StreamingResponseHandler<AiMessage> handler) void
GitHubModelsStreamingChatModel.generate
(List<ChatMessage> messages, StreamingResponseHandler<AiMessage> handler) void
GitHubModelsStreamingChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications, StreamingResponseHandler<AiMessage> handler) -
Uses of AiMessage in dev.langchain4j.model.googleai
Methods in dev.langchain4j.model.googleai that return types with arguments of type AiMessageModifier and TypeMethodDescriptionGoogleAiGeminiChatModel.generate
(List<ChatMessage> messages) GoogleAiGeminiChatModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification) GoogleAiGeminiChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications) Method parameters in dev.langchain4j.model.googleai with type arguments of type AiMessageModifier and TypeMethodDescriptionvoid
GoogleAiGeminiStreamingChatModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification, StreamingResponseHandler<AiMessage> handler) void
GoogleAiGeminiStreamingChatModel.generate
(List<ChatMessage> messages, StreamingResponseHandler<AiMessage> handler) void
GoogleAiGeminiStreamingChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications, StreamingResponseHandler<AiMessage> handler) -
Uses of AiMessage in dev.langchain4j.model.huggingface
Methods in dev.langchain4j.model.huggingface that return types with arguments of type AiMessage -
Uses of AiMessage in dev.langchain4j.model.input
Methods in dev.langchain4j.model.input that return AiMessage -
Uses of AiMessage in dev.langchain4j.model.jlama
Methods in dev.langchain4j.model.jlama that return types with arguments of type AiMessageModifier and TypeMethodDescriptionJlamaChatModel.generate
(List<ChatMessage> messages) JlamaChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications) Method parameters in dev.langchain4j.model.jlama with type arguments of type AiMessageModifier and TypeMethodDescriptionvoid
JlamaStreamingChatModel.generate
(List<ChatMessage> messages, StreamingResponseHandler<AiMessage> handler) void
JlamaStreamingChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications, StreamingResponseHandler<AiMessage> handler) -
Uses of AiMessage in dev.langchain4j.model.localai
Methods in dev.langchain4j.model.localai that return types with arguments of type AiMessageModifier and TypeMethodDescriptionLocalAiChatModel.generate
(List<ChatMessage> messages) LocalAiChatModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification) LocalAiChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications) Method parameters in dev.langchain4j.model.localai with type arguments of type AiMessageModifier and TypeMethodDescriptionvoid
LocalAiStreamingChatModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification, StreamingResponseHandler<AiMessage> handler) void
LocalAiStreamingChatModel.generate
(List<ChatMessage> messages, StreamingResponseHandler<AiMessage> handler) void
LocalAiStreamingChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications, StreamingResponseHandler<AiMessage> handler) -
Uses of AiMessage in dev.langchain4j.model.mistralai
Methods in dev.langchain4j.model.mistralai that return types with arguments of type AiMessageModifier and TypeMethodDescriptionMistralAiChatModel.generate
(List<ChatMessage> messages) Generates chat response based on the given list of messages.MistralAiChatModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification) Generates an AI message response based on the given list of chat messages and a tool specification.MistralAiChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications) Generates an AI message response based on the given list of chat messages and tool specifications.Method parameters in dev.langchain4j.model.mistralai with type arguments of type AiMessageModifier and TypeMethodDescriptionvoid
MistralAiStreamingChatModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification, StreamingResponseHandler<AiMessage> handler) Generates streamed token response based on the given list of messages and tool specification.void
MistralAiStreamingChatModel.generate
(List<ChatMessage> messages, StreamingResponseHandler<AiMessage> handler) Generates streamed token response based on the given list of messages.void
MistralAiStreamingChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications, StreamingResponseHandler<AiMessage> handler) Generates streamed token response based on the given list of messages and tool specifications. -
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.ollama
Methods in dev.langchain4j.model.ollama that return types with arguments of type AiMessageModifier and TypeMethodDescriptionOllamaChatModel.generate
(List<ChatMessage> messages) OllamaChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications) Method parameters in dev.langchain4j.model.ollama with type arguments of type AiMessageModifier and TypeMethodDescriptionvoid
OllamaStreamingChatModel.generate
(List<ChatMessage> messages, StreamingResponseHandler<AiMessage> handler) void
OllamaStreamingChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications, StreamingResponseHandler<AiMessage> handler) -
Uses of AiMessage in dev.langchain4j.model.openai
Methods in dev.langchain4j.model.openai that return AiMessageModifier and TypeMethodDescriptionstatic AiMessage
InternalOpenAiHelper.aiMessageFrom
(dev.ai4j.openai4j.chat.ChatCompletionResponse response) Methods in dev.langchain4j.model.openai that return types with arguments of type AiMessageModifier and TypeMethodDescriptionInternalOpenAiHelper.convertResponse
(ChatResponse chatResponse) OpenAiChatModel.generate
(List<ChatMessage> messages) OpenAiChatModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification) OpenAiChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications) Method parameters in dev.langchain4j.model.openai with type arguments of type AiMessageModifier and TypeMethodDescriptionvoid
OpenAiStreamingChatModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification, StreamingResponseHandler<AiMessage> handler) void
OpenAiStreamingChatModel.generate
(List<ChatMessage> messages, StreamingResponseHandler<AiMessage> handler) void
OpenAiStreamingChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications, StreamingResponseHandler<AiMessage> handler) -
Uses of AiMessage in dev.langchain4j.model.vertexai
Methods in dev.langchain4j.model.vertexai that return types with arguments of type AiMessageModifier and TypeMethodDescriptionVertexAiChatModel.generate
(List<ChatMessage> messages) VertexAiGeminiChatModel.generate
(List<ChatMessage> messages) VertexAiGeminiChatModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification) VertexAiGeminiChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications) Method parameters in dev.langchain4j.model.vertexai with type arguments of type AiMessageModifier and TypeMethodDescriptionvoid
VertexAiGeminiStreamingChatModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification, StreamingResponseHandler<AiMessage> handler) void
VertexAiGeminiStreamingChatModel.generate
(List<ChatMessage> messages, StreamingResponseHandler<AiMessage> handler) void
VertexAiGeminiStreamingChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications, StreamingResponseHandler<AiMessage> handler) -
Uses of AiMessage in dev.langchain4j.model.workersai
Methods in dev.langchain4j.model.workersai that return types with arguments of type AiMessageModifier and TypeMethodDescriptionWorkersAiChatModel.generate
(@NonNull ChatMessage... messages) Generates a response from the model based on a sequence of messages.WorkersAiChatModel.generate
(List<ChatMessage> messages) Generates a response from the model based on a sequence of messages.WorkersAiChatModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification) Generates a response from the model based on a list of messages and a single tool specification.WorkersAiChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications) Generates a response from the model based on a list of messages and a list of tool specifications. -
Uses of AiMessage in dev.langchain4j.service
Method parameters in dev.langchain4j.service with type arguments of type AiMessageModifier and TypeMethodDescriptionAiServiceTokenStream.onComplete
(Consumer<Response<AiMessage>> completionHandler) TokenStream.onComplete
(Consumer<Response<AiMessage>> completionHandler) Deprecated, for removal: This API element is subject to removal in a future version.please useTokenStream.onCompleteResponse(Consumer)
instead -
Uses of AiMessage in dev.langchain4j.service.output
Method parameters in dev.langchain4j.service.output with type arguments of type AiMessage
ChatLanguageModel.chat(ChatMessage...)
instead