Hide optional memory graph loading behind bridge
This commit is contained in:
parent
d89c5cc5a0
commit
536caa4597
2 changed files with 20 additions and 19 deletions
|
|
@ -79,6 +79,15 @@ pub async fn load_thread_memory_graph_snapshot(
|
|||
})
|
||||
}
|
||||
|
||||
pub async fn load_optional_thread_memory_graph_snapshot(
|
||||
thread: Option<&CodexThread>,
|
||||
) -> Result<Option<EpiphanyMemoryGraphSnapshot>, CodexErr> {
|
||||
let Some(thread) = thread else {
|
||||
return Ok(None);
|
||||
};
|
||||
load_thread_memory_graph_snapshot(thread).await
|
||||
}
|
||||
|
||||
pub fn mirror_thread_state_to_workspace(
|
||||
workspace_root: &Path,
|
||||
thread_id: &str,
|
||||
|
|
|
|||
Reference in a new issue