using System.Runtime.InteropServices;
namespace LLama.Native;
///
/// A single token along with probability of this token being selected
///
///
///
///
[StructLayout(LayoutKind.Sequential)]
public record struct LLamaTokenData(int id, float logit, float p)
{
///
/// token id
///
public int id = id;
///
/// log-odds of the token
///
public float logit = logit;
///
/// probability of the token
///
public float p = p;
}