pub enum Verdict {
Fits {
clamped_max_tokens: Option<i64>,
},
Exceeds {
estimated: i64,
window: i64,
},
}Expand description
The outcome of assessing a prompt against a context window.
Variants§
Fits
The prompt fits; clamped_max_tokens is the completion length capped to
what the window leaves free.
Exceeds
The prompt does not fit the window.
Trait Implementations§
impl Eq for Verdict
impl StructuralPartialEq for Verdict
Auto Trait Implementations§
impl Freeze for Verdict
impl RefUnwindSafe for Verdict
impl Send for Verdict
impl Sync for Verdict
impl Unpin for Verdict
impl UnsafeUnpin for Verdict
impl UnwindSafe for Verdict
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