Skip to main content

RecallRequest

Struct RecallRequest 

Source
pub struct RecallRequest {
Show 14 fields pub query: String, pub agent_id: String, pub top_k: usize, pub memory_type: Option<MemoryType>, pub session_id: Option<String>, pub tags: Option<Vec<String>>, pub min_importance: Option<f32>, pub importance_weighted: bool, pub include_associated: bool, pub associated_memories_cap: Option<usize>, pub since: Option<String>, pub until: Option<String>, pub associated_memories_depth: Option<u8>, pub associated_memories_min_weight: Option<f32>,
}
Expand description

Request to recall memories by semantic query

Fields§

§query: String§agent_id: String§top_k: usize§memory_type: Option<MemoryType>§session_id: Option<String>§tags: Option<Vec<String>>§min_importance: Option<f32>§importance_weighted: bool

Include importance-weighted re-ranking (default: true)

§include_associated: bool

COG-2: traverse KG depth-1 from recalled memories and include associatively linked memories

§associated_memories_cap: Option<usize>

COG-2: max number of associated memories to return (default: 10, max: 10)

§since: Option<String>

CE-7: only include memories created at or after this ISO-8601 timestamp (e.g. “2024-01-01T00:00:00Z”)

§until: Option<String>

CE-7: only include memories created at or before this ISO-8601 timestamp (e.g. “2024-12-31T23:59:59Z”)

§associated_memories_depth: Option<u8>

KG-3: KG traversal depth for associative recall (1–3, default 1). Requires include_associated: true. Depth 1 = direct neighbours only (COG-2 behaviour).

§associated_memories_min_weight: Option<f32>

KG-3: minimum edge weight to traverse (0.0–1.0, default 0.0 = all edges). Requires include_associated: true.

Trait Implementations§

Source§

impl Debug for RecallRequest

Source§

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

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

impl<'de> Deserialize<'de> for RecallRequest

Source§

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

Deserialize this value from the given Serde deserializer. 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> 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.
Source§

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