# Interface Callbacks.BeforeAgentCallbackSync

Enclosing class:
  `Callbacks`

Functional Interface:
  This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Callbacks.BeforeAgentCallbackSync
Helper interface to allow for sync beforeAgentCallback. The function is wrapped into an async one before being processed further.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Optional<com.google.genai.types.Content>`
  `call(CallbackContext callbackContext)`

- ## Method Details

  - ### call

    Optional<com.google.genai.types.Content> call(CallbackContext callbackContext)