pub struct ImageDescription {
pub description: String,
pub is_ui_screenshot: bool,
pub tokens_original: u32,
pub tokens_description: u32,
pub reduction_pct: f64,
}Expand description
Compact semantic description produced from an image.
Fields§
§description: StringThe text description replacing the raw image bytes.
is_ui_screenshot: boolWhether the image was classified as a UI screenshot.
tokens_original: u32Estimated original token cost (image_bytes.len() / 4).
tokens_description: u32Token cost of the description text (description.len() / 4).
reduction_pct: f64Percentage reduction: (1 - tokens_description / tokens_original) * 100.
Auto Trait Implementations§
impl Freeze for ImageDescription
impl RefUnwindSafe for ImageDescription
impl Send for ImageDescription
impl Sync for ImageDescription
impl Unpin for ImageDescription
impl UnsafeUnpin for ImageDescription
impl UnwindSafe for ImageDescription
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