pub struct Layer {
pub name: String,
pub path: PathBuf,
pub body: String,
pub chars: usize,
pub original_chars: usize,
}Expand description
One context file as it will be injected.
Fields§
§name: StringThe file’s name as the model sees it: AGENT.md, USER.md, MEMORY.md.
path: PathBuf§body: StringThe text to inject — possibly truncated, and then it says so.
chars: usizeCharacters kept.
original_chars: usizeCharacters the file actually has, for context show to compare against.
Implementations§
Trait Implementations§
impl Eq for Layer
impl StructuralPartialEq for Layer
Auto Trait Implementations§
impl Forget for Layer
impl Freeze for Layer
impl Move for Layer
impl RefUnwindSafe for Layer
impl Send for Layerwhere
RawVecInner: Send,
impl Sync for Layerwhere
RawVecInner: Sync,
impl Unpin for Layer
impl UnsafeUnpin for Layer
impl UnwindSafe for Layerwhere
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.