pub enum Attachment {
Show 16 variants
File {
path: String,
},
AlreadyReadFile {
path: String,
content: String,
},
PdfReference {
path: String,
},
EditedTextFile {
filename: String,
snippet: String,
},
EditedImageFile {
filename: String,
},
Directory {
path: String,
content: String,
display_path: String,
},
SelectedLinesInIde {
ide_name: String,
filename: String,
start_line: u32,
end_line: u32,
},
MemoryFile {
path: String,
},
SkillListing {
skills: Vec<SkillInfo>,
},
InvokedSkills {
skills: Vec<InvokedSkill>,
},
TaskStatus {
task_id: String,
description: String,
status: String,
},
PlanFileReference {
path: String,
},
McpResources {
tools: Vec<String>,
},
DeferredTools {
tools: Vec<String>,
},
AgentListing {
agents: Vec<String>,
},
Custom {
name: String,
content: Value,
},
}Expand description
Attachments for messages - files, images, etc.
Variants§
File
File attachment (at-mentioned file)
AlreadyReadFile
Reference to a file previously read
PdfReference
PDF reference
EditedTextFile
Text file that was edited
EditedImageFile
Image file that was edited
Directory
Directory listing
SelectedLinesInIde
Selected lines in IDE
MemoryFile
Memory file reference
SkillListing
Skill listing attachment
InvokedSkills
Invoked skills attachment
Fields
§
skills: Vec<InvokedSkill>TaskStatus
Task status
PlanFileReference
Plan file reference
McpResources
MCP tool resources
DeferredTools
Deferred tools delta
AgentListing
Agent listing
Custom
Custom attachment
Trait Implementations§
Source§impl Clone for Attachment
impl Clone for Attachment
Source§fn clone(&self) -> Attachment
fn clone(&self) -> Attachment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Attachment
impl Debug for Attachment
Source§impl<'de> Deserialize<'de> for Attachment
impl<'de> Deserialize<'de> for Attachment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Attachment
impl RefUnwindSafe for Attachment
impl Send for Attachment
impl Sync for Attachment
impl Unpin for Attachment
impl UnsafeUnpin for Attachment
impl UnwindSafe for Attachment
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