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.conversationId(String conversationId) Set the conversation id.order(int order) Set the order.scheduler(reactor.core.scheduler.Scheduler scheduler) systemPromptTemplate(org.springframework.ai.chat.prompt.PromptTemplate systemPromptTemplate) Set the system prompt template.
-
Method Details
-
systemPromptTemplate
public PromptChatMemoryAdvisor.Builder systemPromptTemplate(org.springframework.ai.chat.prompt.PromptTemplate systemPromptTemplate) Set the system prompt template.- Parameters:
systemPromptTemplate- the system prompt template- Returns:
- the builder
-
conversationId
Set the conversation id.- Parameters:
conversationId- the conversation id- Returns:
- the builder
-
scheduler
-
order
Set the order.- Parameters:
order- the order- Returns:
- the builder
-
build
Build the advisor.- Returns:
- the advisor
-