agent: Support pasting images as context (#29177)

https://github.com/user-attachments/assets/d6a27b05-3590-4f40-a820-f6f99f6bd581

Release Notes:

- agent: Added support for pasting images as context

---------

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
This commit is contained in:
Bennet Bo Fenner
2025-04-22 09:01:01 +00:00
committed by GitHub
co-authored by Danilo Leal
parent 3357736aea
commit eca6d5a04e
11 changed files with 407 additions and 99 deletions
+9
View File
@@ -1497,6 +1497,15 @@ impl Hash for Image {
}
impl Image {
/// An empty image containing no data
pub fn empty() -> Self {
Self {
format: ImageFormat::Png,
bytes: Vec::new(),
id: 0,
}
}
/// Get this image's ID
pub fn id(&self) -> u64 {
self.id