pub struct ViewImageTool;Expand description
P4c (S1.2 view_image, SPLIT CX row view_image, catalog:28): a
dedicated image-input tool, distinct from read_file’s multimodal
mode — needed as an image pathway when read_file itself is disabled
(cx-parity, S12). NOT registered by default; only reachable as the
optional fifth name in [core.tools] enabled (see
ToolRegistry::from_config).
Trait Implementations§
Source§impl Tool for ViewImageTool
impl Tool for ViewImageTool
Source§fn description(&self) -> &str
fn description(&self) -> &str
The built-in description. May be overridden via
crate::Config.Source§fn parameters(&self) -> Value
fn parameters(&self) -> Value
JSON Schema describing the tool’s input object.
Source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
args: Value,
ctx: &'life1 ToolContext,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
ViewImageTool: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
args: Value,
ctx: &'life1 ToolContext,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
ViewImageTool: 'async_trait,
Run the tool. Returns text to feed back to the model.
Auto Trait Implementations§
impl Freeze for ViewImageTool
impl RefUnwindSafe for ViewImageTool
impl Send for ViewImageTool
impl Sync for ViewImageTool
impl Unpin for ViewImageTool
impl UnsafeUnpin for ViewImageTool
impl UnwindSafe for ViewImageTool
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