pub enum AttachmentData {
Show 32 variants
HookSuccess(HookResultAttachment),
HookNonBlockingError(HookResultAttachment),
HookBlockingError(HookResultAttachment),
HookCancelled(HookResultAttachment),
HookAdditionalContext {
content: Vec<String>,
hook_name: Option<String>,
tool_use_id: Option<String>,
hook_event: Option<String>,
},
HookPermissionDecision {
decision: String,
hook_name: Option<String>,
tool_use_id: Option<String>,
hook_event: Option<String>,
},
HookStoppedContinuation {
message: String,
hook_name: Option<String>,
tool_use_id: Option<String>,
hook_event: Option<String>,
},
HookSystemMessage {
content: String,
hook_name: Option<String>,
tool_use_id: Option<String>,
hook_event: Option<String>,
},
File {
filename: String,
content: FileAttachmentContent,
display_path: Option<String>,
},
EditedTextFile {
filename: String,
snippet: String,
},
Directory {
path: String,
content: String,
display_path: String,
},
CompactFileReference {
filename: String,
display_path: String,
},
CommandPermissions {
allowed_tools: Vec<String>,
},
PlanMode {
reminder_type: String,
is_sub_agent: bool,
plan_file_path: Option<String>,
plan_exists: bool,
},
PlanModeExit {
plan_file_path: Option<String>,
plan_exists: bool,
},
AutoMode {
reminder_type: String,
},
AutoModeExit,
PlanFileReference {
plan_file_path: String,
plan_content: String,
},
SkillListing {
content: String,
is_initial: Option<bool>,
skill_count: Option<u32>,
},
DynamicSkill {
skill_dir: String,
skill_names: Vec<String>,
display_path: String,
},
InvokedSkills {
skills: Vec<InvokedSkill>,
},
TaskReminder {
content: Vec<Value>,
item_count: u32,
},
TodoReminder {
content: Vec<Value>,
item_count: u32,
},
Diagnostics {
files: Vec<DiagnosticsFile>,
is_new: bool,
},
DateChange {
new_date: String,
},
DeferredToolsDelta {
added_names: Vec<String>,
added_lines: Option<Vec<String>>,
removed_names: Option<Vec<String>>,
readded_names: Option<Vec<String>>,
},
McpInstructionsDelta {
added_names: Vec<String>,
added_blocks: Vec<String>,
removed_names: Option<Vec<String>>,
},
AgentListingDelta {
added_types: Vec<String>,
added_lines: Vec<String>,
removed_types: Vec<String>,
is_initial: Option<bool>,
show_concurrency_note: Option<bool>,
},
UltrathinkEffort {
level: String,
},
QueuedCommand {
prompt: Value,
command_mode: Option<String>,
image_paste_ids: Option<Vec<u64>>,
},
NestedMemory {
path: String,
content: NestedMemoryContent,
display_path: String,
},
Unknown,
}Variants§
HookSuccess(HookResultAttachment)
HookNonBlockingError(HookResultAttachment)
HookBlockingError(HookResultAttachment)
HookCancelled(HookResultAttachment)
HookAdditionalContext
Fields
HookPermissionDecision
Fields
HookStoppedContinuation
Emitted when a hook ended the assistant’s turn (e.g. harness
await_user_message). Sibling of HookAdditionalContext but with a
single message field.
Fields
HookSystemMessage
Single-string sibling of HookAdditionalContext.
Fields
File
EditedTextFile
Directory
CompactFileReference
CommandPermissions
PlanMode
PlanModeExit
AutoMode
AutoModeExit
PlanFileReference
Snapshot of a plan markdown file pinned to the conversation. Carries the absolute path and the full file content at pin time.
SkillListing
Fields
DynamicSkill
InvokedSkills
Fields
skills: Vec<InvokedSkill>TaskReminder
TodoReminder
Older alias for TaskReminder; identical shape, only the discriminator differs. Observed payloads have always been empty.
Diagnostics
DateChange
DeferredToolsDelta
Fields
McpInstructionsDelta
AgentListingDelta
Diff of available agent types announced to the assistant. Sibling of
DeferredToolsDelta / McpInstructionsDelta but for the agent
listing. isInitial is true on the first injection per session;
showConcurrencyNote toggles a UI hint about parallel agent dispatch.
Fields
UltrathinkEffort
QueuedCommand
Fields
NestedMemory
Unknown
Catch-all for attachment types not yet recognised by the ingest binary.
Trait Implementations§
Source§impl Clone for AttachmentData
impl Clone for AttachmentData
Source§fn clone(&self) -> AttachmentData
fn clone(&self) -> AttachmentData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more