Uses of Class
dev.langchain4j.model.chat.response.ChatResponse
Packages that use ChatResponse
Package
Description
-
Uses of ChatResponse in dev.langchain4j.guardrail
Methods in dev.langchain4j.guardrail that return ChatResponseModifier and TypeMethodDescriptionChatExecutor.execute()
Execute a chat requestChatExecutor.execute
(List<ChatMessage> chatMessages) Executes a chat request using the provided chat messagesOutputGuardrailRequest.responseFromLLM()
Returns the response from the LLM.Methods in dev.langchain4j.guardrail with parameters of type ChatResponseModifier and TypeMethodDescriptionOutputGuardrailRequest.Builder.responseFromLLM
(ChatResponse responseFromLLM) Sets the response from the LLM. -
Uses of ChatResponse in dev.langchain4j.internal
Methods in dev.langchain4j.internal with parameters of type ChatResponseModifier and TypeMethodDescriptionstatic void
InternalStreamingChatResponseHandlerUtils.onCompleteResponse
(StreamingChatResponseHandler handler, ChatResponse completeResponse) -
Uses of ChatResponse in dev.langchain4j.model.chat
Methods in dev.langchain4j.model.chat that return ChatResponseModifier and TypeMethodDescriptiondefault ChatResponse
ChatModel.chat
(ChatMessage... messages) default ChatResponse
ChatModel.chat
(ChatRequest chatRequest) This is the main API to interact with the chat model.default ChatResponse
ChatModel.chat
(List<ChatMessage> messages) default ChatResponse
ChatModel.doChat
(ChatRequest chatRequest) DisabledChatModel.doChat
(ChatRequest chatRequest) -
Uses of ChatResponse in dev.langchain4j.model.chat.listener
Methods in dev.langchain4j.model.chat.listener that return ChatResponseConstructors in dev.langchain4j.model.chat.listener with parameters of type ChatResponseModifierConstructorDescriptionChatModelResponseContext
(ChatResponse chatResponse, ChatRequest chatRequest, ModelProvider modelProvider, 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.Constructors in dev.langchain4j.model.chat.response with parameters of type ChatResponse -
Uses of ChatResponse in dev.langchain4j.observability.api.event
Methods in dev.langchain4j.observability.api.event that return ChatResponseModifier and TypeMethodDescriptionAiServiceResponseReceivedEvent.AiServiceResponseReceivedEventBuilder.response()
AiServiceResponseReceivedEvent.response()
Retrieves the chat response from the AI Service invocation event.Methods in dev.langchain4j.observability.api.event with parameters of type ChatResponseModifier and TypeMethodDescriptionAiServiceResponseReceivedEvent.AiServiceResponseReceivedEventBuilder.response
(ChatResponse response) Sets the chat response. -
Uses of ChatResponse in dev.langchain4j.observability.event
Methods in dev.langchain4j.observability.event that return ChatResponse