pub struct V2ToV3Migration;Expand description
Migrate V2 .amem file to V3 immortal log
Implementations§
Source§impl V2ToV3Migration
impl V2ToV3Migration
Sourcepub fn migrate(
v2_path: &Path,
v3_engine: &MemoryEngineV3,
) -> Result<MigrationReport, Error>
pub fn migrate( v2_path: &Path, v3_engine: &MemoryEngineV3, ) -> Result<MigrationReport, Error>
Migrate a V2 memory file to V3
Reads the V2 graph and converts each node to an appropriate V3 block. V2 nodes map to V3 block types as follows:
- Episode/Concept/Reflection -> Text blocks
- Fact/Preference -> Decision blocks
- Procedure -> Tool blocks
Sourcepub fn is_v2_format(path: &Path) -> bool
pub fn is_v2_format(path: &Path) -> bool
Check if a file is V2 format
Sourcepub fn is_v3_format(path: &Path) -> bool
pub fn is_v3_format(path: &Path) -> bool
Check if a file is V3 format
Auto Trait Implementations§
impl Freeze for V2ToV3Migration
impl RefUnwindSafe for V2ToV3Migration
impl Send for V2ToV3Migration
impl Sync for V2ToV3Migration
impl Unpin for V2ToV3Migration
impl UnsafeUnpin for V2ToV3Migration
impl UnwindSafe for V2ToV3Migration
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