Class PromptChatMemoryAdvisor.Builder
java.lang.Object
org.springframework.ai.chat.client.advisor.PromptChatMemoryAdvisor.Builder
- Enclosing class:
PromptChatMemoryAdvisor
Builder for PromptChatMemoryAdvisor.
- Since:
- 1.0.0
- Author:
- Christian Tzolov, Miloš Havránek, Thomas Vitale, Mark Pollack
-
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
-