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 Type
    Method
    Description
    void
    Invoked when the agent action encounters an error.
    void
    Invoked when the agent action completes successfully.
  • Method Details

    • onSuccess

      void onSuccess(AgentActionSuccess result)
      Invoked when the agent action completes successfully. Use custom logic in this method to process a successful result.
      Parameters:
      result - action result
    • onError

      void onError(AgentActionError error)
      Invoked when the agent action encounters an error. Use custom logic in this method to process an unsuccessful result.
      Parameters:
      error - action error