Package com.veeva.vault.sdk.api.agent
Interface AgentActionResultHandler
- All Superinterfaces:
com.veeva.vault.sdk.infrastructure.core.SdkEntryPoint<AgentActionResult>
public interface AgentActionResultHandler
extends com.veeva.vault.sdk.infrastructure.core.SdkEntryPoint<AgentActionResult>
Handler used to process the result of invoking an agent action.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonError(AgentActionError error) Invoked when the agent action encounters an error.voidonSuccess(AgentActionSuccess result) Invoked when the agent action completes successfully.
-
Method Details
-
onSuccess
Invoked when the agent action completes successfully. Use custom logic in this method to process a successful result.- Parameters:
result- action result
-
onError
Invoked when the agent action encounters an error. Use custom logic in this method to process an unsuccessful result.- Parameters:
error- action error
-