pub enum Finality {
Partial {
stable: usize,
},
Final,
}Expand description
Whether a Transcript is still being revised or is complete.
Variants§
Partial
In-progress text. stable is the byte length of the prefix that will
never change. STT partials revise their tail (stable <= text.len());
LM partials are append-only (stable == text.len()).
Fields
§
stable: usizeByte length of the frozen prefix. Lies on a char boundary and is
<= text.len(); see the Transcript stable-prefix invariant.
Final
The completed unit (utterance for Role::User, generation for
Role::Agent — but see the SentenceChunker note in Part 4).
Trait Implementations§
impl Copy for Finality
impl Eq for Finality
impl StructuralPartialEq for Finality
Auto Trait Implementations§
impl Freeze for Finality
impl RefUnwindSafe for Finality
impl Send for Finality
impl Sync for Finality
impl Unpin for Finality
impl UnsafeUnpin for Finality
impl UnwindSafe for Finality
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more