Class ContentModerationAgent

java.lang.Object
com.aispect.agent.core.AbstractUnitAgent<Object,Object>
com.aispect.agents.security.ContentModerationAgent
All Implemented Interfaces:
AiAgentFilter, AiExceptionProxy<Object,Object>, AiExecutionProxy<Object,Object>, AiPostExecutionProxy<Object,Object>, AiPreExecutionProxy<Object>, AiUnitAgentHandler<Object,Object>

public class ContentModerationAgent extends AbstractUnitAgent<Object,Object>
Content moderation Agent。

Intercept the request before the actual method is executed, and use AI Conduct safety checks (eg: pornography, violence, hate speech). If a violation is detected, an exception will be thrown to block the execution flow.