pub struct ToolImage {
pub data_url: String,
pub label: String,
}Expand description
A single image attached to a tool result.
When a tool (e.g. read on an image file) produces images and the model
supports image inputs, the agent injects them as a multimodal user message
after all tool messages of the batch (OpenAI protocol restricts tool
message content to text, so images cannot travel in the tool result
itself, and nothing may interleave with the tool responses).
Fields§
§data_url: StringBase64 data URL, e.g. “data:image/png;base64,…”.
label: StringHuman-readable label for log / fallback text.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToolImage
impl RefUnwindSafe for ToolImage
impl Send for ToolImage
impl Sync for ToolImage
impl Unpin for ToolImage
impl UnsafeUnpin for ToolImage
impl UnwindSafe for ToolImage
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