pub struct ReadMediaToolBox { /* private fields */ }Expand description
ToolBox with the tool read_media, which gives the model a stored file (an image, a
document, …) by its ID, read from any MediaRead.
Share one storage with GenerateImageToolBox to let the model look at images it made
with ImageToolOutput::Metadata:
let storage = MemoryStorage::new();
let files = ReadMediaToolBox::new(storage.clone());Implementations§
Trait Implementations§
Source§impl ToolBox for ReadMediaToolBox
impl ToolBox for ReadMediaToolBox
Auto Trait Implementations§
impl !RefUnwindSafe for ReadMediaToolBox
impl !UnwindSafe for ReadMediaToolBox
impl Freeze for ReadMediaToolBox
impl Send for ReadMediaToolBox
impl Sync for ReadMediaToolBox
impl Unpin for ReadMediaToolBox
impl UnsafeUnpin for ReadMediaToolBox
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