Interface Advisor
- 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
FieldsModifier and TypeFieldDescriptionstatic final intDefault order for chat-memory advisors.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_ORDERDefault order for chat-memory advisors. Placed before (outside)ToolCallingAdvisor.DEFAULT_ORDERso the memory advisor wraps the tool-call loop, and theToolCallingAdvisormanages its own intermediate conversation history.- See Also:
-
-
Method Details
-
getName
String getName()Return the name of the advisor.- Returns:
- the advisor name.
-