# Interface Callbacks.BeforeToolCallbackSync

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

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Optional<Map<String,Object>>`
  `call(InvocationContext invocationContext, BaseTool baseTool, Map<String,Object> input, ToolContext toolContext)`

- ## Method Details

  - ### call

    Optional<Map<String,Object>> call(InvocationContext invocationContext, BaseTool baseTool, Map<String,Object> input, ToolContext toolContext)