Skip to main content

StoreMemoryResponse

Struct StoreMemoryResponse 

Source
pub struct StoreMemoryResponse {
    pub source_id: String,
    pub chunks_created: usize,
    pub memory_type: String,
    pub entity_id: Option<String>,
    pub quality: Option<String>,
    pub warnings: Vec<String>,
    pub extraction_method: String,
    pub enrichment: String,
    pub hint: String,
}

Fields§

§source_id: String§chunks_created: usize§memory_type: String

Memory type at the moment of persistence. If caller did not supply one and enrichment is pending, this is a placeholder ("fact") — check enrichment field to know whether to expect it to change.

§entity_id: Option<String>§quality: Option<String>§warnings: Vec<String>

Schema-validation issues — actionable by the agent.

§extraction_method: String

How structured fields were populated. “agent” | “llm” | “none” | “unknown” (forward-compat default).

§enrichment: String

Enrichment state for the memory. "pending" when background classification + entity extraction + concept linking will run; "not_needed" when no LLM is available and the memory stays as caller-supplied. Machine-readable — Tauri app uses this to drive polling / live-update UI, MCP callers can choose to relay state. Defaulted for backward compatibility with pre-async-enrichment clients.

§hint: String

Prose cue for caller agents — safe to relay to the user verbatim. Communicates that Wenlan is compiling the memory into reusable context in the background, so callers don’t treat None enriched fields as failure. Empty when the store completed fully sync.

Trait Implementations§

Source§

impl Debug for StoreMemoryResponse

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for StoreMemoryResponse

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for StoreMemoryResponse

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.