All Superinterfaces:
org.springframework.core.Ordered
All Known Subinterfaces:
BaseAdvisor, BaseChatMemoryAdvisor, CallAdvisor, MemoryAdvisor, StreamAdvisor, ToolAdvisor
All Known Implementing Classes:
ChatModelCallAdvisor, ChatModelStreamAdvisor, MessageChatMemoryAdvisor, SafeGuardAdvisor, SimpleLoggerAdvisor, StructuredOutputValidationAdvisor, ToolCallAdvisor, ToolCallingAdvisor

public interface Advisor extends org.springframework.core.Ordered
Parent advisor interface for all advisors.
Since:
1.0.0
Author:
Christian Tzolov, Dariusz Jedrzejczyk
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Default order for chat-memory advisors.

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the name of the advisor.

    Methods inherited from interface org.springframework.core.Ordered

    getOrder
  • Field Details

    • DEFAULT_CHAT_MEMORY_PRECEDENCE_ORDER

      static final int DEFAULT_CHAT_MEMORY_PRECEDENCE_ORDER
      Default order for chat-memory advisors. Placed before (outside) ToolCallingAdvisor.DEFAULT_ORDER so the memory advisor wraps the tool-call loop, and the ToolCallingAdvisor manages its own intermediate conversation history.
      See Also:
  • Method Details

    • getName

      String getName()
      Return the name of the advisor.
      Returns:
      the advisor name.