pub struct AgenticCtx {
pub policy_path: Option<PathBuf>,
pub config_path: Option<PathBuf>,
}Expand description
Context for Agentic suggestions.
This provides the “world view” needed to generate relevant fixes, such as where the policy file is located or what the assay config path is.
Fields§
§policy_path: Option<PathBuf>Optional: path to the policy file (policy.yaml). If not set, we fall back to diagnostics.context.policy_file or “policy.yaml”.
config_path: Option<PathBuf>Optional: path to the assay config file (assay.yaml). If not set, we fall back to diagnostics.context.config_file or “assay.yaml”.
Auto Trait Implementations§
impl Freeze for AgenticCtx
impl RefUnwindSafe for AgenticCtx
impl Send for AgenticCtx
impl Sync for AgenticCtx
impl Unpin for AgenticCtx
impl UnwindSafe for AgenticCtx
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more