pub struct Editable {}Expand description
One of the three files, as the dashboard’s editor needs it: where it is, what is in it, what the prompt will do with it, and the budget it is measured against.
Fields§
§which: Which§file: StringWhat the file is called on disk — AGENT.md, or the alias it is actually standing in for.
path: PathBufThe resolved path. Canonicalised when the file exists; a prediction when it does not, so the first save has somewhere to go.
exists: bool§text: StringThe text as stored. For MEMORY.md that is the §-separated file, not the rendered list:
the editor shows what the writer wrote.
chars: usizeCharacters in the file.
kept: usizeCharacters the prompt will keep — below chars when the file is being clipped right now.
max_chars: usizeThe per-file ceiling (agent.context_file_max_chars); 0 when there is none.
own_budget: Option<usize>MEMORY.md’s own ceiling, which its writer refuses past rather than clipping. None for the
two prose files, which have no such thing.
total: usizeEvery file layer as it will be injected, and the ceiling for all of them together.
total_budget: usize§position: Option<usize>Where this file sits in the drop order, 1-based, among the layers that survived.
others: usizeHow many other AGENT.md layers are also injected above this one.
Implementations§
Trait Implementations§
impl Eq for Editable
impl StructuralPartialEq for Editable
Auto Trait Implementations§
impl Forget for Editable
impl Freeze for Editable
impl Move for Editable
impl RefUnwindSafe for Editable
impl Send for Editablewhere
RawVecInner: Send,
impl Sync for Editablewhere
RawVecInner: Sync,
impl Unpin for Editable
impl UnsafeUnpin for Editable
impl UnwindSafe for Editablewhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.