Module Stream_chunk.Choice

type t = {
  1. logprobs : Logprobs.t option;
  2. finish_reason : string option;
  3. native_finish_reason : string option;
  4. index : int;
  5. delta : Delta.t;
  6. error : Jsonaf.t option;
    (*

    Populated when the upstream provider fails after generation has begun. Schema is provider-specific so we keep it as raw JSON.

    *)
}
include Sexplib0.Sexpable.S with type t := t
val t_of_sexp : Sexplib0__.Sexp.t -> t
val sexp_of_t : t -> Sexplib0__.Sexp.t
val is_error : t -> bool