# Interface Callbacks.OnModelErrorCallbackSync

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.OnModelErrorCallbackSync
Helper interface to allow for sync onModelErrorCallback. 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 llmRequest, Exception error)`

- ## Method Details

  - ### call

    Optional<LlmResponse> call(CallbackContext callbackContext, LlmRequest llmRequest, Exception error)