Package com.tnsai.integration.scop
Class ActionExecutionResult
java.lang.Object
com.tnsai.integration.scop.ActionExecutionResult
Result of a TnsAI action execution.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ActionExecutionResultChecked target/policy/caller binding of a successful dispatch; null for undeclared actions.Original failure for local diagnostics; its message may contain sensitive policy details.Gets the narration to display to the user.booleanWhether this failed dispatch contains a typed UNAUTHORIZED cause.booleanstatic ActionExecutionResultstatic ActionExecutionResult
-
Method Details
-
success
public static ActionExecutionResult success(Object result, String preNarration, String postNarration) -
success
public static ActionExecutionResult success(Object result, String preNarration, String postNarration, String accessBindingFingerprint) -
error
-
getAccessBindingFingerprint
Checked target/policy/caller binding of a successful dispatch; null for undeclared actions. Not a permit. -
isSuccess
public boolean isSuccess() -
isAuthorizationDenied
public boolean isAuthorizationDenied()Whether this failed dispatch contains a typed UNAUTHORIZED cause. Consumers must terminate the current tool turn without asking the model to invent a replacement result;getNarration()is safe denial text. This is a failure disposition, not an authorization grant or a success. -
getResult
-
getPreNarration
-
getPostNarration
-
getErrorMessage
-
getException
Original failure for local diagnostics; its message may contain sensitive policy details. -
getNarration
Gets the narration to display to the user. Returns postNarration on success, errorMessage on failure.
-