Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionuse
TextToSpeechModel.getOptions()instead.since 2.0.0 for removal in 3.0.0 — internal tool execution inBedrockProxyChatModelis superseded byToolCallingAdvisorused viaChatClient.since 2.0.0 in favor ofToolCallingAdvisor. This is kept for backward compatibility and will be removed in a future release.since 2.0.0 in favor ofToolCallingAdvisor.builder().since 2.0.0 in favor ofToolCallingAdvisor.Builder.since 2.0.0 in favor ofAdvisorParams.toolCallingAdvisorAutoRegister(boolean).as of 2.0.0, in favor ofChatClient.Builder.defaultTools(Object...). To be removed in 3.0.0.as of 2.0.0, in favor ofChatClient.Builder.defaultTools(Object...). To be removed in 3.0.0.as of 2.0.0, in favor ofChatClient.Builder.defaultTools(Object...). To be removed in 3.0.0.as of 2.0.0, in favor ofChatClient.ChatClientRequestSpec.tools(Object...). To be removed in 3.0.0.as of 2.0.0, in favor ofChatClient.ChatClientRequestSpec.tools(Object...). To be removed in 3.0.0.as of 2.0.0, in favor ofChatClient.ChatClientRequestSpec.tools(Object...). To be removed in 3.0.0.in favor ofChatClientBuilderCustomizerorg.springframework.ai.chat.client.DefaultChatClientBuilder.defaultToolCallbacks(List<ToolCallback>) as of 2.0.0, in favor of#defaultTools(Consumer). To be removed in 3.0.0.as of 2.0.0, in favor ofDefaultChatClientBuilder.defaultTools(Object...). To be removed in 3.0.0.as of 2.0.0, in favor of#defaultTools(Consumer). To be removed in 3.0.0.useChatModel.getOptions()instead.useElevenLabsTextToSpeechModel.getOptions()instead.The SSE transport has been deprecated in the 2025-03-26 version of the spec, and should not be used anymore. We keep it for backwards compatibility.The SSE transport has been deprecated in the 2025-03-26 version of the spec, and should not be used anymore. We keep it for backwards compatibility.The SSE transport has been deprecated in the 2025-03-26 version of the spec, and should not be used anymore. We keep it for backwards compatibility.since 2.0.0 for removal in 3.0.0 — internal tool execution inMistralAiChatModelis superseded byToolCallingAdvisorused viaChatClient.org.springframework.ai.model.anthropic.autoconfigure.AnthropicChatProperties.Options.getToolChoice()org.springframework.ai.model.elevenlabs.autoconfigure.ElevenLabsSpeechProperties.Options.getFormat()org.springframework.ai.model.mistralai.autoconfigure.MistralAiChatProperties.Options.getRandomSeed()org.springframework.ai.model.mistralai.autoconfigure.MistralAiChatProperties.Options.getSafePrompt()org.springframework.ai.model.mistralai.autoconfigure.MistralAiChatProperties.Options.getToolChoice()org.springframework.ai.model.mistralai.autoconfigure.MistralAiEmbeddingProperties.Options.getModel()org.springframework.ai.model.ollama.autoconfigure.OllamaChatProperties.Options.getFrequencyPenalty()org.springframework.ai.model.openai.autoconfigure.OpenAiChatProperties.Options.getFrequencyPenalty()org.springframework.ai.model.openai.autoconfigure.OpenAiChatProperties.Options.getMicrosoftFoundry()org.springframework.ai.model.openai.autoconfigure.OpenAiChatProperties.Options.getOutputModalities()org.springframework.ai.model.stabilityai.autoconfigure.StabilityAiImageProperties.Options.getModel()org.springframework.ai.model.stabilityai.autoconfigure.StabilityAiImageProperties.Options.getSteps()org.springframework.ai.model.stabilityai.autoconfigure.StabilityAiImageProperties.Options.getWidth()since 2.0.0 for removal in 3.0.0 — internal tool execution inOllamaChatModelis superseded byToolCallingAdvisorused viaChatClient.useOpenAiAudioSpeechModel.getOptions()instead.since 2.0.0 for removal in 3.0.0 — internal tool execution inOpenAiChatModelis superseded byToolCallingAdvisorused viaChatClient.useOpenAiChatModel.getOptions()instead.since 2.0.0-M3, useTokenTextSplitter.builder()instead.since 2.0.0-M3, useTokenTextSplitter.builder()instead.since 2.0.0-M3, useTokenTextSplitter.builder()instead.since 2.0.0-M3, useTokenTextSplitter.builder()instead.since 2.0.0-M3, useTokenTextSplitter.builder()instead.UseJacksonUtilsorJsonHelperinsteadUseJsonHelper.fromJson(String, Class)insteadUseJsonHelper.fromJson(String, Type)insteadUseJacksonUtils.getDefaultJsonMapper()insteadUseJsonHelper.toJson(Object, boolean)instead
-
Deprecated Interfaces
-
Deprecated ClassesClassDescriptionsince 2.0.0 in favor of
ToolCallingAdvisor. This is kept for backward compatibility and will be removed in a future release.since 2.0.0 in favor ofToolCallingAdvisor.Builder.UseSyncMcpLoggingProviderinstead.The SSE transport has been deprecated in the 2025-03-26 version of the spec, and should not be used anymore. We keep it for backwards compatibility.The SSE transport has been deprecated in the 2025-03-26 version of the spec, and should not be used anymore. We keep it for backwards compatibility.The SSE transport has been deprecated in the 2025-03-26 version of the spec, and should not be used anymore. We keep it for backwards compatibility.UseJacksonUtilsorJsonHelperinstead
-
Deprecated Fields
-
Deprecated MethodsMethodDescriptionsince 2.0.0 for removal in 3.0.0 — internal tool execution in
AnthropicChatModelis superseded byToolCallingAdvisorused viaChatClient.useTextToSpeechModel.getOptions()instead.This method is not sufficient for security-sensitive URL validation and should not be relied upon for security-critical checks. UseURLValidator.isValidURLStrict(String)instead for robust validation.since 2.0.0 for removal in 3.0.0 — internal tool execution inBedrockProxyChatModelis superseded byToolCallingAdvisorused viaChatClient.since 2.0.0 in favor ofToolCallingAdvisor.builder().since 2.0.0 in favor ofAdvisorParams.toolCallingAdvisorAutoRegister(boolean).as of 2.0.0, in favor ofChatClient.Builder.defaultTools(Object...). To be removed in 3.0.0.as of 2.0.0, in favor ofChatClient.Builder.defaultTools(Object...). To be removed in 3.0.0.as of 2.0.0, in favor ofChatClient.Builder.defaultTools(Object...). To be removed in 3.0.0.as of 2.0.0, in favor ofChatClient.ChatClientRequestSpec.tools(Object...). To be removed in 3.0.0.as of 2.0.0, in favor ofChatClient.ChatClientRequestSpec.tools(Object...). To be removed in 3.0.0.as of 2.0.0, in favor ofChatClient.ChatClientRequestSpec.tools(Object...). To be removed in 3.0.0.org.springframework.ai.chat.client.DefaultChatClientBuilder.defaultToolCallbacks(List<ToolCallback>) as of 2.0.0, in favor of#defaultTools(Consumer). To be removed in 3.0.0.as of 2.0.0, in favor ofDefaultChatClientBuilder.defaultTools(Object...). To be removed in 3.0.0.as of 2.0.0, in favor of#defaultTools(Consumer). To be removed in 3.0.0.useChatModel.getOptions()instead.useElevenLabsTextToSpeechModel.getOptions()instead.since 2.0.0 for removal in 3.0.0 — internal tool execution inMistralAiChatModelis superseded byToolCallingAdvisorused viaChatClient.org.springframework.ai.model.anthropic.autoconfigure.AnthropicChatProperties.Options.getToolChoice()org.springframework.ai.model.elevenlabs.autoconfigure.ElevenLabsSpeechProperties.Options.getFormat()org.springframework.ai.model.mistralai.autoconfigure.MistralAiChatProperties.Options.getRandomSeed()org.springframework.ai.model.mistralai.autoconfigure.MistralAiChatProperties.Options.getSafePrompt()org.springframework.ai.model.mistralai.autoconfigure.MistralAiChatProperties.Options.getToolChoice()org.springframework.ai.model.mistralai.autoconfigure.MistralAiEmbeddingProperties.Options.getModel()org.springframework.ai.model.ollama.autoconfigure.OllamaChatProperties.Options.getFrequencyPenalty()org.springframework.ai.model.openai.autoconfigure.OpenAiChatProperties.Options.getFrequencyPenalty()org.springframework.ai.model.openai.autoconfigure.OpenAiChatProperties.Options.getMicrosoftFoundry()org.springframework.ai.model.openai.autoconfigure.OpenAiChatProperties.Options.getOutputModalities()org.springframework.ai.model.stabilityai.autoconfigure.StabilityAiImageProperties.Options.getModel()org.springframework.ai.model.stabilityai.autoconfigure.StabilityAiImageProperties.Options.getSteps()org.springframework.ai.model.stabilityai.autoconfigure.StabilityAiImageProperties.Options.getWidth()since 2.0.0 for removal in 3.0.0 — internal tool execution inOllamaChatModelis superseded byToolCallingAdvisorused viaChatClient.useOpenAiAudioSpeechModel.getOptions()instead.since 2.0.0 for removal in 3.0.0 — internal tool execution inOpenAiChatModelis superseded byToolCallingAdvisorused viaChatClient.useOpenAiChatModel.getOptions()instead.UseJsonHelper.fromJson(String, Class)insteadUseJsonHelper.fromJson(String, Type)insteadUseJacksonUtils.getDefaultJsonMapper()insteadUseJsonHelper.toJson(Object, boolean)instead
-
Deprecated ConstructorsConstructorDescriptionuse
AsyncMcpToolCallback.BuilderinsteaduseAsyncMcpToolCallbackProvider.builder()insteaduseAsyncMcpToolCallbackProvider.builder()insteaduseAsyncMcpToolCallbackProvider.builder()insteaduseAsyncMcpToolCallbackProvider.builder()insteaduseSyncMcpToolCallback.builder()insteaduseSyncMcpToolCallbackProvider.builder()insteaduseSyncMcpToolCallbackProvider.builder()insteaduseSyncMcpToolCallbackProvider.builder()insteaduseSyncMcpToolCallbackProvider.builder()insteadUseMistralAiApi.ChatCompletionRequest.ResponseFormat.builder()or factory methods instead.UseMistralAiApi.ChatCompletionRequest.ResponseFormat.builder()or factory methods instead.since 2.0.0-M3, useTokenTextSplitter.builder()instead.since 2.0.0-M3, useTokenTextSplitter.builder()instead.since 2.0.0-M3, useTokenTextSplitter.builder()instead.since 2.0.0-M3, useTokenTextSplitter.builder()instead.since 2.0.0-M3, useTokenTextSplitter.builder()instead.
-
Deprecated Enum ConstantsEnum ConstantDescriptionDeepSeek has announced this legacy model name will be deprecated. Prefer
DeepSeekApi.ChatModel.DEEPSEEK_V4_FLASHorDeepSeekApi.ChatModel.DEEPSEEK_V4_PRO.DeepSeek has announced this legacy model name will be deprecated. PreferDeepSeekApi.ChatModel.DEEPSEEK_V4_FLASH/DeepSeekApi.ChatModel.DEEPSEEK_V4_PROwith provider-specific reasoning configuration.
AnthropicChatModelis superseded byToolCallingAdvisorused viaChatClient.