pub struct LocalHarness<'runtime> {
pub state: &'runtime StateStore,
pub registry: &'runtime Registry<'runtime>,
pub probe: &'runtime dyn ProcessProbe,
}Fields§
§state: &'runtime StateStore§registry: &'runtime Registry<'runtime>§probe: &'runtime dyn ProcessProbeImplementations§
Source§impl LocalHarness<'_>
impl LocalHarness<'_>
pub fn bind(&self) -> Result<BoundLocalAgent<'_, '_>, MemoryError>
Trait Implementations§
Source§impl AgentChat for LocalHarness<'_>
impl AgentChat for LocalHarness<'_>
fn chat<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
input: &'life1 ChatInput,
cancel: &'life2 CancellationToken,
on_delta: &'life3 mut DeltaSink<'life4>,
) -> Pin<Box<dyn Future<Output = Result<ChatResult, HarnessError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Source§impl ChatHarness for LocalHarness<'_>
impl ChatHarness for LocalHarness<'_>
fn name(&self) -> &'static str
fn available<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn chat<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
input: &'life1 HarnessRequest,
cancel: &'life2 CancellationToken,
on_delta: &'life3 mut DeltaSink<'life4>,
) -> Pin<Box<dyn Future<Output = Result<String, HarnessError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Auto Trait Implementations§
impl<'runtime> !RefUnwindSafe for LocalHarness<'runtime>
impl<'runtime> !UnwindSafe for LocalHarness<'runtime>
impl<'runtime> Freeze for LocalHarness<'runtime>
impl<'runtime> Send for LocalHarness<'runtime>
impl<'runtime> Sync for LocalHarness<'runtime>
impl<'runtime> Unpin for LocalHarness<'runtime>
impl<'runtime> UnsafeUnpin for LocalHarness<'runtime>
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