Class AdvisorUtils
java.lang.Object
org.springframework.ai.chat.client.advisor.AdvisorUtils
Utilities to work with advisors.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Predicate<ChatClientResponse>Checks whether the providedChatClientResponsecontains aChatResponsewith at least one result having a non-empty finish reason in its metadata.
-
Method Details
-
onFinishReason
Checks whether the providedChatClientResponsecontains aChatResponsewith at least one result having a non-empty finish reason in its metadata.
-