pub struct Fixture {
pub name: &'static str,
pub archetype: Archetype,
pub files: Vec<(Lang, String)>,
pub target: String,
}Expand description
A repo snapshot plus the symbol at the centre of the intended edit.
Fields§
§name: &'static str§archetype: Archetype§files: Vec<(Lang, String)>The files of the snapshot, as (language, source).
target: StringThe symbol the task edits; skeleton radius expands outward from here.
Implementations§
Source§impl Fixture
impl Fixture
Sourcepub fn context_at(&self, radius: u8) -> String
pub fn context_at(&self, radius: u8) -> String
Build the context the agent would send at radius: every file skeletonised, with full
bodies kept for symbols within radius hops of target across the
whole snapshot.
Sourcepub fn measure(&self, radius: u8) -> BudgetReport
pub fn measure(&self, radius: u8) -> BudgetReport
Measure estimated context tokens and kept-symbol count at radius.
Sourcepub fn sweep(&self, max_radius: u8) -> Vec<BudgetReport>
pub fn sweep(&self, max_radius: u8) -> Vec<BudgetReport>
Sweep radii 0..=max_radius, returning one report each — the trend line §6.5 tracks.
Auto Trait Implementations§
impl Freeze for Fixture
impl RefUnwindSafe for Fixture
impl Send for Fixture
impl Sync for Fixture
impl Unpin for Fixture
impl UnsafeUnpin for Fixture
impl UnwindSafe for Fixture
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