pub struct ImageInfoTool { /* private fields */ }Expand description
Tool to read image metadata and expose the image to vision-capable models.
Extracts file size, format, and dimensions from header bytes, and emits an
[IMAGE:<absolute path>] marker so the multimodal pipeline inlines the
image bytes for the next provider call when the model supports vision.
Implementations§
Source§impl ImageInfoTool
impl ImageInfoTool
pub fn new(security: Arc<SecurityPolicy>) -> ImageInfoTool
Trait Implementations§
Source§impl Attributable for ImageInfoTool
impl Attributable for ImageInfoTool
Source§impl Tool for ImageInfoTool
impl Tool for ImageInfoTool
Source§fn description(&self) -> &str
fn description(&self) -> &str
Human-readable description
Source§fn parameters_schema(&self) -> Value
fn parameters_schema(&self) -> Value
JSON schema for parameters
Auto Trait Implementations§
impl Freeze for ImageInfoTool
impl !RefUnwindSafe for ImageInfoTool
impl Send for ImageInfoTool
impl Sync for ImageInfoTool
impl Unpin for ImageInfoTool
impl UnsafeUnpin for ImageInfoTool
impl !UnwindSafe for ImageInfoTool
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more