pub struct ThreadManager { /* private fields */ }Implementations§
Source§impl ThreadManager
impl ThreadManager
pub fn new(store: StateStore) -> Self
pub fn state_store(&self) -> &StateStore
pub fn spawn_thread_with_history( &mut self, model_provider: String, cwd: PathBuf, initial_history: InitialHistory, persist_extended_history: bool, ) -> Result<NewThread>
pub fn resume_thread_with_history( &mut self, params: &ThreadResumeParams, fallback_cwd: &Path, model_provider: String, ) -> Result<Option<NewThread>>
pub fn fork_thread( &mut self, params: &ThreadForkParams, fallback_cwd: &Path, ) -> Result<Option<NewThread>>
pub fn list_threads(&self, params: &ThreadListParams) -> Result<Vec<Thread>>
pub fn read_thread(&self, params: &ThreadReadParams) -> Result<Option<Thread>>
pub fn set_thread_name( &mut self, params: &ThreadSetNameParams, ) -> Result<Option<Thread>>
pub fn archive_thread(&mut self, thread_id: &str) -> Result<()>
pub fn unarchive_thread(&mut self, thread_id: &str) -> Result<()>
pub fn touch_message(&mut self, thread_id: &str, input: &str) -> Result<()>
Auto Trait Implementations§
impl Freeze for ThreadManager
impl RefUnwindSafe for ThreadManager
impl Send for ThreadManager
impl Sync for ThreadManager
impl Unpin for ThreadManager
impl UnsafeUnpin for ThreadManager
impl UnwindSafe for ThreadManager
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