Skip to main content

ActorState

Struct ActorState 

Source
pub struct ActorState { /* private fields */ }

Implementations§

Source§

impl ActorState

Source

pub fn new(primary: String, force: bool) -> Self

Source

pub fn view(&self) -> ChatView

Source

pub fn halted(&self) -> bool

Source

pub fn halt(&mut self, text: String) -> bool

Source

pub fn take_halt(&mut self) -> Option<String>

Source

pub fn append_pending(&mut self, text: String)

Source

pub fn restart(&mut self) -> Result<(), ChatError>

Source

pub fn begin_inference(&mut self) -> Option<(u64, String, Arc<AtomicU8>)>

Source

pub fn finish_inference(&mut self, job: u64) -> bool

Source

pub fn commit_output(&mut self, text: &str)

Source

pub fn force_inference(&mut self)

Source

pub fn begin_tool(&mut self, name: String) -> u64

Source

pub fn begin_worker(&mut self, llm: String) -> u64

Source

pub fn begin_compaction(&mut self) -> (u64, String)

Source

pub fn reject_compaction_batch(&mut self)

Source

pub fn begin_batch(&mut self)

Source

pub fn apply_tool_replies( &mut self, entries: Vec<(usize, u64, String, bool)>, finished: bool, )

Source

pub fn complete_action(&mut self, job: u64, text: String)

Source

pub fn apply_append_update(&mut self, job: u64, identity: u64, text: String)

Source

pub fn accept_activity_update(&mut self, job: u64, identity: u64) -> bool

Source

pub fn complete_compaction( &mut self, job: u64, frozen: String, result: Result<String, String>, )

Source

pub fn quiet(&self) -> bool

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.