# Interface Callbacks.BeforeModelCallbackSync

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.BeforeModelCallbackSync
Helper interface to allow for sync beforeModelCallback. The function is wrapped into an async one before being processed further.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Optional<LlmResponse>`
  `call(CallbackContext callbackContext, LlmRequest.Builder llmRequestBuilder)`

- ## Method Details

  - ### call

    Optional<LlmResponse> call(CallbackContext callbackContext, LlmRequest.Builder llmRequestBuilder)