Interface CallAroundAdvisor
- All Superinterfaces:
Advisor
,org.springframework.core.Ordered
- All Known Subinterfaces:
BaseAdvisor
- All Known Implementing Classes:
AbstractChatMemoryAdvisor
,MessageChatMemoryAdvisor
,PromptChatMemoryAdvisor
,QuestionAnswerAdvisor
,RetrievalAugmentationAdvisor
,SafeGuardAdvisor
,SimpleLoggerAdvisor
,VectorStoreChatMemoryAdvisor
Around advisor that wraps the ChatModel#call(Prompt) method.
- Since:
- 1.0.0
- Author:
- Christian Tzolov, Dariusz Jedrzejczyk
-
Field Summary
Fields inherited from interface org.springframework.ai.chat.client.advisor.api.Advisor
DEFAULT_CHAT_MEMORY_PRECEDENCE_ORDER
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
Modifier and TypeMethodDescriptionaroundCall
(AdvisedRequest advisedRequest, CallAroundAdvisorChain chain) Around advice that wraps the ChatModel#call(Prompt) method.Methods inherited from interface org.springframework.core.Ordered
getOrder
-
Method Details
-
aroundCall
Around advice that wraps the ChatModel#call(Prompt) method.- Parameters:
advisedRequest
- the advised requestchain
- the advisor chain- Returns:
- the response
-