pub struct FileOps {
pub read: HashSet<String>,
pub written: HashSet<String>,
pub edited: HashSet<String>,
}Expand description
File operations accumulator, matching pi’s FileOperations / createFileOps.
Fields§
§read: HashSet<String>§written: HashSet<String>§edited: HashSet<String>Implementations§
Source§impl FileOps
impl FileOps
pub fn new() -> Self
Sourcepub fn extract_from_message(&mut self, msg: &AgentMessage)
pub fn extract_from_message(&mut self, msg: &AgentMessage)
Extract file ops from a single assistant message (pi-compatible).
Sourcepub fn compute_lists(&self) -> (Vec<String>, Vec<String>)
pub fn compute_lists(&self) -> (Vec<String>, Vec<String>)
Compute sorted read-only and modified file lists (pi-compatible).
Sourcepub fn to_json_value(&self) -> Option<Value>
pub fn to_json_value(&self) -> Option<Value>
Serialize to JSON for compaction details (pi-compatible).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileOps
impl RefUnwindSafe for FileOps
impl Send for FileOps
impl Sync for FileOps
impl Unpin for FileOps
impl UnsafeUnpin for FileOps
impl UnwindSafe for FileOps
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