Uses of Class
dev.langchain4j.model.chat.response.ChatResponse
Packages that use ChatResponse
Package
Description
-
Uses of ChatResponse in dev.langchain4j.model.azure
Methods in dev.langchain4j.model.azure that return ChatResponse -
Uses of ChatResponse in dev.langchain4j.model.bedrock
Methods in dev.langchain4j.model.bedrock that return ChatResponse -
Uses of ChatResponse in dev.langchain4j.model.chat
Methods in dev.langchain4j.model.chat that return ChatResponseModifier and TypeMethodDescriptiondefault ChatResponse
ChatLanguageModel.chat
(ChatMessage... messages) default ChatResponse
ChatLanguageModel.chat
(ChatRequest chatRequest) This is the main API to interact with the chat model.default ChatResponse
ChatLanguageModel.chat
(List<ChatMessage> messages) default ChatResponse
ChatLanguageModel.doChat
(ChatRequest chatRequest) -
Uses of ChatResponse in dev.langchain4j.model.chat.listener
Methods in dev.langchain4j.model.chat.listener that return ChatResponseMethods in dev.langchain4j.model.chat.listener with parameters of type ChatResponseModifier and TypeMethodDescriptionstatic void
ListenersUtil.onResponse
(ChatResponse chatResponse, ChatRequest chatRequest, Map<Object, Object> attributes, List<ChatModelListener> listeners) Constructors in dev.langchain4j.model.chat.listener with parameters of type ChatResponseModifierConstructorDescriptionChatModelResponseContext
(ChatResponse chatResponse, ChatRequest chatRequest, Map<Object, Object> attributes) -
Uses of ChatResponse in dev.langchain4j.model.chat.response
Methods in dev.langchain4j.model.chat.response that return ChatResponseMethods in dev.langchain4j.model.chat.response with parameters of type ChatResponseModifier and TypeMethodDescriptionvoid
StreamingChatResponseHandler.onCompleteResponse
(ChatResponse completeResponse) Invoked when the model has finished streaming a response. -
Uses of ChatResponse in dev.langchain4j.model.googleai
Methods in dev.langchain4j.model.googleai that return ChatResponse -
Uses of ChatResponse in dev.langchain4j.model.ollama
Methods in dev.langchain4j.model.ollama that return ChatResponse -
Uses of ChatResponse in dev.langchain4j.model.openai
Methods in dev.langchain4j.model.openai that return ChatResponseModifier and TypeMethodDescriptionOpenAiStreamingResponseBuilder.build()
OpenAiChatModel.doChat
(ChatRequest chatRequest) Methods in dev.langchain4j.model.openai with parameters of type ChatResponseModifier and TypeMethodDescriptionInternalOpenAiHelper.convertResponse
(ChatResponse chatResponse) -
Uses of ChatResponse in dev.langchain4j.service
Method parameters in dev.langchain4j.service with type arguments of type ChatResponseModifier and TypeMethodDescriptionAiServiceTokenStream.onCompleteResponse
(Consumer<ChatResponse> completionHandler) TokenStream.onCompleteResponse
(Consumer<ChatResponse> completeResponseHandler) The provided handler will be invoked when a language model finishes streaming a response. -
Uses of ChatResponse in dev.langchain4j.service.tool
Methods in dev.langchain4j.service.tool that return ChatResponseModifier and TypeMethodDescriptionToolExecutionResult.chatResponse()
Returns the value of thechatResponse
record component.Methods in dev.langchain4j.service.tool with parameters of type ChatResponseModifier and TypeMethodDescriptionToolService.executeInferenceAndToolsLoop
(ChatResponse chatResponse, ChatRequestParameters parameters, List<ChatMessage> messages, ChatLanguageModel chatModel, ChatMemory chatMemory, Object memoryId, Map<String, ToolExecutor> toolExecutors) Constructors in dev.langchain4j.service.tool with parameters of type ChatResponseModifierConstructorDescriptionToolExecutionResult
(ChatResponse chatResponse, List<ToolExecution> toolExecutions, TokenUsage tokenUsageAccumulator) Creates an instance of aToolExecutionResult
record class.