llama_beam_search_callback_fn_t typedef
llama_beam_search_callback_fn_t = Pointer<NativeFunction<Void Function(Pointer<Void> , llama_beams_state)> >
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<
ffi.Void Function(ffi.Pointer<ffi.Void>, llama_beams_state)>>;