pub struct RememberPlan {
pub ops: Vec<Op>,
pub memory_id: NodeId,
pub deduplicated: bool,
pub new_memory: Option<String>,
pub new_entities: Vec<(NodeId, String)>,
pub entities: Vec<PlannedEntity>,
pub edge_ids: Vec<String>,
pub superseded: Vec<String>,
}Fields§
§ops: Vec<Op>ONE atomic batch; possibly empty (pure no-op). The caller submits.
memory_id: NodeId§deduplicated: boolTrue iff content was found in an existing node in the write scope.
Note: if that node is in superseded, deduplicated is still false —
superseding a node you would otherwise dedup to means “replace it”.
new_memory: Option<String>The content, iff a new Memory node is planned (callers with an
embedder append SetEmbedding ops keyed on this).
new_entities: Vec<(NodeId, String)>(id, name) of every planned Entity create, for the same purpose.
entities: Vec<PlannedEntity>§edge_ids: Vec<String>§superseded: Vec<String>Auto Trait Implementations§
impl Freeze for RememberPlan
impl RefUnwindSafe for RememberPlan
impl Send for RememberPlan
impl Sync for RememberPlan
impl Unpin for RememberPlan
impl UnsafeUnpin for RememberPlan
impl UnwindSafe for RememberPlan
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