Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionChatOptions are passed in the Prompt object and should not be set separately anymore.Use {@link #getRequest().getOptions()} instead.EmbeddingOptions are passed in the EmbeddingRequest object and should not be set separately anymore.Use {@link #getRequest().getOptions()} instead.ImageOptions are passed in the ImagePrompt object and should not be set separately anymore.Use {@link #getRequest().getOptions()} instead.
-
Deprecated InterfacesInterfaceDescriptionin favor of
CallAdvisor
in favor ofCallAdvisorChain
in favor ofStreamAdvisor
in favor ofStreamAdvisorChain
in favor ofToolCallback
.Use specific builder for the type of tool you need, e.g.FunctionToolCallback.Builder
andMethodToolCallback.Builder
.UseToolCallbackResolver
instead.in favor ofToolCallingChatOptions
.
-
Deprecated ClassesClassDescriptionUse
ToolCallingManager
instead.Use specific builder for the type of tool you need, e.g.FunctionToolCallback.Builder
andMethodToolCallback.Builder
.Use specific builder for the type of tool you need, e.g.FunctionToolCallback.Builder
andMethodToolCallback.Builder
.UseSpringBeanToolCallbackResolver
instead.in favor ofDefaultToolCallingChatOptions
.in favor ofDefaultToolCallingChatOptions.Builder
.in favor ofFunctionToolCallback
.in favor ofMethodToolCallback
.
-
Deprecated Enum ClassesEnum ClassDescriptionadvisors don't have types anymore, they're all "around"
-
Deprecated Record Classes
-
Deprecated Fields
-
Deprecated MethodsMethodDescriptionin favor of
AdvisedRequest.Builder.adviseContext(Map)
org.springframework.ai.chat.client.advisor.api.CallAroundAdvisorChain.nextAroundCall(AdvisedRequest) in favor ofCallAdvisorChain.nextCall(ChatClientRequest)
in favor ofStreamAdvisorChain.nextStream(ChatClientRequest)
advisors don't have types anymore, they're all "around"org.springframework.ai.chat.client.advisor.observation.AdvisorObservationContext.getAdvisedRequest()not used anymoreuseAdvisorObservationContext.getChatClientRequest()
insteadadvisors don't have types anymore, they're all "around"immutable object, use the builder instead to create a new instancenot supported anymore, useAdvisorObservationContext.getChatClientRequest()
insteadnot used anymore. The format instructions are already included in the ChatModelObservationContext.not used anymore. The format instructions are already included in the ChatModelObservationContext.not used anymore. The format instructions are already included in the ChatModelObservationContext.ChatOptions are passed in the Prompt object and should not be set separately anymore.Use {@link #getRequest().getOptions()} instead.We are considering getting rid of this, please comment on https://github.com/spring-projects/spring-ai/issues/1782EmbeddingOptions are passed in the EmbeddingRequest object and should not be set separately anymore.Use {@link #getRequest().getOptions()} instead.ImageOptions are passed in the ImagePrompt object and should not be set separately anymore.Use {@link #getRequest().getOptions()} instead.
-
Deprecated ConstructorsConstructorDescriptionuse the builder insteaduse
UserMessage.builder()
instead. Will be made private in the next release.useUserMessage.builder()
instead.useUserMessage.builder()
instead.useUserMessage.builder()
instead.
-
Deprecated Enum ConstantsEnum ConstantDescription
AnthropicApi.ChatCompletionRequestBuilder.maxTokens(Integer)
instead.