Class ChatModelCallAdvisor
java.lang.Object
org.springframework.ai.chat.client.advisor.ChatModelCallAdvisor
- All Implemented Interfaces:
Advisor,CallAdvisor,org.springframework.core.Ordered
A
CallAdvisor that uses a ChatModel to generate a response.- Since:
- 1.0.0
- Author:
- Thomas Vitale
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.springframework.ai.chat.client.advisor.api.Advisor
DEFAULT_CHAT_MEMORY_PRECEDENCE_ORDERFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Method Summary
Modifier and TypeMethodDescriptionadviseCall(ChatClientRequest chatClientRequest, CallAdvisorChain callAdvisorChain) static ChatModelCallAdvisor.Builderbuilder()getName()Return the name of the advisor.intgetOrder()
-
Method Details
-
adviseCall
public ChatClientResponse adviseCall(ChatClientRequest chatClientRequest, CallAdvisorChain callAdvisorChain) - Specified by:
adviseCallin interfaceCallAdvisor
-
getName
Description copied from interface:AdvisorReturn the name of the advisor. -
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
builder
-