pub struct ContextBuilder;Expand description
Builds a compact working set from a RepoModel.
Implementations§
Source§impl ContextBuilder
impl ContextBuilder
Sourcepub fn build(repo_model: &RepoModel, budget: ContextBudget) -> WorkingSet
pub fn build(repo_model: &RepoModel, budget: ContextBudget) -> WorkingSet
Selects a bounded working set from the repository model.
Sourcepub fn snapshot(
working_set: &WorkingSet,
current_plan: impl Into<String>,
active_failures: Vec<String>,
) -> ContextSnapshot
pub fn snapshot( working_set: &WorkingSet, current_plan: impl Into<String>, active_failures: Vec<String>, ) -> ContextSnapshot
Compacts the current state into a durable snapshot.
Trait Implementations§
Source§impl Debug for ContextBuilder
impl Debug for ContextBuilder
Source§impl Default for ContextBuilder
impl Default for ContextBuilder
Source§fn default() -> ContextBuilder
fn default() -> ContextBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContextBuilder
impl RefUnwindSafe for ContextBuilder
impl Send for ContextBuilder
impl Sync for ContextBuilder
impl Unpin for ContextBuilder
impl UnsafeUnpin for ContextBuilder
impl UnwindSafe for ContextBuilder
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