pub struct ReflectInput {
pub source_ids: Vec<String>,
pub title: String,
pub content: String,
pub namespace: Option<String>,
pub tier: Tier,
pub tags: Vec<String>,
pub priority: i32,
pub confidence: f64,
pub source: String,
pub agent_id: String,
pub metadata: Value,
}Expand description
Input bundle for reflect. Holds every caller-tunable field of the
new reflection memory plus the source-id list. Defaults mirror the
MCP tool schema (tier=mid, priority=5, confidence=1.0,
source=DEFAULT_NHI_SOURCE per crate::validate::DEFAULT_NHI_SOURCE
= "nhi" post-#1175 — pre-#1175 this defaulted to "claude", a
heterogeneous-NHI monoculture defect that #1175 closed) so the
dispatch layer can build this from the raw JSON arguments without
further fixup.
Fields§
§source_ids: Vec<String>§title: String§content: String§namespace: Option<String>None → resolve to the namespace of the first source memory.
tier: Tier§priority: i32§confidence: f64§source: String§agent_id: String§metadata: ValueCaller-supplied metadata. The reflection writer merges system-
generated reflection_metadata keys underneath this object;
caller-supplied keys win on collision (the additive contract
documented on the MCP tool).
Trait Implementations§
Source§impl Clone for ReflectInput
impl Clone for ReflectInput
Source§fn clone(&self) -> ReflectInput
fn clone(&self) -> ReflectInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ReflectInput
impl RefUnwindSafe for ReflectInput
impl Send for ReflectInput
impl Sync for ReflectInput
impl Unpin for ReflectInput
impl UnsafeUnpin for ReflectInput
impl UnwindSafe for ReflectInput
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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