pub struct MemoryClient<'a> { /* private fields */ }Implementations§
Source§impl<'a> MemoryClient<'a>
impl<'a> MemoryClient<'a>
Sourcepub async fn create_file(
&self,
path: &str,
content: &str,
scope: Option<&str>,
) -> Result<ApiResponse<Value>, PrismerError>
pub async fn create_file( &self, path: &str, content: &str, scope: Option<&str>, ) -> Result<ApiResponse<Value>, PrismerError>
Create a memory file.
Sourcepub async fn list_files(
&self,
scope: Option<&str>,
path: Option<&str>,
) -> Result<ApiResponse<Vec<Value>>, PrismerError>
pub async fn list_files( &self, scope: Option<&str>, path: Option<&str>, ) -> Result<ApiResponse<Vec<Value>>, PrismerError>
List memory files.
Sourcepub async fn get_file(
&self,
file_id: &str,
) -> Result<ApiResponse<Value>, PrismerError>
pub async fn get_file( &self, file_id: &str, ) -> Result<ApiResponse<Value>, PrismerError>
Get a memory file by ID.
Sourcepub async fn update_file(
&self,
file_id: &str,
operation: &str,
content: &str,
section: Option<&str>,
version: Option<i32>,
) -> Result<ApiResponse<Value>, PrismerError>
pub async fn update_file( &self, file_id: &str, operation: &str, content: &str, section: Option<&str>, version: Option<i32>, ) -> Result<ApiResponse<Value>, PrismerError>
Update a memory file.
Sourcepub async fn delete_file(
&self,
file_id: &str,
) -> Result<ApiResponse<Value>, PrismerError>
pub async fn delete_file( &self, file_id: &str, ) -> Result<ApiResponse<Value>, PrismerError>
Delete a memory file.
Sourcepub async fn compact(
&self,
conversation_id: &str,
summary: &str,
) -> Result<ApiResponse<Value>, PrismerError>
pub async fn compact( &self, conversation_id: &str, summary: &str, ) -> Result<ApiResponse<Value>, PrismerError>
Create a compaction summary.
Sourcepub async fn load(
&self,
scope: Option<&str>,
) -> Result<ApiResponse<Value>, PrismerError>
pub async fn load( &self, scope: Option<&str>, ) -> Result<ApiResponse<Value>, PrismerError>
Load auto-memory (MEMORY.md).
Sourcepub async fn get_knowledge_links(
&self,
) -> Result<ApiResponse<Value>, PrismerError>
pub async fn get_knowledge_links( &self, ) -> Result<ApiResponse<Value>, PrismerError>
Get memory-gene knowledge links for the authenticated user’s memory files (v1.8.0).
Auto Trait Implementations§
impl<'a> Freeze for MemoryClient<'a>
impl<'a> !RefUnwindSafe for MemoryClient<'a>
impl<'a> Send for MemoryClient<'a>
impl<'a> Sync for MemoryClient<'a>
impl<'a> Unpin for MemoryClient<'a>
impl<'a> UnsafeUnpin for MemoryClient<'a>
impl<'a> !UnwindSafe for MemoryClient<'a>
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