Class SafeGuardAdvisor

java.lang.Object
org.springframework.ai.chat.client.advisor.SafeGuardAdvisor
All Implemented Interfaces:
Advisor, CallAdvisor, StreamAdvisor, org.springframework.core.Ordered

public class SafeGuardAdvisor extends Object implements CallAdvisor, StreamAdvisor
An advisor that blocks the call to the model provider if the user input contains any of the sensitive words.
Since:
1.0.0
Author:
Christian Tzolov, Ilayaperumal Gopinathan, Thomas Vitale