pub struct Signal {
pub kind: SignalKind,
pub intensity: f32,
pub context: String,
pub tool_name: Option<String>,
}Expand description
A single learning signal captured during agent execution.
Per the MenteDB blueprint, context is a small window (typically
< 500 bytes) centered on the marker phrase that triggered the signal,
NOT the full user message.
Fields§
§kind: SignalKindWhat kind of signal this is
intensity: f32Signal intensity (0.0 – 1.0)
context: StringSmall context window around the marker phrase (typically < 500 bytes)
tool_name: Option<String>Which tool was involved, if applicable
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Signal
impl<'de> Deserialize<'de> for Signal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Signal
Auto Trait Implementations§
impl Freeze for Signal
impl RefUnwindSafe for Signal
impl Send for Signal
impl Sync for Signal
impl Unpin for Signal
impl UnsafeUnpin for Signal
impl UnwindSafe for Signal
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