llama_sample_token method
@details Randomly selects a token from the candidates based on their probabilities.
Implementation
int llama_sample_token(
ffi.Pointer<llama_context> ctx,
ffi.Pointer<llama_token_data_array> candidates,
) {
return _llama_sample_token(
ctx,
candidates,
);
}