pub struct YoAgentStateAdapter<S: EventStore> { /* private fields */ }Implementations§
Source§impl<S: EventStore> YoAgentStateAdapter<S>
impl<S: EventStore> YoAgentStateAdapter<S>
pub fn new(state: YoAgentState<S>, actor: ActorRef) -> Self
Trait Implementations§
Source§impl<S: Clone + EventStore> Clone for YoAgentStateAdapter<S>
impl<S: Clone + EventStore> Clone for YoAgentStateAdapter<S>
Source§fn clone(&self) -> YoAgentStateAdapter<S>
fn clone(&self) -> YoAgentStateAdapter<S>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S: Debug + EventStore> Debug for YoAgentStateAdapter<S>
impl<S: Debug + EventStore> Debug for YoAgentStateAdapter<S>
Source§impl<S: EventStore> YoAgentStateSink for YoAgentStateAdapter<S>
impl<S: EventStore> YoAgentStateSink for YoAgentStateAdapter<S>
fn on_run_started<'life0, 'async_trait>(
&'life0 self,
event: YoAgentRunStarted,
) -> Pin<Box<dyn Future<Output = Result<EventId, StateError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_run_finished<'life0, 'async_trait>(
&'life0 self,
event: YoAgentRunFinished,
) -> Pin<Box<dyn Future<Output = Result<EventId, StateError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_model_called<'life0, 'async_trait>(
&'life0 self,
event: YoAgentModelCalled,
) -> Pin<Box<dyn Future<Output = Result<EventId, StateError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_model_finished<'life0, 'async_trait>(
&'life0 self,
event: YoAgentModelFinished,
) -> Pin<Box<dyn Future<Output = Result<EventId, StateError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_tool_called<'life0, 'async_trait>(
&'life0 self,
event: YoAgentToolCalled,
) -> Pin<Box<dyn Future<Output = Result<EventId, StateError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_tool_finished<'life0, 'async_trait>(
&'life0 self,
event: YoAgentToolFinished,
) -> Pin<Box<dyn Future<Output = Result<EventId, StateError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl<S> !RefUnwindSafe for YoAgentStateAdapter<S>
impl<S> !UnwindSafe for YoAgentStateAdapter<S>
impl<S> Freeze for YoAgentStateAdapter<S>
impl<S> Send for YoAgentStateAdapter<S>
impl<S> Sync for YoAgentStateAdapter<S>
impl<S> Unpin for YoAgentStateAdapter<S>
impl<S> UnsafeUnpin for YoAgentStateAdapter<S>
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