Package com.t4a.processor
Class ActionProcessor
java.lang.Object
com.t4a.processor.ActionProcessor
- All Implemented Interfaces:
AIProcessor
The main processor class, can execute single action or multiple action in sequence - based on prompt can predict and trigger action - based on prompt can predict and trigger multiple actions sequentially - based on prompt can predict and trigger multiple actions parallely - Can take HumanInLoop object and wait for Human Validation - Can take ExplainDecision Object and provide why the decision was taken by AI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprocessMultipleAction
(String promptText, int num) processMultipleAction
(String promptText, int num, HumanInLoop humanVerification, ExplainDecision explain) processMultipleActionWithoutFail
(String promptText, HumanInLoop humanVerification, ExplainDecision explain) processSingleAction
(String promptText) Process Multiple actions sequentially based on predictionprocessSingleAction
(String promptText, HumanInLoop humanVerification, ExplainDecision explain) Process single action based on prediction
-
Constructor Details
-
ActionProcessor
public ActionProcessor()
-
-
Method Details
-
processSingleAction
public Object processSingleAction(String promptText, HumanInLoop humanVerification, ExplainDecision explain) throws IOException, InvocationTargetException, IllegalAccessException Process single action based on prediction- Parameters:
promptText
-humanVerification
-explain
-- Returns:
- Throws:
IOException
InvocationTargetException
IllegalAccessException
-
processSingleAction
public Object processSingleAction(String promptText) throws IOException, InvocationTargetException, IllegalAccessException Process Multiple actions sequentially based on prediction- Parameters:
promptText
-- Returns:
- Throws:
IOException
InvocationTargetException
IllegalAccessException
-
processMultipleAction
public List<Object> processMultipleAction(String promptText, int num) throws IOException, InvocationTargetException, IllegalAccessException -
processMultipleAction
public List<Object> processMultipleAction(String promptText, int num, HumanInLoop humanVerification, ExplainDecision explain) throws IOException, InvocationTargetException, IllegalAccessException -
processMultipleActionWithoutFail
public List<Object> processMultipleActionWithoutFail(String promptText, HumanInLoop humanVerification, ExplainDecision explain) throws IOException, InvocationTargetException, IllegalAccessException
-