llama_beam_search_callback_fn_t typedef
Type of pointer to the beam_search_callback function. void* callback_data is any custom data passed to llama_beam_search, that is subsequently passed back to beam_search_callback. This avoids having to use global variables in the callback.
Implementation
typedef llama_beam_search_callback_fn_t
= ffi.Pointer<ffi.NativeFunction<llama_beam_search_callback_fn_tFunction>>;