# Class CallbackUtil

java.lang.Object
com.google.adk.agents.CallbackUtil

public final class CallbackUtil extends Object
Utility methods for normalizing agent callbacks.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static List<Callbacks.AfterAgentCallback>`
  `getAfterAgentCallbacks(List<com.google.adk.agents.Callbacks.AfterAgentCallbackBase> afterAgentCallback)`
  Normalizes after-agent callbacks.
  `static List<Callbacks.BeforeAgentCallback>`
  `getBeforeAgentCallbacks(List<com.google.adk.agents.Callbacks.BeforeAgentCallbackBase> beforeAgentCallbacks)`
  Normalizes before-agent callbacks.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### getBeforeAgentCallbacks

    @CanIgnoreReturnValue public static List<Callbacks.BeforeAgentCallback> getBeforeAgentCallbacks(List<com.google.adk.agents.Callbacks.BeforeAgentCallbackBase> beforeAgentCallbacks)
    Normalizes before-agent callbacks.
    Parameters:
      `beforeAgentCallbacks` - Callback list (sync or async).
    Returns:
      normalized async callbacks, or empty list if input is null.

  - ### getAfterAgentCallbacks

    @CanIgnoreReturnValue public static List<Callbacks.AfterAgentCallback> getAfterAgentCallbacks(List<com.google.adk.agents.Callbacks.AfterAgentCallbackBase> afterAgentCallback)
    Normalizes after-agent callbacks.
    Parameters:
      `afterAgentCallback` - Callback list (sync or async).
    Returns:
      normalized async callbacks, or empty list if input is null.