llama_cpp_bindings/ingest_outcome.rs
1use crate::sampled_token::SampledToken;
2
3#[derive(Clone, Debug)]
4pub struct IngestOutcome {
5 pub sampled_token: SampledToken,
6 /// Empty when the token is part of a recognised marker boundary; otherwise
7 /// the decoded UTF-8 piece. Callers should stream `visible_piece` and skip
8 /// emission when it is empty.
9 pub visible_piece: String,
10 /// Always the decoded UTF-8 piece, even for marker-boundary tokens. Useful
11 /// for accumulating the full raw model output (e.g. for downstream parser
12 /// cross-checks) without losing marker bytes.
13 pub raw_piece: String,
14}