pub struct ActorState { /* private fields */ }Implementations§
Source§impl ActorState
impl ActorState
pub fn new(force: bool) -> Self
pub fn recover(boxes: Vec<ChatBox>, force: bool) -> Result<Self, StateError>
pub fn boxes(&self) -> &[ChatBox]
pub fn halted(&self) -> bool
pub fn halt(&mut self, text: String) -> bool
pub fn take_halt(&mut self) -> Option<String>
pub fn restart(&mut self) -> Result<(), StateError>
pub fn accept_box( &mut self, box_type: String, contents: String, hidden_type: String, hidden_contents: String, ) -> Result<(), StateError>
pub fn accept_system(&mut self, contents: String) -> Result<(), StateError>
pub fn accept_user(&mut self, contents: String) -> Result<(), StateError>
pub fn accept_attachment( &mut self, contents: String, hidden_type: String, hidden_contents: String, ) -> Result<(), StateError>
pub fn accept_async_return( &mut self, tool_call_id: ToolCallId, result: Result<String, String>, ) -> Result<(), StateError>
pub fn force_inference(&mut self)
pub fn begin_inference(&mut self) -> Result<Option<InferenceStart>, StateError>
pub fn append_stage( &mut self, job: u64, contents: String, calls: Vec<ProviderCall>, ) -> Result<Vec<DispatchedToolCall>, StateError>
pub fn flush_active_arrivals( &mut self, job: u64, ) -> Result<Vec<ChatBox>, StateError>
pub fn complete_inference( &mut self, job: u64, contents: String, ) -> Result<(), StateError>
pub fn stall_inference( &mut self, job: u64, text: String, ) -> Result<(), StateError>
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