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

public interface CallAroundAdvisor extends Advisor
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 Type
    Method
    Description
    Around advice that wraps the ChatModel#call(Prompt) method.

    Methods inherited from interface org.springframework.ai.chat.client.advisor.api.Advisor

    getName

    Methods inherited from interface org.springframework.core.Ordered

    getOrder
  • Method Details

    • aroundCall

      AdvisedResponse aroundCall(AdvisedRequest advisedRequest, CallAroundAdvisorChain chain)
      Around advice that wraps the ChatModel#call(Prompt) method.
      Parameters:
      advisedRequest - the advised request
      chain - the advisor chain
      Returns:
      the response