Package com.aispect.agents.data
Class DataCleanAgent
- All Implemented Interfaces:
AiAgentFilter,AiExceptionProxy<Object,,String> AiExecutionProxy<Object,,String> AiPostExecutionProxy<Object,,String> AiPreExecutionProxy<Object>,AiUnitAgentHandler<Object,String>
Data cleaning Agent。
Intercept the method call and pass the first argument as input text to AI Clean up, correct typos, and format. It will short-circuit the original method execution and return directly to the AI Processed clean text.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(AiInvocationContext<Object> ctx) Execute interception logic for data cleaning.Methods inherited from class com.aispect.agent.core.AbstractUnitAgent
doFilter, getAiOperations, onException, postExecute, preExecute, shouldProcess
-
Constructor Details
-
DataCleanAgent
public DataCleanAgent()
-
-
Method Details
-
execute
Execute interception logic for data cleaning.- Specified by:
executein interfaceAiExecutionProxy<Object,String> - Overrides:
executein classAbstractUnitAgent<Object,String> - Parameters:
ctx- AI Execution context, containing raw data parameters to be cleaned- Returns:
- go through AI Plain text results after model correction and cleaning
- Throws:
AiSpectException- if AI call failed
-