pub struct ActorState { /* private fields */ }Implementations§
Source§impl ActorState
impl ActorState
pub fn new(primary: String, force: bool) -> Self
pub fn view(&self) -> ChatView
pub fn halted(&self) -> bool
pub fn halt(&mut self, text: String) -> bool
pub fn take_halt(&mut self) -> Option<String>
pub fn append_pending(&mut self, text: String)
pub fn restart(&mut self) -> Result<(), ChatError>
pub fn begin_inference(&mut self) -> Option<(u64, String, Arc<AtomicU8>)>
pub fn finish_inference(&mut self, job: u64) -> bool
pub fn commit_output(&mut self, text: &str)
pub fn force_inference(&mut self)
pub fn begin_tool(&mut self, name: String) -> u64
pub fn begin_worker(&mut self, llm: String) -> u64
pub fn begin_compaction(&mut self) -> (u64, String)
pub fn reject_compaction_batch(&mut self)
pub fn begin_batch(&mut self)
pub fn apply_tool_replies( &mut self, entries: Vec<(usize, u64, String, bool)>, finished: bool, )
pub fn complete_action(&mut self, job: u64, text: String)
pub fn apply_append_update(&mut self, job: u64, identity: u64, text: String)
pub fn accept_activity_update(&mut self, job: u64, identity: u64) -> bool
pub fn complete_compaction( &mut self, job: u64, frozen: String, result: Result<String, String>, )
pub fn quiet(&self) -> bool
Auto Trait Implementations§
impl Freeze for ActorState
impl RefUnwindSafe for ActorState
impl Send for ActorState
impl Sync for ActorState
impl Unpin for ActorState
impl UnsafeUnpin for ActorState
impl UnwindSafe for ActorState
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