Package com.embabel.agent.core.hitl
Class ConfirmationRequest
-
- All Implemented Interfaces:
-
com.embabel.agent.core.hitl.Awaitable,com.embabel.common.core.Identified,com.embabel.common.core.StableIdentified,com.embabel.common.core.types.HasInfoString,com.embabel.common.core.types.Timestamped
public final class ConfirmationRequest<P extends Object> extends AbstractAwaitable<P, ConfirmationResponse>
Request confirmation from the user before promoting an object to the blackboard. Rejection will hold back a flow.
-
-
Constructor Summary
Constructors Constructor Description ConfirmationRequest(P payload, String message, Boolean persistent)ConfirmationRequest(P payload, String message)
-
Method Summary
Modifier and Type Method Description final StringgetMessage()ResponseImpactonResponse(ConfirmationResponse response, AgentProcess agentProcess)Update process state based on this response StringinfoString(Boolean verbose, Integer indent)StringtoString()-
-
Method Detail
-
getMessage
final String getMessage()
-
onResponse
ResponseImpact onResponse(ConfirmationResponse response, AgentProcess agentProcess)
Update process state based on this response
-
infoString
String infoString(Boolean verbose, Integer indent)
-
-
-
-