Deprecated API
Contents
-
Terminally Deprecated Elements
-
Deprecated InterfacesInterfaceDescriptionin favor of
CallAdvisorChain
in favor ofStreamAdvisor
in favor ofStreamAdvisorChain
in favour ofDocumentPostProcessor
.in favour ofDocumentPostProcessor
.in favour ofDocumentPostProcessor
.
-
Deprecated ClassesClassDescriptionin favour of
AdvisorUtils
.in favor ofChatClientPromptContentObservationFilter
.in favor ofMessageWindowChatMemory
, which internally usesInMemoryChatMemoryRepository
.in favor of building aMessageWindowChatMemory
(or otherChatMemory
implementations) with aJdbcChatMemoryRepository
instance.in favor of usingJdbcChatMemoryRepository.builder()
.
-
Deprecated Enum ClassesEnum ClassDescriptionadvisors don't have types anymore, they're all "around"only introduced to smooth the transition to the new APIs and ensure backward compatibilityin favor of
TemplateRenderer
.
-
Deprecated Record Classes
-
Deprecated FieldsFieldDescriptionin favor of
ChatMemory.DEFAULT_CONVERSATION_ID
.will become private in the next release. If you're subclassing this class, re-consider using the built-in implementation together with the new PromptTemplateRenderer interface, designed to give you more flexibility and control over the rendering process.in favor ofTemplateRenderer
UseFiltersLexer.VOCABULARY
instead.UseFiltersParser.VOCABULARY
instead.
-
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()
insteadadvisors don't have types anymore, they're all "around"not 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.risk to expose sensitive information or break the instrumentation since the advisor context map is used to pass arbitrary Java objects between advisors and not necessarily serializable. The conversation ID, previously part of this, is already included in theDefaultChatClientObservationConvention.conversationId(KeyValues, ChatClientObservationContext)
method.in favor of usingMessageWindowChatMemory
.in favor ofTemplateRenderer
.in favor ofTemplateRenderer
in favor ofTemplateRenderer
.in favour ofMedia.Builder.data(URI)
-
Deprecated ConstructorsConstructorDescriptionuse the builder insteadin favor of the builder:
QuestionAnswerAdvisor.builder(VectorStore)
in favor of the builder:QuestionAnswerAdvisor.builder(VectorStore)
in favor of the builder:QuestionAnswerAdvisor.builder(VectorStore)
in favor of the builder:QuestionAnswerAdvisor.builder(VectorStore)
useUserMessage.builder()
instead. Will be made private in the next release.useUserMessage.builder()
instead.useUserMessage.builder()
instead.useUserMessage.builder()
instead.in favor ofPromptTemplate.builder()
.in fahvor ofPromptTemplate.builder()
.in favour ofMedia(MimeType, URI)
-
Deprecated Enum ConstantsEnum ConstantDescriptionadvisors don't have types anymore, they're all "around"risk to expose sensitive information or break the instrumentation since the advisor context map is used to pass arbitrary Java objects between advisors and not necessarily serializable. The conversation ID, previously part of this, is already included in the
ChatClientObservationDocumentation.HighCardinalityKeyNames.CHAT_CLIENT_CONVERSATION_ID
method.
CallAdvisor