Class PromptChatMemoryAdvisor.Builder
java.lang.Object
org.springframework.ai.chat.client.advisor.PromptChatMemoryAdvisor.Builder
- Enclosing class:
- PromptChatMemoryAdvisor
Builder for PromptChatMemoryAdvisor.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the advisor.order(int order) Set the order.scheduler(reactor.core.scheduler.Scheduler scheduler) systemPromptTemplate(PromptTemplate systemPromptTemplate) Deprecated, for removal: This API element is subject to removal in a future version.Custom system prompt templates are disabled for PromptChatMemoryAdvisor.
-
Method Details
-
systemPromptTemplate
@Deprecated(since="1.1.5", forRemoval=true) public PromptChatMemoryAdvisor.Builder systemPromptTemplate(PromptTemplate systemPromptTemplate) Deprecated, for removal: This API element is subject to removal in a future version.Custom system prompt templates are disabled for PromptChatMemoryAdvisor. Only the default template is allowed.Set the system prompt template.- Parameters:
systemPromptTemplate- the system prompt template- Returns:
- the builder
-
scheduler
-
order
Set the order.- Parameters:
order- the order- Returns:
- the builder
-
build
Build the advisor.- Returns:
- the advisor
-