Uses of Class
org.springframework.ai.chat.model.ChatResponse
Packages that use ChatResponse
Package
Description
Spring AI integration with Anthropic's Claude models using the official
Anthropic Java SDK.
Chat client API.
Provides classes for advising chat clients.
-
Uses of ChatResponse in org.springframework.ai.anthropic
Methods in org.springframework.ai.anthropic that return ChatResponseModifier and TypeMethodDescriptionAnthropicChatModel.internalCall(Prompt prompt, @Nullable ChatResponse previousChatResponse) Internal method to handle synchronous chat completion calls with tool execution support.Methods in org.springframework.ai.anthropic that return types with arguments of type ChatResponseModifier and TypeMethodDescriptionreactor.core.publisher.Flux<ChatResponse>AnthropicChatModel.internalStream(Prompt prompt, @Nullable ChatResponse previousChatResponse) Internal method to handle streaming chat completion calls with tool execution support.reactor.core.publisher.Flux<ChatResponse>Streams the chat completion as aFluxofChatResponseevents.Methods in org.springframework.ai.anthropic with parameters of type ChatResponseModifier and TypeMethodDescriptionAnthropicSkillsResponseHelper.downloadAllFiles(ChatResponse response, com.anthropic.client.AnthropicClient client, Path targetDir) Download all files from a Skills response to a target directory.static @Nullable StringAnthropicSkillsResponseHelper.extractContainerId(@Nullable ChatResponse response) Extract container ID from a chat response for multi-turn conversation reuse.AnthropicSkillsResponseHelper.extractFileIds(@Nullable ChatResponse response) Extract all file IDs from a chat response.AnthropicChatModel.internalCall(Prompt prompt, @Nullable ChatResponse previousChatResponse) Internal method to handle synchronous chat completion calls with tool execution support.reactor.core.publisher.Flux<ChatResponse>AnthropicChatModel.internalStream(Prompt prompt, @Nullable ChatResponse previousChatResponse) Internal method to handle streaming chat completion calls with tool execution support. -
Uses of ChatResponse in org.springframework.ai.bedrock.converse
Methods in org.springframework.ai.bedrock.converse that return ChatResponseModifier and TypeMethodDescriptionInvoke the model and return the response.Methods in org.springframework.ai.bedrock.converse that return types with arguments of type ChatResponseModifier and TypeMethodDescriptionreactor.core.publisher.Flux<ChatResponse>Invoke the model and return the response stream. -
Uses of ChatResponse in org.springframework.ai.bedrock.converse.api
Methods in org.springframework.ai.bedrock.converse.api that return types with arguments of type ChatResponseModifier and TypeMethodDescriptionreactor.core.publisher.Flux<ChatResponse>ConverseChatResponseStream.stream()Invoke the model and return the chat response stream. -
Uses of ChatResponse in org.springframework.ai.chat.cache.semantic
Methods in org.springframework.ai.chat.cache.semantic that return types with arguments of type ChatResponseModifier and TypeMethodDescriptionRetrieves a cached response for a semantically similar query.default Optional<ChatResponse>Retrieves a cached response for a semantically similar query, filtered by context.Methods in org.springframework.ai.chat.cache.semantic with parameters of type ChatResponseModifier and TypeMethodDescriptionvoidSemanticCache.set(String query, ChatResponse response) Stores a query and its corresponding chat response in the cache.default voidSemanticCache.set(String query, ChatResponse response, @Nullable String contextHash) Stores a query and its corresponding chat response in the cache with an optional context identifier for isolation.voidSemanticCache.set(String query, ChatResponse response, Duration ttl) Stores a query and response in the cache with a specified time-to-live duration. -
Uses of ChatResponse in org.springframework.ai.chat.client
Methods in org.springframework.ai.chat.client that return ChatResponseModifier and TypeMethodDescription@Nullable ChatResponseChatClient.CallResponseSpec.chatResponse()@Nullable ChatResponseChatClientResponse.chatResponse()Returns the value of thechatResponserecord component.@Nullable ChatResponseDefaultChatClient.DefaultCallResponseSpec.chatResponse()Methods in org.springframework.ai.chat.client that return types with arguments of type ChatResponseModifier and TypeMethodDescriptionreactor.core.publisher.Flux<ChatResponse>ChatClient.StreamResponseSpec.chatResponse()reactor.core.publisher.Flux<ChatResponse>DefaultChatClient.DefaultStreamResponseSpec.chatResponse()protected <T> ResponseEntity<ChatResponse,T> DefaultChatClient.DefaultCallResponseSpec.doResponseEntity(StructuredOutputConverter<T> outputConverter) protected <T> ResponseEntity<ChatResponse,T> DefaultChatClient.DefaultCallResponseSpec.doResponseEntity(StructuredOutputConverter<T> outputConverter, BaseAdvisorChain advisorChain) <T> ResponseEntity<ChatResponse,T> ChatClient.CallResponseSpec.responseEntity(Class<T> type) Returns aResponseEntitycontaining both the completeChatResponseobject and a specific entity type.<T> ResponseEntity<ChatResponse,T> ChatClient.CallResponseSpec.responseEntity(Class<T> type, Consumer<ChatClient.EntityParamSpec> entityParamSpecConsumer) Returns aResponseEntitycontaining both the completeChatResponseobject and a specific entity type, with behaviour configured via theentityParamSpecConsumer.<T> ResponseEntity<ChatResponse,T> ChatClient.CallResponseSpec.responseEntity(StructuredOutputConverter<T> structuredOutputConverter) Returns aResponseEntitycontaining both the completeChatResponseobject and an entity converted using a specifiedStructuredOutputConverter.<T> ResponseEntity<ChatResponse,T> ChatClient.CallResponseSpec.responseEntity(StructuredOutputConverter<T> structuredOutputConverter, Consumer<ChatClient.EntityParamSpec> entityParamSpecConsumer) Returns aResponseEntitycontaining both the completeChatResponseobject and an entity converted using a specifiedStructuredOutputConverter, with behaviour configured via theentityParamSpecConsumer.<T> ResponseEntity<ChatResponse,T> ChatClient.CallResponseSpec.responseEntity(org.springframework.core.ParameterizedTypeReference<T> type) Returns aResponseEntitycontaining both the completeChatResponseobject and aCollectionof entity types.<T> ResponseEntity<ChatResponse,T> ChatClient.CallResponseSpec.responseEntity(org.springframework.core.ParameterizedTypeReference<T> type, Consumer<ChatClient.EntityParamSpec> entityParamSpecConsumer) Returns aResponseEntitycontaining both the completeChatResponseobject and a specific entity type, with behaviour configured via theentityParamSpecConsumer.<T> ResponseEntity<ChatResponse,T> DefaultChatClient.DefaultCallResponseSpec.responseEntity(Class<T> type) <T> ResponseEntity<ChatResponse,T> DefaultChatClient.DefaultCallResponseSpec.responseEntity(Class<T> type, Consumer<ChatClient.EntityParamSpec> entityParamSpecConsumer) <T> ResponseEntity<ChatResponse,T> DefaultChatClient.DefaultCallResponseSpec.responseEntity(StructuredOutputConverter<T> structuredOutputConverter) <T> ResponseEntity<ChatResponse,T> DefaultChatClient.DefaultCallResponseSpec.responseEntity(StructuredOutputConverter<T> structuredOutputConverter, Consumer<ChatClient.EntityParamSpec> entityParamSpecConsumer) <T> ResponseEntity<ChatResponse,T> DefaultChatClient.DefaultCallResponseSpec.responseEntity(org.springframework.core.ParameterizedTypeReference<T> type) <T> ResponseEntity<ChatResponse,T> DefaultChatClient.DefaultCallResponseSpec.responseEntity(org.springframework.core.ParameterizedTypeReference<T> type, Consumer<ChatClient.EntityParamSpec> entityParamSpecConsumer) Methods in org.springframework.ai.chat.client with parameters of type ChatResponseModifier and TypeMethodDescriptionChatClientResponse.Builder.chatResponse(@Nullable ChatResponse chatResponse) Constructors in org.springframework.ai.chat.client with parameters of type ChatResponseModifierConstructorDescriptionChatClientResponse(@Nullable ChatResponse chatResponse, Map<String, @Nullable Object> context) Creates an instance of aChatClientResponserecord class. -
Uses of ChatResponse in org.springframework.ai.chat.client.advisor
Fields in org.springframework.ai.chat.client.advisor with type parameters of type ChatResponseModifier and TypeFieldDescriptionstatic final Function<@Nullable ChatResponse,String> SimpleLoggerAdvisor.DEFAULT_RESPONSE_TO_STRINGMethods in org.springframework.ai.chat.client.advisor that return ChatResponseModifier and TypeMethodDescription@Nullable ChatResponseUsageAccumulator.accumulatedResponse()Returns the cumulative usage folded in so far, ornullif none.@Nullable ChatResponseUsageAccumulator.addRoundResponse(@Nullable ChatResponse roundChatResponse) Folds the usage of the given round response into the running total.Methods in org.springframework.ai.chat.client.advisor with parameters of type ChatResponseModifier and TypeMethodDescription@Nullable ChatResponseUsageAccumulator.addRoundResponse(@Nullable ChatResponse roundChatResponse) Folds the usage of the given round response into the running total.Method parameters in org.springframework.ai.chat.client.advisor with type arguments of type ChatResponseModifier and TypeMethodDescriptionSimpleLoggerAdvisor.Builder.responseToString(Function<@Nullable ChatResponse, String> responseToString) -
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.deepseek
Methods in org.springframework.ai.deepseek that return ChatResponseMethods in org.springframework.ai.deepseek that return types with arguments of type ChatResponse -
Uses of ChatResponse in org.springframework.ai.google.genai
Methods in org.springframework.ai.google.genai that return ChatResponseMethods in org.springframework.ai.google.genai that return types with arguments of type ChatResponse -
Uses of ChatResponse in org.springframework.ai.google.genai.schema
Methods in org.springframework.ai.google.genai.schema with parameters of type ChatResponseModifier and TypeMethodDescriptionGoogleGenAiToolCallingManager.executeToolCalls(Prompt prompt, ChatResponse chatResponse) Executes tool calls by delegating to the underlying tool calling manager. -
Uses of ChatResponse in org.springframework.ai.mistralai
Methods in org.springframework.ai.mistralai that return ChatResponseMethods in org.springframework.ai.mistralai that return types with arguments of type ChatResponse -
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.ollama
Methods in org.springframework.ai.ollama that return ChatResponseMethods in org.springframework.ai.ollama that return types with arguments of type ChatResponse -
Uses of ChatResponse in org.springframework.ai.openai
Methods in org.springframework.ai.openai that return ChatResponseMethods in org.springframework.ai.openai that return types with arguments of type ChatResponse -
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. -
Uses of ChatResponse in org.springframework.ai.vectorstore.redis.cache.semantic
Methods in org.springframework.ai.vectorstore.redis.cache.semantic that return types with arguments of type ChatResponseModifier and TypeMethodDescriptionMethods in org.springframework.ai.vectorstore.redis.cache.semantic with parameters of type ChatResponseModifier and TypeMethodDescriptionvoidDefaultSemanticCache.set(String query, ChatResponse response) voidDefaultSemanticCache.set(String query, ChatResponse response, @Nullable String contextHash) voidDefaultSemanticCache.set(String query, ChatResponse response, Duration ttl)