Uses of Class
org.springframework.ai.chat.model.ChatResponse
Packages that use ChatResponse
Package
Description
-
Uses of ChatResponse in org.springframework.ai.chat.model
Methods in org.springframework.ai.chat.model that return ChatResponseMethods in org.springframework.ai.chat.model that return types with arguments of type ChatResponseModifier and TypeMethodDescriptionreactor.core.publisher.Flux<ChatResponse>MessageAggregator.aggregate(reactor.core.publisher.Flux<ChatResponse> fluxChatResponse, Consumer<ChatResponse> onAggregationComplete) default reactor.core.publisher.Flux<ChatResponse>reactor.core.publisher.Flux<ChatResponse>Methods in org.springframework.ai.chat.model with parameters of type ChatResponseMethod parameters in org.springframework.ai.chat.model with type arguments of type ChatResponseModifier and TypeMethodDescriptionreactor.core.publisher.Flux<ChatResponse>MessageAggregator.aggregate(reactor.core.publisher.Flux<ChatResponse> fluxChatResponse, Consumer<ChatResponse> onAggregationComplete) reactor.core.publisher.Flux<ChatResponse>MessageAggregator.aggregate(reactor.core.publisher.Flux<ChatResponse> fluxChatResponse, Consumer<ChatResponse> onAggregationComplete) -
Uses of ChatResponse in org.springframework.ai.model.tool
Methods in org.springframework.ai.model.tool with parameters of type ChatResponseModifier and TypeMethodDescriptionDefaultToolCallingManager.executeToolCalls(Prompt prompt, ChatResponse chatResponse) ToolCallingManager.executeToolCalls(Prompt prompt, ChatResponse chatResponse) Execute the tool calls requested by the model.default booleanToolExecutionEligibilityChecker.isToolCallResponse(@Nullable ChatResponse chatResponse) Determines if the response is a tool call message response. -
Uses of ChatResponse in org.springframework.ai.support
Methods in org.springframework.ai.support that return ChatResponseModifier and TypeMethodDescriptionstatic @Nullable ChatResponseUsageCalculator.accumulateResponseUsage(@Nullable ChatResponse currentChatResponse, @Nullable ChatResponse accumulatedChatResponse) Folds the usage of the current chat response into the previously accumulatedChatResponse.static ChatResponseUsageCalculator.withUsage(ChatResponse chatResponse, Usage usage) Returns a copy of the given chat response with its usage replaced by the providedUsage, preserving all other response metadata.Methods in org.springframework.ai.support with parameters of type ChatResponseModifier and TypeMethodDescriptionstatic @Nullable ChatResponseUsageCalculator.accumulateResponseUsage(@Nullable ChatResponse currentChatResponse, @Nullable ChatResponse accumulatedChatResponse) Folds the usage of the current chat response into the previously accumulatedChatResponse.static UsageUsageCalculator.getCumulativeUsage(Usage currentUsage, @Nullable ChatResponse previousChatResponse) Accumulate usage tokens from the previous chat response to the current usage tokens.static ChatResponseUsageCalculator.withUsage(ChatResponse chatResponse, Usage usage) Returns a copy of the given chat response with its usage replaced by the providedUsage, preserving all other response metadata.