pub struct Rec {
pub id: String,
pub confidence: f32,
pub why: Option<String>,
}Expand description
A skill chosen for injection: its id, the confidence we’ll display, and an
optional one-line evidence note (why this skill was surfaced — a referenced
file, the workspace’s ecosystem). The hook computes these (stage-appropriate
confidence + dedup) and hands them to build; tests construct them directly.
Fields§
§id: String§confidence: f32§why: Option<String>Concrete grounds for the recommendation, shown to the model. A directive
backed by observable evidence (“this workspace is a uv project”) is harder
to dismiss than a bare assertion of relevance — and gives the model exactly
what it needs to judge fit for itself. None when the match is purely
semantic.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rec
impl RefUnwindSafe for Rec
impl Send for Rec
impl Sync for Rec
impl Unpin for Rec
impl UnsafeUnpin for Rec
impl UnwindSafe for Rec
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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