Interface Advisor
- All Superinterfaces:
org.springframework.core.Ordered
- All Known Subinterfaces:
BaseAdvisor,BaseChatMemoryAdvisor,CallAdvisor,StreamAdvisor
- All Known Implementing Classes:
ChatModelCallAdvisor,ChatModelStreamAdvisor,MessageChatMemoryAdvisor,PromptChatMemoryAdvisor,SafeGuardAdvisor,SimpleLoggerAdvisor
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
FieldsModifier and TypeFieldDescriptionstatic final intUseful constant for the default Chat Memory precedence order.Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Method Summary
Methods inherited from interface org.springframework.core.Ordered
getOrder
-
Field Details
-
DEFAULT_CHAT_MEMORY_PRECEDENCE_ORDER
static final int DEFAULT_CHAT_MEMORY_PRECEDENCE_ORDERUseful constant for the default Chat Memory precedence order. Ensures this order has lower priority (e.g. precedences) than the Spring AI internal advisors. It leaves room (1000 slots) for the user to plug in their own advisors with higher priority.- See Also:
-
-
Method Details
-
getName
String getName()Return the name of the advisor.- Returns:
- the advisor name.
-